Small tweak to scheduling for morning briefing

To make sure K hasn't already walked out the door for the bus before it plays
This commit is contained in:
2024-11-14 16:46:36 -05:00
parent 1b2ce1e097
commit 2ceba7cb57

View File

@ -394,7 +394,7 @@ script:
{% set kallenbriefing = state_attr('input_datetime.kallen_morning_briefing','timestamp') %} {% set kallenbriefing = state_attr('input_datetime.kallen_morning_briefing','timestamp') %}
{% 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') %}
{{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 3300) | timestamp_custom('%H:%M', false) }} {{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 3600) | timestamp_custom('%H:%M', false) }}
{% elif is_state('input_boolean.work_today','on') and is_state('input_boolean.kallen_school_today','off') %} {% elif is_state('input_boolean.work_today','on') and is_state('input_boolean.kallen_school_today','off') %}
{% if (state_attr('input_datetime.tina_workday_start','timestamp')) > 43200 %} {% if (state_attr('input_datetime.tina_workday_start','timestamp')) > 43200 %}
{% if kallenloc == 'Common Areas' and kallenbriefing == 43200 %} {% if kallenloc == 'Common Areas' and kallenbriefing == 43200 %}