I’m trying to setup automations for a hue bulb via a hue motion sensor trigger. Simple enough, but I want multiple actions for the off automation. Basically, looking to create:
Motion detected - light on 100%
No motion detected for 20 seconds - light to 25% brightness
Delay for another 20 seconds - light off
I created 2 automations for this. 1 for on and one for off. I used a scene to set the light to 25%. This works fine, until I trigger motion during the 20 second delay between the light being set to 25% brightness and the light turning off. In this scenario the following happens:
Motion detected - light on 100%
No motion detected for 20 seconds - light to 25% brightness
Motion detected again - light on 100%
Light off
Light back on at 25%
Light off
This seems to be happening because the first ‘off’ automation seems to keep running even though there is a new ‘on’ trigger. Is there a way to reset an automation based on a different automation being triggered?
Hey, sorry for reopening this. I’m trying to do the same as OP, but when using @123’s example, the lights does not dim up to 100% when entering the motion sensor while the lights are at the 25% dimmed state. I’m not sure why, is that not why the entire automation is set as “Restart”?
I changed the first action to include an OR to look for the brightness at 25%. Seems to work, but I have no idea if it is the best/cleanest way to do it or if it will cause troubles in special scenarios…