From f50c419c1f6d501f353230220bd78986fd04f3eb Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 12 Dec 2022 20:59:09 -0500 Subject: [PATCH] Latest attempt to fix wife's work scheduling --- templates/speech/nightly_briefing.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/speech/nightly_briefing.yaml b/templates/speech/nightly_briefing.yaml index 4ebee99..b8dc881 100644 --- a/templates/speech/nightly_briefing.yaml +++ b/templates/speech/nightly_briefing.yaml @@ -18,7 +18,13 @@ {% else %} "Colin does not have school tomorrow. " {% endif %} - "I am tired of the stupid fucking calendar for Tina's work schedule breaking, so fuck this. " + {% if is_state('input_boolean.work_today','on') %} + "Tina is still 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('binary_sensor.tina_work_tomorrow','on') %} + "Tina has work tomorrow. Check your calendar for the start time. " + {% else %} + "Tina appears to have tomorrow off. " + {% endif %}