Tasmota Help Help

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 :expressionless:

Found answer in tasmota group chat, we can use switch1#boot trigger and also use do var1 %value% command…