Id like
- If the light switch is toggled to turn the light on, the light should turn on and stay on until there is no motion detected by the motion sensor for 5 consecutive minutes. Any new motion should reset the timer.
- I’d also like the motion sensor to turn the light on if it wasn’t turned on manually by the switch. the light should stay on until there is no motion detected by the motion sensor for 5 consecutive minutes.
I would appreciate it if people could provide insight on how to accomplish this.