Bright mode smarter when past bedtime but kid not asleep
This commit is contained in:
@ -871,9 +871,15 @@ script:
|
|||||||
data:
|
data:
|
||||||
option: Bright
|
option: Bright
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: template
|
||||||
entity_id: input_boolean.kallen_sleeping
|
value_template: >
|
||||||
state: 'off'
|
{% 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:
|
then:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
@ -881,9 +887,15 @@ script:
|
|||||||
data:
|
data:
|
||||||
option: Bright
|
option: Bright
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: template
|
||||||
entity_id: input_boolean.emma_sleeping
|
value_template: >
|
||||||
state: 'off'
|
{% 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:
|
then:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
|
Reference in New Issue
Block a user