Add morning announcements for K

This commit is contained in:
2024-11-14 16:25:39 -05:00
parent 9ed2f658a4
commit 7459005500
4 changed files with 25 additions and 6 deletions

View File

@ -394,11 +394,7 @@ script:
{% set kallenbriefing = state_attr('input_datetime.kallen_morning_briefing','timestamp') %}
{% set kallenloc = states('input_select.kallen_morning_briefing_location') %}
{% if is_state('input_boolean.kallen_school_today','on') %}
{% if is_state('input_boolean.two_hour_delay','on') %}
9:20
{% else %}
{{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 2400) | timestamp_custom('%H:%M', false) }}
{% endif %}
{{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 3300) | timestamp_custom('%H:%M', false) }}
{% 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 kallenloc == 'Common Areas' and kallenbriefing == 43200 %}