Wondering if anyone has set anything up like this.
I have a light that turns on when a door is open. I have a motion detector in the room, so the light should stay on for as long as there’s motion in the room, even if the door has been closed. If there’s no motion after 5 minutes, the light can turn off.
I’ve tried this via Smart Lighting, but it gets stuck if the light turns on at the wrong time during the motion update.
XOR is “and/or”, right? If the light goes off while I’m in the room because I was hidden under the car for 3 minutes, I want it to turn back on if I trigger motion.
My understanding is that XOR means “one or the other but not both” (XOR = Exclusive Or). And/Or is inherent in the standard OR, meaning either or both can be true.
If I follow your logic, you enter a room, light goes on. Stays on 5 minutes. You leave room. Within those 5 minutes, you re-enter the room. Should the lights a) reset for another 5 minutes or b) continue counting down the original 5 minutes?
If you refer to ‘a)’ where the lights reset for another 5 minutes when motion is detected, then you can use a version of my piston NightlightPro. You will need to know how to code some in CoRE, but pretty easy.
Before starting piston, set CoRE for expert mode: Settings->ExpertFeatures turn ON Expert Mode