I have a Sonoff RF Bridge running on ESPurna firmware.
I’m able to see the RF signal from sonoff PIR .
The Bridge has been setup (via code learning) to detect motion for switch #0 ON & motion for switch #0 OFF (Basically Both are the same code as the PIR don’t send any ON or OFF code).
I want to set up an automation when Motion is detected thru PIR Turn ON the Light.
The Problem is First-time Motion is detected the light goes to ON
After that, the PIR status in Sonoff RF Bridge running on ESPurna is always ON
How do I set it OFF automatically?
I am thinking something like below but not sure how to implement.
Automation 1: when Motion is detected thru PIR Turn ON the Light. (THis is possible & I have the code working)
Automation 2: Turn OFF the PIR Motion sensor to OFF automatically after few seconds (Say 3 Seconds)
I don’t see any code that will automatically OFF my sensor after few seconds. (Only Minutes or Hours delay available in automation Conditions)
I know this is an old thread but I was having the same problem and this is what my binary sensors look. You don’t need any automation for resetting the sensor, instead just add the off_delay flag. Mine resets in 5 seconds