Rules with button#state and switch#state sonoff touch

82 views
Skip to first unread message

Marcus Streit

unread,
Apr 4, 2020, 1:49:26 AM4/4/20
to TasmotaUsers
Hey all!

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!

realcuse

unread,
Apr 6, 2020, 6:17:49 AM4/6/20
to TasmotaUsers
Dear all, 

need urgent help with button#state. Is it possible to publish one MQTT message(s) if button is presses once and short on Sonoff touch T1? 

Thanks!
Reply all
Reply to author
Forward
0 new messages