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 alias: House Scheduling
trigger: trigger:
- platform: time - platform: time
at: '05:45:00' at: '05:50:00'
id: house-morning id: house-morning
- platform: time - platform: time
at: '16:05:00' 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') %} {% elif is_state('input_boolean.school_today','off') and is_state('input_boolean.work_today','off') %}
15:00 15:00
{% else %} {% 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 %} {% endif %}
- service: input_datetime.set_datetime - service: input_datetime.set_datetime
entity_id: input_datetime.morning_alarm_disarm entity_id: input_datetime.morning_alarm_disarm

View File

@ -175,6 +175,9 @@ automation:
- condition: state - condition: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'off' state: 'off'
- condition: time
after: '06:00'
before: '12:00'
- condition: or - condition: or
conditions: conditions:
- condition: state - condition: state