diff --git a/packages/scheduling.yaml b/packages/scheduling.yaml index c63d71d..c5fe7ad 100644 --- a/packages/scheduling.yaml +++ b/packages/scheduling.yaml @@ -142,9 +142,11 @@ automation: data_template: time: > {% if is_state('input_boolean.work_today','on') and is_state('input_boolean.school_today','off') %} - {{ (state_attr('input_datetime.tina_workday_end', 'timestamp') + 3600) | timestamp_custom('%H:%M', false) }} - {% else %} + {{ (state_attr('input_datetime.tina_workday_start', 'timestamp') - 3600) | timestamp_custom('%H:%M', false) }} + {% elif is_state('input_boolean.school_today','on') %} 08:00 + {% else %} + 11:00 {% endif %} - if: - condition: trigger