From 2ceba7cb578b9c0391d860b86b2a5781240b0152 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 14 Nov 2024 16:46:36 -0500 Subject: [PATCH] Small tweak to scheduling for morning briefing To make sure K hasn't already walked out the door for the bus before it plays --- packages/scheduling.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/scheduling.yaml b/packages/scheduling.yaml index 2fc7cdb..2b1bd37 100644 --- a/packages/scheduling.yaml +++ b/packages/scheduling.yaml @@ -394,7 +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') %} - {{ (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') %} {% if (state_attr('input_datetime.tina_workday_start','timestamp')) > 43200 %} {% if kallenloc == 'Common Areas' and kallenbriefing == 43200 %}