QUOTE(azbro @ Jul 2 2024, 05:05 PM)
I wonder has anyone tried adding 2 PIR sensors to 1 WiFi light?
If PIR sensor detect movement it will ON, if no detect it will OFF
So if 1 PIR is ON, the other remains off is easy.
But if 1 both sensors is ON, 1 is still detecting movement and remains ON, but the other sensor after 1 minute is OFF, will the light remain ON or OFF? I want it to remain ON.
Or is it need to do some conditioning.
Example if sensor is still detecting movement, sensor 2 will not off the light. Wow..this is getting complicated for me. I'm just using the simple ewelink app, I don't think can do that.
I don't have your kind of setup, like 2 PIR, but I think the setup from eWeLink should be as follows:.
1. Create two scenes.
2. Scene 1 is used to detect any movement coming from either PIR1 or PIR2, followed by turning on light 1 immediately.
3. Scene 2 is used to detect that both PIR1 and PIR2 are cleared, followed by a minute delay, then turning off light 1.

As the app's built-in automation and scene are meant to be easy to use, it cannot handle difficult scenarios.
In Home Assistant setup with Node-Red, this will be my preferred workflow.

In the above workflow:
1. When either PIR1 or PIR2 is on, then Light 1 will be on.
2. When both PIR1 and PIR2 are off, it will send a signal to the "delay block" for a 1-minute delay before passing on to Light 1 to turn it off.
3. If within a minute a new movement is detected, a "reset" signal is sent to the "delay block" to clear up any queues to be sent to Light 1 to turn off the light.
mmWave Human Presence Sensors is much preferred compared to PIR.