From c3440941c723a5789898937f2a2450ce254457b0 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 13 Oct 2022 19:31:19 -0400 Subject: [PATCH] Nightly briefing says proper times for K's school days #52 --- templates/speech/nightly_briefing.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/speech/nightly_briefing.yaml b/templates/speech/nightly_briefing.yaml index 82a49ff..1477680 100644 --- a/templates/speech/nightly_briefing.yaml +++ b/templates/speech/nightly_briefing.yaml @@ -11,10 +11,12 @@ {% endif %} {% if is_state('sensor.school_tomorrow','on') %} {% if is_state('sensor.band_tomorrow','on') %} - "Kallen has school tomorrow, and there will be band practice in the morning. " + "Kallen has school tomorrow, and there will be band practice in the morning at {{ as_timestamp(strptime(state_attr('calendar.kallen_school_days','start_time'), '%Y-%m-%d %H:%M:%S')) | timestamp_custom("%I:%M %p") }}. " {% else %} - "Kallen has school tomorrow. " + "Kallen has school tomorrow at {{ as_timestamp(strptime(state_attr('calendar.kallen_school_days','start_time'), '%Y-%m-%d %H:%M:%S')) | timestamp_custom("%I:%M %p") }}. " {% endif %} + {% else %} + "Kallen does not have school tomorrow. " {% endif %} "I am currently unable to tell you whether Tina works tomorrow. Coming soon, I hope. "