Fixed wife's presence detection for briefings

This commit is contained in:
2022-09-26 18:00:40 -04:00
parent f3862f4b04
commit 02d65c4192
2 changed files with 4 additions and 2 deletions

View File

@ -266,7 +266,8 @@
{%- endif -%} {%- endif -%}
{%- endif -%} {%- endif -%}
{% if is_state('person.christina_stork','Bob Evans') and is_state('input_boolean.work_today','on') %} {% set tina = states.person.christina_stork.state %}
{% if tina in ['Bob Evans','BobEvans'] 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> <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') %} {% elif is_state('input_boolean.work_today','on') %}
Tina has work today. Tina has work today.

View File

@ -131,7 +131,8 @@
</p> </p>
<p> <p>
{% if is_state('person.christina_stork','Bob Evans') and is_state('input_boolean.work_today','on') %} {% set tina = states.person.christina_stork.state %}
{% if tina in ['Bob Evans','BobEvans'] 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') %} {% elif is_state('input_boolean.work_today','on') %}
"Tina has work today. " "Tina has work today. "