Combined morning and evening schedule automations

This commit is contained in:
2022-06-02 13:30:38 -04:00
parent fc2668ac93
commit a1e49e8aa3

View File

@@ -38,11 +38,19 @@ input_datetime:
automation:
- id: c772b54d-6448-4d74-a0c2-32998f49b17c
alias: Kallen Scheduling - Morning
alias: Kallen Scheduling
trigger:
platform: time
- platform: time
at: '06:05:00'
id: kallen-morning
- platform: time
at: '16:00:00'
id: kallen-evening
action:
- if:
- condition: trigger
id: kallen-morning
then:
- service: input_datetime.set_datetime
entity_id: input_datetime.kallen_wakeup_time
data_template:
@@ -61,13 +69,10 @@ automation:
{% else %}
10:00
{% endif %}
- id: 0335656c-b5cf-4983-bbac-a2d71ca2b74e
alias: Kallen Scheduling - Evening
trigger:
platform: time
at: '16:00:00'
action:
- if:
- condition: trigger
id: kallen-evening
then:
- service: input_datetime.set_datetime
entity_id: input_datetime.kallen_bedtime
data_template:
@@ -88,11 +93,19 @@ automation:
{% endif %}
- id: 1c9f7e4b-2d5a-4b95-bd80-d9aa2244a6db
alias: House Scheduling - Morning
alias: House Scheduling
trigger:
platform: time
- platform: time
at: '06:10:00'
id: house-morning
- platform: time
at: '16:05:00'
id: house-evening
action:
- if:
- condition: trigger
id: house-morning
then:
- service: input_datetime.set_datetime
entity_id: input_datetime.audible_notification_on
data_template:
@@ -100,7 +113,7 @@ automation:
{% if is_state('input_boolean.school_today','on') %}
07:30
{% else %}
09:00
08:15
{% endif %}
- service: input_datetime.set_datetime
entity_id: input_datetime.morning_report
@@ -122,13 +135,10 @@ automation:
{% else %}
{{ (state_attr('input_datetime.tina_workday_end', 'timestamp') + 3600) | timestamp_custom('%H:%M', false) }}
{% endif %}
- id: 55293e9a-ec3b-46bb-af47-94e95f3c9951
alias: House Scheduling - Evening
trigger:
platform: time
at: '16:05:00'
action:
- if:
- condition: trigger
id: house-evening
then:
- service: input_datetime.set_datetime
entity_id: input_datetime.audible_notification_off
data_template: