Devices:
Motion Sensor
Door Sensor
Switch
- Walk into bathroom motion sensor turns switch on
- When there is no motion the light will stay on for x mins
- If the light is on and the door is shut the light should stay on even though there is no motion. example in the shower
- Once the door opens it should keep the light on for x mins
Let me know if that makes sense. Basically I want to use the door being closed to make sure the condition is met to keep the light on.
This is what I have so Far. It seems to work but not sure if it's the most efficient code.
Thanks
Mikfe