Untitled

mail@pastecode.io avatar
unknown
yaml
2 years ago
437 B
3
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