Couple of changes to deal with the wife working later shifts

This commit is contained in:
2022-06-24 18:47:28 -04:00
parent d80303e833
commit a02e1b6973
2 changed files with 9 additions and 2 deletions

View File

@ -106,7 +106,7 @@ automation:
alias: House Scheduling
trigger:
- platform: time
at: '05:45:00'
at: '05:50:00'
id: house-morning
- platform: time
at: '16:05:00'
@ -145,7 +145,11 @@ automation:
{% elif is_state('input_boolean.school_today','off') and is_state('input_boolean.work_today','off') %}
15:00
{% else %}
{{ (state_attr('input_datetime.tina_workday_end', 'timestamp') + 3600) | timestamp_custom('%H:%M', false) }}
{% if (state_attr('input_datetime.tina_workday_end','timestamp')) > 61200 %}
16:00
{% else %}
{{ (state_attr('input_datetime.tina_workday_end', 'timestamp') + 3600) | timestamp_custom('%H:%M', false) }}
{% endif %}
{% endif %}
- service: input_datetime.set_datetime
entity_id: input_datetime.morning_alarm_disarm