Files
homeassistant/switch.yaml
2021-10-15 20:47:14 -04:00

13 lines
351 B
YAML

- platform: template
switches:
basement_lights:
value_template: "{{ is_state('group.basement_lights', 'on')}}"
turn_on:
service: homeassistant.turn_on
target:
entity_id: group.basement_lights
turn_off:
service: homeassistant.turn_off
target:
entity_id: group.basement_lights