1
0
ansible-home-assistant/roles/automations/templates/lights.yaml.j2

21 lines
450 B
Plaintext
Raw Permalink Normal View History

2020-11-03 23:55:41 +00:00
{% for light in lights %}
# {{ light.name }}
- id: sleep_on_{{ light.entityId }}
alias: '[Sleep-On] {{ light.name }}'
trigger:
- platform: state
entity_id:
2022-05-17 17:05:26 +00:00
- input_boolean.sleep_mode
to: 'on'
condition:
- condition: state
entity_id: {{ light.entityId }}
state: 'on'
2020-11-03 23:55:41 +00:00
action:
- service: light.turn_on
data:
kelvin: 2000
entity_id: {{ light.entityId }}
mode: single
{% endfor %}