I currently have two switches, each one backed by a sonoff switch.
Each switch controls a group of lights. So, we have
Switch A => sonoff A => light group A
Switch B => sonoff B => light group B
I want to group both light groups, such that when I press either one, both light groups are switched on/off.
I tried creating 4 automations that basically do this:
- Trigger: state sonoff A on => off ==> Action: Sonoff B off
- Trigger: state sonoff A off => on ==> Action: Sonoff B on
- Trigger: state sonoff B on => off ==> Action: Sonoff A off
- Trigger: state sonoff B off => on ==> Action: Sonoff A on
However, when I activated these automations, clicking any button would make my lights go into some sort of loop, with the list flickering constantly.
I did the same kind of setup through the ewelink app and that seems to work fine.
What am I doing wrong with this setup and/or is there any other way to accomplish this?