Added Tina's work status to welcome home message

This commit is contained in:
2022-08-31 13:00:50 -04:00
parent 4f5170266f
commit 536d04b3e1

View File

@ -85,6 +85,14 @@
{% endif %}
</p>
<p>
{% if is_state('person.christina_stork','Bob Evans') and is_state('input_boolean.work_today','on') %}
<s>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)) }}</s>
{% elif is_state('input_boolean.work_today','on') %}
Tina has work today.
{% endif %}
</p>
{%- endmacro -%}
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}