I have a motion sensor on my stairs which triggers certain lights to go on between 4:30 am and Sunrise +30. Some of these same lights are told to go off by another automation.
The problem is that they get turned off by the second automation and then get turned on by further motion detection.
Is there some way to tell the motion triggered automation to run only once?
So you only want motion to work once after 4:30 AM (until the following day)? If so, how you'd do that depends on how your existing motion automation is set up. It's something you'd do on the app side of things and not the device side, so I'd suggest sharing how you have that automation set up.
If the problem is that you want motion to work after the other automation turns the light off (but it doesn't), you're probably running into the situation where motion hasn't had time to "reset" to inactive so that real-world activity will actually generate an event (motion active). This is something I've seen people run into occasionally, but it sounds like your question is not related--just mentioning in case it is and I misunderstood.
Assuming youāre using the motion and mode lighting app to turn the lights on with motion, Iād create a virtual switch that is configured to disable the motion rule when on, and use the same automation that turns the lights back off to turn on that virtual switch. Use another trigger (like a mode change) to turn the virtual switch back off once itās okay for the motion trigger to fire again.
Maybe in the conditions have motion active AND private boolean is false.
In the actions after turn light on set PB to true.
Have a trigger for certain time set to 04.15.
Have a statement in the rule IF time is 04.15 set PB to false.
Rule will then only be true once a day for turning the light on.
Iām relatively new to HE some Iām learning some of itās capabilities. This is about the fanciest thing Iāve setup so far. Hereās what Iāve set up:
The motion sensor triggers certain lights to go on if it detects motion between 4:30 am and 30 minutes after sunrise. A separate routine is set to turn a subset of these lights off at 31 minutes after sunrise. Unfortunately, it appears that further motion is turning the subset of lights back on after the second routine has turned them off.
Is the difference of 1 minute not enough or is something else going on?
If I could simply have the motion trigger the lights only once that would fix it but Iām unclear on how to get this done.
The first thing to ask is "do you want the lights to trigger just once, and no more, during 4:30 and 30 minutes after sunrise". If motion is detected a second time during that interval the lights must not turn on?
Personally I would change the trigger and the first IF time to 04:25 so that it is done before the 4:30 to sunrise window just in case you should trigger motion at exactly 4:30.