Hi, new user here... I have an automation for my garage lights that turn them on when the door opens (contact sensor) and then turns them off after 10 minutes... I added a motion sensor to the garage and now would like to add a restriction to keep lights on beyond 10 minutes if there is motion and then turn off when motion is no longer detected. I've only used the basic rules app so far.. what is the best way to accomplish this?
Thanks!
That works well... what would my program look like if I add another motion sensor on the other side of garage? I tried to add the new sensor to my program but when I do it says on both motion sensors: "motion inactive(F) [False]"
You just need to edit the Motion sensor trigger (add the new one to the selection, but donāt select āAll of these?ā)
Also edit the wait for expression, but under āManage Conditionsā on the bottom of the āActionsā page. Then select āEdit Conditionā and select the Motion sensor trigger to edit. Add the new sensor and this time do select āAll of these?ā).
End result will look like this:
Let me know if you run into issues doing this - I had issues doing this when I first started writing RM rulesā¦
Thanks!
Hey Sebastien, how can I define this AND instead of OR?
I need to do something similar here:
If door is closed and motion inactive for 2min, lights can turn off.
If door is open, but no motions, don't turn off lights.
If door is closed, but with motions, don't turn off lights.
What are your triggers to turn on the light? The rule is basically the same for you too.
Triggers that turn on the light
Actions
Turn on light
Wait for expression- door closed and motion sensor inactive duration of two minutes
Turn off light
With the expression, it means that both things need to be true before turning off your light.
As @JB10 indicates, the rule should provide with the result you are looking for. Is it not working correctly? If that is the case, could you turn on logging for the rule and share a screenshot of the resulting logs?