In my kitchen I have two separate LED strips. They can be switched locally with physical switch and I’d like to keep this. Behind each them I have a zigbeee switch module.
I also have a wall switch which is not wired directly to these LED strip but it can switch on/off them with automations.
The logic behind (as you will see, the wall switch’s behaviour is the same as a Group switch)
- If I turn on any of the LED strips, the wall switch turns on itself, but the other LED switch doesn’t turn on.
- If I turn off all of the LED switches the wall switch turns off
- If any or all of the LED strips are on and I switch off the Wall switch, it switches off the LED strip(s)
- If both LED strips are off and I turn on the wall switch, both LED strips turn on.
So as I wrote the wall switch works like a group switch and the LED strips are the entities behind it.
I made a little bit difficult Node-Re flow to make this work and it sometimes goes wrong (the lisghts start to switch on/off periodically if I turn on/off any of the switches to quick after each other). So I’d like to make it easier and more stable.
As the wall switch works like a group switch, I find out to make a light group with the 2 LED strips and I’d like to control the group with the wall switch and the wall switch with the group. So when the group is ON or OFF, the swicth goes ON or off. And also when the I turn ON or OFF the switch it should turn ON or OFF the group.
What is the most elegant and easier way to link a wall switch to a group? Maybe a normal automation? Or a template switch? And what is the most elegant and most stable way?