Bright mode smarter when past bedtime but kid not asleep

This commit is contained in:
2023-02-12 16:49:00 -05:00
parent 7ed697e303
commit a6454bb61b

View File

@ -871,9 +871,15 @@ script:
data:
option: Bright
- if:
- condition: state
entity_id: input_boolean.kallen_sleeping
state: 'off'
- condition: template
value_template: >
{% if is_state('input_boolean.kallen_sleeping','off') %}
true
{% elif is_state('input_boolean.kallen_sleeping','on') and is_state('light.kallen_bedroom_lights','on') %}
true
{% else %}
false
{% endif %}
then:
- service: input_select.select_option
target:
@ -881,9 +887,15 @@ script:
data:
option: Bright
- if:
- condition: state
entity_id: input_boolean.emma_sleeping
state: 'off'
- condition: template
value_template: >
{% if is_state('input_boolean.emma_sleeping','off') %}
true
{% elif is_state('input_boolean.emma_sleeping','on') and is_state('light.emma_bedroom_light','on') %}
true
{% else %}
false
{% endif %}
then:
- service: input_select.select_option
target: