Adjusted morning logic

This commit is contained in:
2022-06-06 00:14:35 -04:00
parent 7c7e2ad312
commit 05d5f8b513

View File

@ -132,6 +132,8 @@ automation:
time: > time: >
{% if is_state('input_boolean.school_today','on') %} {% if is_state('input_boolean.school_today','on') %}
14:15 14:15
{% elif is_state('input_boolean.school_today','off') and is_state('input_boolean.work_today','off') %}
15:00
{% else %} {% else %}
{{ (state_attr('input_datetime.tina_workday_end', 'timestamp') + 3600) | timestamp_custom('%H:%M', false) }} {{ (state_attr('input_datetime.tina_workday_end', 'timestamp') + 3600) | timestamp_custom('%H:%M', false) }}
{% endif %} {% endif %}