Scheduling tweaks for summer break for K
This commit is contained in:
@ -200,7 +200,7 @@ script:
|
|||||||
{{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 5400) | timestamp_custom('%H:%M', false) }}
|
{{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 5400) | timestamp_custom('%H:%M', false) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
10:00
|
12:00
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
@ -232,7 +232,7 @@ script:
|
|||||||
{{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 4800) | timestamp_custom('%H:%M', false) }}
|
{{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 4800) | timestamp_custom('%H:%M', false) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
10:00
|
12:00
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: state
|
||||||
@ -283,10 +283,14 @@ script:
|
|||||||
entity_id: input_datetime.kallen_bedtime
|
entity_id: input_datetime.kallen_bedtime
|
||||||
data:
|
data:
|
||||||
time: >
|
time: >
|
||||||
{% if is_state('binary_sensor.kallen_school_tomorrow', 'on') %}
|
{% if is_state('input_boolean.school_in_session','on') %}
|
||||||
21:00
|
{% if is_state('binary_sensor.kallen_school_tomorrow', 'on') %}
|
||||||
|
21:00
|
||||||
|
{% else %}
|
||||||
|
22:00
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
22:00
|
11:00
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
seconds: 1
|
||||||
|
Reference in New Issue
Block a user