Hi,
i have a zigbee wall switch with 2 gang…they are integrated as switches, and I should control the lighting of one light bulb.
having 2 switches, I need that when one turns on the other turns on and the other way around, so I created 2 automations like this to on and off the light:
- id: 'luce_sybaris_on'
alias: Luce Sybaris ON
description: ''
trigger:
- platform: state
entity_id: switch.luce_sybaris
to: 'on'
from: 'off'
- platform: state
entity_id: switch.luce_sybaris2
to: 'on'
from: 'off'
condition: []
action:
- service: light.turn_on
data:
kelvin: 6500
brightness_pct: 100
target:
entity_id: light.sybaris
- data_template:
entity_id: |
{% if trigger.to_state.entity_id == "switch.luce_sybaris" %}
switch.luce_sybaris2
{% else %}
switch.luce_sybaris
{% endif %}
service: switch.turn_on
mode: single
The automation works, but every time I get a warning in the log like this “Luce Sybaris ON: Already running”
Did I do something wrong?