Access A0 value in script

32 views
Skip to first unread message

PeterB

unread,
Jul 13, 2020, 8:05:21 AM7/13/20
to TasmotaUsers
I have A0 set to Analog, and want to access the ADC value in the script (Rules are disabled). The reason is the std temperature calculation is way out, so want to do my own conversion.

The scripting docs and cookbook don't have an example for this, and Analog#A0 gives
var not found: Analog#A0

I have spent hours now reading the docs, and going through xdrv_10_scripter.ino, but cannot see what I am missing.

Any pointer in the right direction would be much appreciated!

PeterB

unread,
Jul 14, 2020, 11:26:36 AM7/14/20
to TasmotaUsers
Apparently Analog#A0 is valid only in the >T section, but not in >S where I was using it...
Reply all
Reply to author
Forward
0 new messages