I have a hallway in my basement, which has three doors into it. They are normally all closed, and I want a clever way of activating the light in the area.
All doors has sensors. There are also three light switches that might be used, but should not make any difference to the logic.
I have boiled the whole thing down to this;
If the light is off when opening a door - turn it on.
If the light has been on for one hour - turn it off
If the light has been on for more than 20 seconds when closing a door - turn if off.
I’m thinking this might be my first entry to the glorious PLEG world. But is it possible? I am struggling with the timers… :-[