My bathroom has a door contact and a motion contact and a smart switch controlling a dumb light.
The switch is sort of annoying to switch on - it’s around a corner in the bathroom. There’s a motion sensor that will change state to Motion Detected when you walk into the bathroom even before you can turn the switch on.
What I’d like:
If Motion is detected with the door opened (someone walks into the bathroom, does not shut door. Getting a tissue? Checking their look in the mirror?): Light goes on for 2 minutes then shuts off, or can be turned off sooner with switch. Motion sensor would need to ignore motion for that full 2 minutes? The person may be moving around, or moving to leave. So maybe turning the switch OFF will reactivate the motion sensor after… 10 seconds? Enough time to leave the bathroom…
If Motion is detected and the door is shut within 20(?) seconds (means someone went into the bathroom and HEY! SOMEONE’S BUSY!): Light stays on until after door is opened again then turns off, or can be shut off with switch. This prevents the light shutting off and having to wave. Maybe opening the door, or shutting off the switch (both?) can reactivate the motion sensor after 10 seconds, enough time to leave the bathroom.
Light Switch turned on overrides any control until the switch is turned off (plus that 10 second bathroom leave time?)
I made a few false starts with some of the forum examples, but… None were pretty. Help please?