Another change for wife's later shifts

This commit is contained in:
2022-06-24 18:58:25 -04:00
parent 3e683241ea
commit 7e66cd46a0

View File

@ -132,7 +132,11 @@ automation:
{% if is_state('input_boolean.school_today','on') %}
08:20
{% elif is_state('input_boolean.work_today','on') and is_state('input_boolean.school_today','off') %}
{{ (state_attr('input_datetime.tina_workday_start', 'timestamp') - 1800) | timestamp_custom('%H:%M', false) }}
{% if (state_attr('input_datetime.tina_workday_start','timestamp')) > 43200 %}
12:00
{% else %}
{{ (state_attr('input_datetime.tina_workday_start', 'timestamp') - 1800) | timestamp_custom('%H:%M', false) }}
{% endif %}
{% else %}
12:00
{% endif %}