I’ve been working on a light blueprint to more readily integrate with other blueprints (via using timers in between on and dimming states) and to configure the values of it on the dashboard via helpers. (see dashboard pics below). I’ve also added a fancy feature where it will keep the lights of a group to the scene they’re set to and also save that scene to a temporary scene so that it can return to it. I also wanted this to be fully inclusive without anything from the HACS so that anyone could pick this up and use it as well!
I’ve ran into a problem where if a group of lights is set to dim per this automation blueprint I wrote and the scene had a light that was off per that group, it’ll still turn on like a switch entity or even just a light that was on due to the service call of light.turn_on to a brightness value.
My question is is there a way I could do a for loop to check if each light is already on or off from just a group name?
(this blueprint is supposed to make it easier to setup a light automation per only having light group and a binary sensor for motion with hopes to add more light triggers in the future)
The git repo has the blueprint as well as two packages that have some description written with them on how to use them. (I could also use some feedback if I didn’t describe something well enough)
example card pics:
room example with light settings:
room example with on to dim settings (timers not active due to manually turning on light):
room example with dim to off settings (timers not active due to manually turning on light):
edit: bumped up picture %'s for readability.