Fix K's bedtime set wrong on last day of summer break
This commit is contained in:
@ -283,12 +283,10 @@ script:
|
||||
entity_id: input_datetime.kallen_bedtime
|
||||
data:
|
||||
time: >
|
||||
{% if is_state('input_boolean.school_in_session','on') %}
|
||||
{% if is_state('binary_sensor.kallen_school_tomorrow', 'on') %}
|
||||
21:00
|
||||
{% else %}
|
||||
{% elif is_state('input_boolean.school_in_session','on') %}
|
||||
22:00
|
||||
{% endif %}
|
||||
{% else %}
|
||||
23:00
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user