Hi
I have two dimmers that must turn on/off at the same time IF one of the two dim buttons is pressed (but then also maintain the same dim level of one of the two dim buttons is rotated, is this possible in HA?
the following automation turns on both dim lights but when someone changes the dimlevel on one of the two dimmers, it only changes that belonging dim light, not the other one.
alias: Dim
description: ""
trigger:
- platform: state
entity_id:
- light.dimeetkamer
- light.dimwoonkamer
from: "off"
to: "on"
id: "1"
- platform: state
entity_id:
- light.dimeetkamer
- light.dimwoonkamer
from: "on"
to: "off"
id: "2"
action:
- if:
- condition: trigger
id:
- "1"
then:
- data: {}
target:
entity_id:
- light.dimeetkamer
- light.dimwoonkamer
action: light.turn_on
- if:
- condition: trigger
id:
- "2"
then:
- target:
entity_id:
- light.dimeetkamer
- light.dimwoonkamer
data: {}
action: light.turn_off
mode: single
max_exceeded: silent