Hopefully someone can help me here. I’m trying to create an automation with a motion sensor and light where the following happens:
Light is turned on manually
If there is no motion for ~4-5 minutes the light dims to ~75%
if there is no motion for a minute the light goes off
otherwise (if there is motion) the light goes back to 100% and the process starts again.
I already have a similar basic automation created where the light just goes off after 5
minutes of inactivity between a certain time. Maybe this could be adjusted:
Okay. I tend to use multiple automations, because it’s easier to debug and you can use the visual automation editor in the UI:
#1. automation, turn light on at 100% if there is motion (optionally: if lights are off or dimmed, but it doesn’t hurt to turn on-lights on again) #2. automation to dim the lights, if it has been on for 5 minutes #3. automation to turn off the lights, if they have been on for 6 minutes and are still dimmed.
Thanks @m0wlheld, I was thinking multiple automations but wasn’t sure if that was the right way to go about it. I was thinking wait_for_trigger or something…
I’ll give it a shot with multiple automations and let you know if it worked. Thanks!