What would be the best way to check if a scene is active ? I need to build an automation that checks if every light in a group is on but only if a certain scene is active.
scenes are like scripts. Once it’s done with its flow, it is no longer ‘on’. What are you trying to do exactly, maybe there is a better solution.
I have an automation that activates a scene, the scene turns on the lights in the garden and sets a dimlevel. There’s about 15 lights and sometimes one or more lights are not responding so I want to make an automation that checks if all the lights are on. But only when the scene has been activated.
There are a number of ways to do this. You could have your scene turn on a script that has a condition built into it. The condition will check if all the lights are on, if not, turn the scene on again. This will work indefinitely until all the lights are on.
In addition to Petro’s suggestion, I personally use a few input_booleans for my scenes (instead of an input_select) as I can have more than 1 scene active at a time, e.g. movies and manual.
This becomes a very easy condition added to my automations