Fixed wife's presence detection for briefings
This commit is contained in:
@ -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.
|
||||||
|
@ -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. "
|
||||||
|
Reference in New Issue
Block a user