SwitchMode1 1
SwitchTopic 1
Rule1 on Switch2#state=1 do publish stat/%topic%/PIR1 ON endon on Switch2#state=0 do Publish stat/%topic%/PIR1 OFF endon
Rule1 1
The worked example on the Buttons and Switches page is
BacklogSwitchMode
1;
SwitchTopic
0
Rule1on
Switch1#state
do
Publish
cmnd/custom-topic/SWITCH
%value%
endon
Rule1
1
Regards
Phil K
Sent from Mail for Windows 10
--
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/e73f743e-23a8-43b1-bce3-acc99d65f702o%40googlegroups.com.
You might need to use switchmode1 1 and switchmode2 1...
--
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/f03783f6-259b-4bb8-afe5-175199f6a1f8o%40googlegroups.com.