Here’s what I am trying to do and how I’m trying to do it.
Alternate suggestions about how to achieve this same result are totally welcome.
I have an RGB strip next to my bed. (WS2812B controlled by WLED)
I have used this python code to create the ability to fade it up or down: Light Fader by Transition Time
I have set up an automation at 6:30am on weekdays to turn it on, blue, 1% and then fade up to 60% over 30 minutes. This works beautifully.
The other side is I want to make it fade out over 30 minutes at night when I go to bed which is a variable time so I can’t schedule it.
I use both homekit and alexa integrations so I can use voice commands with either siri or alexa.
I have written a script that sets the lights red, 45% brightness, and then fades the lights down to 0 (turns off) over 30 minutes. This works.
I would like to be able to trigger this script by Alexa, but Alexa can not have scripts or automations as entities, only scenes.
So what I need is a way to be able to activate a scene that then triggers my script and this is what I am stuck on.
How could I make this work?