Improve situations where wife worked today but is done now

This commit is contained in:
2023-05-24 14:16:44 -04:00
parent a9bc1c0513
commit 5ae7d7394f
2 changed files with 17 additions and 3 deletions

View File

@ -345,8 +345,11 @@ Tony does not have a stream scheduled today. The next scheduled stream is in {{
Tina is at work right now. She will be done at approximately {{ input_datetime_12hr('input_datetime.tina_workday_end') }} today.
{% elif is_state('input_boolean.work_today','on') %}
Tina has work at {{ input_datetime_12hr('input_datetime.tina_workday_start') }} today.
{% elif is_state('binary_sensor.evening','on') and is_state('binary_sensor.tina_work_tomorrow','on') %}
Tina has work tomorrow at {{ diff | timestamp_custom('%H:%M %p',false) }}.
{% elif is_state('input_boolean.work_today_extended','on') and is_state('input_boolean.work_today','off') %}
Tina has finished work for the day.
{% if is_state('binary_sensor.tina_work_tomorrow','on') %}
She has work tomorrow at {{ diff | timestamp_custom('%H:%M %p',false) }}.
{% endif %}
{% else %}
Tina has today off from work.
{% endif %}