06-15-2023, 09:47 PM
SwitchMode1 1
SwitchTopic 0
Rule1 on Switch1#state=1 do publish stat/%topic%/PIR1 ON endon on Switch1#state=0 do Publish stat/%topic%/PIR1 OFF endon
Rule1 1
i think you can do as this, such as the PIR sensor:
https://tasmota.github.io/docs/PIR-Motion-Sensors/
SwitchTopic 0
Rule1 on Switch1#state=1 do publish stat/%topic%/PIR1 ON endon on Switch1#state=0 do Publish stat/%topic%/PIR1 OFF endon
Rule1 1
i think you can do as this, such as the PIR sensor:
https://tasmota.github.io/docs/PIR-Motion-Sensors/