Tweaks for K's early dismissal protocol

This commit is contained in:
2023-12-10 13:20:26 -05:00
parent d8437cb47a
commit 2c73db94d3
2 changed files with 5 additions and 5 deletions

View File

@ -239,7 +239,7 @@ script:
data: data:
time: > time: >
{% if is_state('input_boolean.kallen_school_early_release','on') %} {% if is_state('input_boolean.kallen_school_early_release','on') %}
12:45 13:00
{% else %} {% else %}
{{ (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 %}
@ -408,12 +408,12 @@ script:
{% from 'time.jinja' import time_from_calendar %} {% from 'time.jinja' import time_from_calendar %}
{% if is_state('input_boolean.kallen_school_today','on') %} {% if is_state('input_boolean.kallen_school_today','on') %}
{% if is_state('input_boolean.kallen_alternate_pickup','on') or is_state('input_boolean.kallen_btb','on') %} {% if is_state('input_boolean.kallen_alternate_pickup','on') or is_state('input_boolean.kallen_btb','on') %}
15:00 15:30
{% else %} {% else %}
{{ time_from_calendar('calendar.kallen_school_days','end_time','set','subtract',1) }} {{ time_from_calendar('calendar.kallen_school_days','end_time','set','subtract',1) }}
{% endif %} {% endif %}
{% elif is_state('input_boolean.kallen_school_today','off') and is_state('input_boolean.work_today','off') %} {% elif is_state('input_boolean.kallen_school_today','off') and is_state('input_boolean.work_today','off') %}
15:00 15:30
{% else %} {% else %}
{% if (state_attr('input_datetime.tina_workday_end','timestamp')) > 61200 %} {% if (state_attr('input_datetime.tina_workday_end','timestamp')) > 61200 %}
16:00 16:00
@ -553,7 +553,7 @@ script:
{% if is_state('input_boolean.kallen_alternate_pickup','on') or is_state('input_boolean.kallen_btb','on') %} {% if is_state('input_boolean.kallen_alternate_pickup','on') or is_state('input_boolean.kallen_btb','on') %}
14:30 14:30
{% elif is_state('input_boolean.kallen_school_early_release','on') %} {% elif is_state('input_boolean.kallen_school_early_release','on') %}
12:00 12:30
{% else %} {% else %}
13:00 13:00
{% endif %} {% endif %}

View File

@ -369,7 +369,7 @@ script:
target: target:
entity_id: input_datetime.kallen_school_day_end entity_id: input_datetime.kallen_school_day_end
data: data:
time: "13:45:00" time: "14:00:00"
else: else:
- service: input_datetime.set_datetime - service: input_datetime.set_datetime
target: target: