hi @p.kaczmarek2
For the scripts, i'm trying to get my plug with power monitoring to turn off charging once it reaches value (below 20 watts for example)
In tasmota, i could add this rule
Rule1 is set to once mode (Rule1 5), so after power drops below 20 watts it only starts once otherwise the timer would keep restarting.
How can I do this in the script?
For the scripts, i'm trying to get my plug with power monitoring to turn off charging once it reaches value (below 20 watts for example)
In tasmota, i could add this rule
Rule1
on Energy#Power<20 do RuleTimer1 100 endon
on Energy#Power>20 do RuleTimer1 0 endon
Rule2
on Rules#Timer=1 do Power OFF endon
Rule1 1
Rule1 5
Rule2 1
Rule1 is set to once mode (Rule1 5), so after power drops below 20 watts it only starts once otherwise the timer would keep restarting.
How can I do this in the script?