On the rules page it explains (in the Setting Variables section)
The following won't work:
Rule1 ON event#setvar1 DO Backlog var1 %value%; Power1 %var1% ENDON
At least not as you probably would expect. The var1
value used by the Power1
command will be the value present before the Backlog
command is executed. This is so, because the rule will replace %var1%
BEFORE the Backlog
commands are put in the Backlog
command stream.
To make it work you would need to do
Rule1 ON event#setvar1 DO var1 %value%;ENDON
ON var1#state do Power1 %var1% ENDON
Sent from Mail for Windows
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/5212fc97-b51b-4726-ac1c-ac68b66fbdfbn%40googlegroups.com.