The script I used on the ESP32 was
Code: Select all
on spanningsmeter#Voltage do // %eventvalue% is the actual value that triggered the event
if %eventvalue%<12.10 // Above this voltage the loader is turned on
GPIO,32,1
endif
if %eventvalue%>14.69// Below this voltage the loader is turned off
GPIO,32,0
endif
endon
Code: Select all
on spanningsmeter#Voltage do // %eventvalue% is the actual value that triggered the event
if %eventvalue1%<12.10 // Above this voltage the loader is turned on
GPIO,14,1
endif
if %eventvalue1%>14.69// Below this voltage the loader is turned off
GPIO,14,0
endif
endon