Untitled
Anonymous
YAML
12/16/2022 4:24 PM
437 B
24
Indexable
Never
trigger:
- platform: state
entity_id: light.toperchristmasled
to: ['on', 'off']
variables:
entity: switch.przelacznik_salon_1_right
- platform: state
entity_id: switch.przelacznik_salon_1_right
to: ['on', 'off']
variables:
entity: light.toperchristmasled
action:
- service: homeassistant.turn_{{ trigger.to_state.state }}
target:
entity_id: "{{ entity }}"
mode: single
Editor is loading...