I got my HA setup specifically for one task, so I hope it is possible :
After a (dimmable) light has been activated by motion sensor, I want that after a delay (eg 30s) to start slowly dimming until it is off.
When motion is detected again it will be set back to a higher light value, and start the process again.
Would that be an automation/scene/whatever ?
(I have a Shelly Dimmer2)
What if the person who activated the motion detector is still in the room? Do you still want to slowly turn off the light 30 seconds after it was turned on?
Perhaps what you want is that if no motion is detected for at least 30 seconds, then it slowly turns off the light.
If your light supports it, there’s an option called transition
that specifies the amount of time to either increase or decrease a light’s brightness to a desired level.
If your light doesn’t support transition
then you will have to use one of the available scripts that have been created to support this effect. There are several available (search for “fader”); here’s one.
1 Like