I#m using this with sonoff mini:
backlog SwitchMode1 2; rule1 on switch1#state=1 do publish stat/bewegung_kueche/POWER OFF endon on switch1#state=0 do publish stat/bewegung_kueche/POWER ON endon; rule2 on switch1#state=1 do power on endon on switch1#state=0 do power off endon; rule1 1; rule2 1
works fine
but i would like to use something like this on a sonoff touch:
how to use button1#state=0 oder button1#state=1 in a sonoff touch switch? i configured long hold and double press, this works well, but i would like to do it like in a sonoff mini with switchmode 2 and switch1#state=0 and switch1#state=1?
has anybody an idea how to use this for sonoff touch?
Have tried for hours now and checked everything on github
Thanks!