I am a newbie. I have a hue motion sensor placed in the bathroom. I want an automation to run constantly in the background and check if there is motion in the bathroom or not. İf not it should turn bathroom lights off.
There is a trigger option “when motion sensor stopped detecting motion” but that only triggers after motion ends. I want an automation where it will only check for motion in the bathroom and turn off the lights if there is not any. And that motion should run constantly during the day.
Automations are reacting to triggers… So having an automation running “constantly” is not possible…
So what you have to create is an automation that switch off the light if the motion detector has not detected anything during a specific time…
Your automation will trigger “when motion sensor stopped detecting motion” for x minutes or seconds… So is in the same state for x minutes
You have to add as a parameter of the trigger: “for: ‘00:01:00’” In this example, if no motion is detected during 1 minute, than the automation will trigger and execute what you want…
I actually have 4 Hue sensors right now and every of them has the automation you specified. Light will turn off after x seconds or minutes. But that only works if hue detects motion.
For example lets say bathroom has not been used by anyone between 12:00 and 18:00. If you turn on the light at 13:00 the light of the bathroom will stay open until someone gets in because Hue sensor needs motion before activating no move automation.
Another idea for executing this approach: an automation to start a Timer every time the light turns on OR motion is detected and another automation to turn off the light when the timer ends. I think that covers every case with only three triggers and two actions.