zigbee2mqtt-extensions icon indicating copy to clipboard operation
zigbee2mqtt-extensions copied to clipboard

I would like to create a two-way binding for two switches. How can I avoid the issue of loop triggering?

Open mayongze opened this issue 1 year ago • 1 comments

Specifically, when Switch 1 is turned on, it triggers Switch 2 to turn on, and at the same time, Switch 2 being turned on triggers Switch 1 to turn on, causing a loop trigger between Switch 1 and Switch 2.

Feel free to let me know if there are any additional details you would like to include.

mayongze avatar Jul 02 '24 07:07 mayongze

I set a Condition. trigger: platform: state entity: Luce Esterna Living/Virtual Ulivo attribute: state_l2 state: ON condition: # If light is off platform: state entity: Luce Ulivo/Cancelletto attribute: state_right state: OFF action: - entity: Luce Ulivo/Cancelletto service: custom data: state_right: ON

LeoeLeoeL avatar Sep 27 '24 20:09 LeoeLeoeL