Is it possible to make a script or similar to check if a light in a custom group is on and then turn it off?
I have a lot of lights and when I turn everything off for the night or when I go out it takes a long time. So I would like to try to only turn off lights that are on:)
Thanks for the template, but when I try to add it I get the following error: Invalid config for [automation]: [to] is an invalid option for [automation]. Check: automation->trigger->0->to.
Well, you didn’t say how/where you wanted to use this. Assuming (now) you want to use this in an automation, then it goes in the action part, not the trigger.