I did switch from tuya zigbee to zigbee2mqtt and HA.
I did have few automations in tuya like
- when i turn switch 1 turn on switch 2
- when switch 2 is on turn switch 1 on
- when switch 1 is on turn on switch 2
- when switch 1 is off turn off switch 2
switch 1 toggle would even be controlled from some wireless buttons etc.
How do I do this in the easy way?
I tried, but then switches would turn on/off all the time and it was a mess.
It is this kind of switches https://allegro.pl/oferta/inteligentny-wlacznik-przycisk-zigbee-tuya-smart-12221971418 that do have indication when they are turned off and I would like to have that indicator on both switches that control one thing (that is actually connected to switch 1).
Is there a best practice for this?
update: Now thinking about it i should maybe just add condition to update state of the other switch if it is different than desired state, but still I think i’m missing something and there is less cumbersome way to do this.