Adjust scheduling for new earlier start time

More scheduling oops
This commit is contained in:
2023-06-02 13:00:54 -04:00
parent a09cdf292e
commit 6a701dc8da
2 changed files with 10 additions and 10 deletions

View File

@ -178,7 +178,7 @@ script:
time: > time: >
{% from 'time.jinja' import set_time_from_calendar %} {% from 'time.jinja' import set_time_from_calendar %}
{% if is_state('input_boolean.two_hour_delay','on') %} {% if is_state('input_boolean.two_hour_delay','on') %}
11:00 10:00
{% else %} {% else %}
{{ set_time_from_calendar('calendar.kallen_school_days','start_time') }} {{ set_time_from_calendar('calendar.kallen_school_days','start_time') }}
{% endif %} {% endif %}
@ -195,7 +195,7 @@ script:
time: > time: >
{% if is_state('input_boolean.kallen_school_today', 'on') %} {% if is_state('input_boolean.kallen_school_today', 'on') %}
{% if is_state('input_boolean.two_hour_delay','on') %} {% if is_state('input_boolean.two_hour_delay','on') %}
09:30 08:30
{% 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 %}
@ -227,7 +227,7 @@ script:
time: > time: >
{% if is_state('input_boolean.kallen_school_today', 'on') %} {% if is_state('input_boolean.kallen_school_today', 'on') %}
{% if is_state('input_boolean.two_hour_delay','on') %} {% if is_state('input_boolean.two_hour_delay','on') %}
09:40 08:40
{% else %} {% else %}
{{ (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 %}
@ -244,7 +244,7 @@ script:
data: data:
time: > time: >
{% if is_state('input_boolean.two_hour_delay','on') %} {% if is_state('input_boolean.two_hour_delay','on') %}
10:00 09:00
{% else %} {% else %}
{{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 3600) | timestamp_custom('%H:%M', false) }} {{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 3600) | timestamp_custom('%H:%M', false) }}
{% endif %} {% endif %}
@ -253,9 +253,9 @@ 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') %}
13:30 12:45
{% else %} {% else %}
14:00 {{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 5400) | timestamp_custom('%H:%M', false) }}
{% endif %} {% endif %}
- service: input_datetime.set_datetime - service: input_datetime.set_datetime
target: target:
@ -390,7 +390,7 @@ script:
{% set kallenloc = states('input_select.kallen_morning_briefing_location') %} {% set kallenloc = states('input_select.kallen_morning_briefing_location') %}
{% if is_state('input_boolean.kallen_school_today','on') %} {% if is_state('input_boolean.kallen_school_today','on') %}
{% if is_state('input_boolean.two_hour_delay','on') %} {% if is_state('input_boolean.two_hour_delay','on') %}
10:20 9:20
{% else %} {% else %}
{{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 2400) | timestamp_custom('%H:%M', false) }} {{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 2400) | timestamp_custom('%H:%M', false) }}
{% endif %} {% endif %}
@ -421,7 +421,7 @@ script:
{% if is_state('input_boolean.kallen_alternate_pickup','on') %} {% if is_state('input_boolean.kallen_alternate_pickup','on') %}
15:00 15:00
{% elif is_state('input_boolean.kallen_school_early_release','on') %} {% elif is_state('input_boolean.kallen_school_early_release','on') %}
13:15 12:30
{% else %} {% else %}
14:15 14:15
{% endif %} {% endif %}
@ -566,7 +566,7 @@ script:
{% if is_state('input_boolean.kallen_alternate_pickup','on') %} {% if is_state('input_boolean.kallen_alternate_pickup','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:30 12:00
{% else %} {% else %}
13:30 13:30
{% endif %} {% endif %}

View File

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