Przemek Grondek
a3b1355aa4
turns on lights when group is turning off logic from this automations has been moved to automations that turns lights on
19 lines
418 B
Django/Jinja
19 lines
418 B
Django/Jinja
{% for light in lights %}
|
|
# {{ light.name }}
|
|
- id: sleep_on_{{ light.entityId }}
|
|
alias: '[Sleep-On] {{ light.name }}'
|
|
trigger:
|
|
- platform: time
|
|
at: input_datetime.sleep_mode
|
|
condition:
|
|
- condition: state
|
|
entity_id: {{ light.entityId }}
|
|
state: 'on'
|
|
action:
|
|
- service: light.turn_on
|
|
data:
|
|
kelvin: 2000
|
|
entity_id: {{ light.entityId }}
|
|
mode: single
|
|
{% endfor %}
|