From 636f442a919038b8a92ffccc7ebf6b0eec7cb545 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 14 Sep 2022 15:29:03 -0400 Subject: [PATCH] Welcome home now aware of K being at school #30 --- templates/speech/welcome_home.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml index 4ee47b0..d0591c0 100644 --- a/templates/speech/welcome_home.yaml +++ b/templates/speech/welcome_home.yaml @@ -133,9 +133,14 @@

{% 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)) }} + "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. + "Tina has work today. " + {% endif %} + {% if is_state('input_boolean.kallen_school','on') %} + "Kallen is at school right now. His pickup time will be at {{ (state_attr('input_datetime.school_day_end','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. " + {% elif is_state('input_boolean.school_today','on') %} + "Kallen has school today. " {% endif %}