So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By guysnraw
#90787
guysnraw wrote:Hi Guys, in tasmota I wanted to get event switch state and then run a command but i couldn’t do that in rule, what am i missing?
Rule1 on power1#state=1 do event chkswitch=%sw[1]% endon on event#chkswitch=1 do power1 0 endon
When power1 is on it says backlog event chkswitch=%sw[1]% and event done but power1 not off :roll:


sw[1] doesn't work for all users, instead they gave me an idea to use switch1#boot trigger and do var1 %value% command. It works pretty awesome. Esp8622 rocks :ugeek: