I have a couple of wled installations in my house. One is a decorative light in the stairwell. I’d like to turn in on before the sun sets and turn it off a midnight. That works using 2 automations with respective triggers (sun or schedule).
Now I’d like to make the transition smooth, that is fade in the brightness of the leds smoothly over e.g. 5 min.
There were similar post in this forum (not including the links as I am not allowed to quote posts as a new user, ha!) but none of them has a good answer.
Here is where I currently stand:
And here are my questions:
For the “service: light.turn_on” call. Does the transition actually work. Would that already suppose to fade.I could not observe it creating any transition, light just turn abruptly on or off. (For now I’ve tried to add the loop + delay to compensate).
It would really be good to be more explicit in the docs (Light - Home Assistant) whether that is supposed to create a smooth transition or just waits.
The loop. It definitely loops, but the brightness does not increase, it just keeps setting the brightness repeatedly to 10%
This seems to be a somewhat popular goal for people and I am a little bit surprised how hard it is to make this work.
The transition option only works if the device’s firmware supports it. A single command is sent (by the integration) to the device instructing it to transition to the desired brightness over the specified duration.
A device that doesn’t natively support the transition effect requires using the technique you originally attempted, namely sending consecutive brightness commands until the desired brightness level is reached. There are existing scripts that perform this function posted on the forum. However, it’s better (smoother transition and far fewer commands) to use native transitions if the device supports it.