From 536d04b3e1c888db657ca46283dcf6abdc49485f Mon Sep 17 00:00:00 2001
From: Tony Stork
Date: Wed, 31 Aug 2022 13:00:50 -0400
Subject: [PATCH] Added Tina's work status to welcome home message
---
templates/speech/welcome_home.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml
index 27a7641..c6ed9c7 100644
--- a/templates/speech/welcome_home.yaml
+++ b/templates/speech/welcome_home.yaml
@@ -85,6 +85,14 @@
{% 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 %}
+
+
{%- endmacro -%}
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}