#Hue light switch

1 messages · Page 1 of 1 (latest)

iron scarab
#

Hello All, I am having issues with my hue light switch, for 1 button(event.hue_dimmer_switch_1_button_1) i want the following to happen:

If any lights are on(2 posisble scenes) i want it to turn off the lights(all of them)(there is a scene for this)

If no lights are on i want it to turn on a specific scene.

I tried with chatgpt and myself but i cannot seem to find a way to check if any scenes are on.

blazing sedge
#

Scenes don't have a state, so you wouldn't be able to base the automation on that. Why not use the state of the light entities instead?

iron scarab
#

so use the state of a single light(since this switch is ment to do on or off)?

if x light is on in whatever capacity turn on scene lights out

if light x is off turn on x light scene.

iron scarab
blazing sedge
#

Yeah a single light, or create a light group and use the state of that

iron scarab