From 4f5170266f0a0fd1caced958e78216474adb4c27 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 31 Aug 2022 13:00:07 -0400 Subject: [PATCH] Rearranged daily briefing a bit --- templates/speech/daily_briefing.yaml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/templates/speech/daily_briefing.yaml b/templates/speech/daily_briefing.yaml index b6c4bc3..2832820 100644 --- a/templates/speech/daily_briefing.yaml +++ b/templates/speech/daily_briefing.yaml @@ -96,18 +96,6 @@

Let me check the sit rep for today. - {% if is_state('input_boolean.kallen_school','on') %} - Kallen is at school right now. - {% elif is_state('input_boolean.school_today','off') and is_state('input_boolean.school_in_session','on') %} - Kallen does not have school today. - {% endif %} - - {% if is_state('person.christina_stork','Bob Evans') and is_state('input_boolean.work_today','on') %} - Tina is at work right now. - {% elif is_state('input_boolean.work_today','on') %} - Tina has work today. - {% endif %} - {% if dow == 'Monday' %} {{ [ 'Do not forget to take the trash bin to the curb, tomorrow is trash pickup day.', @@ -253,6 +241,12 @@ {%- endif -%} {%- endif -%} + {% if is_state('person.christina_stork','Bob Evans') and is_state('input_boolean.work_today','on') %} + Tina is at work right now. She will be done at approximately {{ (state_attr('input_datetime.tina_workday_end','timestamp') | int | timestamp_custom('%I:%M %p', False)) }} + {% elif is_state('input_boolean.work_today','on') %} + Tina has work today. + {% endif %} + {% if is_state('input_boolean.school_today', 'on') and state_attr('input_datetime.school_day_end', 'timestamp') < as_timestamp(now()) %} {% if is_state('sensor.school_start_days2go', '0') %} Today is the first day of school! There are {{ states('sensor.school_end_days2go') }} to go until the last day.