Closed vaguecupid closed 6 years ago
cmnd/ switches relays, not switches. you would need to have two relays defined before power2 does anything
I test the relay,but PIR(relay 2) can not work.
set Switchmode2 1
this lets switch2 follow the state and publishes it. See #420
Thanks jhlweb, thats works for me. The only problem I am having still is that the switch does not stay on. It turns on for 36 seconds (PIR-delay), then turns off, even with motion, and turns on after 6 seconds again.. Any idea how I can make it to stay on until no motion is detected?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem.
I want add HC-SR501 PIR Motion Detection to the sonoff, so I set GPIO14 to 09switch1, set GPIO1 to 10switch2, set SwitchMode to 0, set SwitchTopic to 1. I add the switch to GPIO14, and PIR to GPIO1.
the result is switch can work perfectly, the PIR can work,but console and MQTT always show(no “OFF”):