I've moved all of my stuff from a Hue Hub to HA Zigbee. Most everything is working fine, but I'm having trouble figuring out how to make our bedroom light switch work the same as it did with Hue. It is a switch that turns our nightstand lights on/off. We also have hue buttons on our nightstands to individually turn them on/off. With hue, if one of them was on and you pressed on - it would turn both on, and then a second press would turn them both off. At first I tried a toggle, but if one was on it would just flip them back and forth and you'd have to use a button to get them both on or off. I switched it to an 'on' automation and an 'off' automation, but now we have to use the top button on the switch for on and the bottom button for off, and for some reason sometimes it now flashes colors on the switch's LED and does nothing unless you wait a few seconds and then try again. Anyone know how to set up the automation(s) to make it work like we're wanting, having a hard time wrapping my head around it without there being an 'OR' option in the And if section of the automations.
#Or test? - trying to configure Hue Switch to work like it did on Hue Hub/App
1 messages · Page 1 of 1 (latest)
It’s easier to do this with a group. Go to settings -> devices & services -> helpers -> group
Then add both nightstand lights to the group and submit. To get the group to function like you want (have it turn both on if only one is on) then after you create the group, find it in the list of helpers and click it. Then click the gear icon in the top right of the dialog, and then select “group options”. Here, you will want to enable “all entities”.
Now you can just have an automation that, when you turn on your bedroom light switch, it just turns on the group. And when you turn off the light switch, it turns off the group.
The switch you want to control everything from: is it a button or a toggle switch?
If it’s just a button, make an automation:
- trigger: when button is pressed (state trigger that uses the button entity)
- conditions: leave empty
- actions:
- if light 1 is ON and light 2 is ON
- then: turn both lights off
- else: turn both lights on
- if light 1 is ON and light 2 is ON