I’m using the AlexxIT Sonoff integration (without flashing devices) and I’m trying to write a script to turn on a Sonoff L1 led strip on a specific color and brightness percentage, but I’m probably missing something:
The @Hellis81 tip worked out really nice but I also discovered that (for some weird reason) you always need to specify the hs_color even if you only want to change the brightness.
This is my final script to turn on my kid’s bedroom light strip in a warm color at 4% intensity and then lower its brightness slowly until a complete shutdown, which it’s perfect for bedtime: