I’m trying to build a wake up light using an ESP8266 with WLED, and a WS2812 LED strip. I have the WLED strip talking with Home Assistant and everything is working as expected.
My problem is that all the automations/scripts I find rely on the transition time. And WLED only supports transition times up to 60 seconds.
Do any of you guys have an idea as to how a wake up light could be implemented with WLED?
You could implement a while loop that increases the brightness slightly and has a delay in the loop as long as you like. You could increment the colour temperature in the same loop.
Look at the night light feature, I could be wrong but I believe it can be made to turn the light on to X brightness slowly over a long time frame from fully off.
So, partial succes. If I activate the night light feature from the wled web interface it works! Makes a great sunrise. But if I activate it from the home assistant wled night light switch, it skips the fade in part of the sunrise .
This will increase the brightness by 5 every minute until 100% (255). This takes 51 minutes. Feel free to adjust the delay or step values. e.g. 30s delay gets you full brightness in 25.5 minutes.
For a more realistic sunrise that starts as an orangy light and progresses to a bright blueish white you could adjust the colour temperature at the same time:
Thanks! Looks really good. But i’m really after the sunrise effect that WLED has.
But i think I might have it nailed. Instead of toggling the night light button, I call the sunrise effect. The speed I set then defines the wake up time.
This is exactly what I am looking for. But I can’t get this to run on my HomeAssistant as an Automation. Do I need something special to get the service “wled.effect”? It is not avaiable for me.
WLED is already integrated into HomeAssistant. I am using D1 mini with an WS281B LED stripe (120 LEDs).
Error message:
Error running action
Unable to find service wled.effect
I tried to edit the automation yaml, but it was not working