From 7076b4af3aee984ee8e28e7eaa267ef9730319f7 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 10 May 2022 13:13:44 -0400 Subject: [PATCH] Moved scheduling automations to their own yaml package --- packages/announcements.yaml | 82 ------------------------------------- packages/scheduling.yaml | 82 +++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 82 deletions(-) create mode 100644 packages/scheduling.yaml diff --git a/packages/announcements.yaml b/packages/announcements.yaml index dbaf059..db86e07 100644 --- a/packages/announcements.yaml +++ b/packages/announcements.yaml @@ -63,88 +63,6 @@ automation: - service: input_boolean.turn_off entity_id: input_boolean.audible_notifications - - id: c772b54d-6448-4d74-a0c2-32998f49b17c - alias: Kallen Scheduling - Morning - trigger: - platform: time - at: '06:05:00' - action: - - service: input_datetime.set_datetime - entity_id: input_datetime.kallen_wakeup_time - data_template: - time: > - {% if is_state('input_boolean.school_today', 'on') %} - 07:30 - {% else %} - 08:00 - {% endif %} - - service: input_datetime.set_datetime - entity_id: input_datetime.kallen_morning_briefing - data_template: - time: > - {% if is_state('input_boolean.school_today', 'on') %} - 07:40 - {% else %} - 10:00 - {% endif %} - - - id: 0335656c-b5cf-4983-bbac-a2d71ca2b74e - alias: Kallen Scheduling - Evening - trigger: - platform: time - at: '16:00:00' - action: - - service: input_datetime.set_datetime - entity_id: input_datetime.kallen_bedtime - data_template: - time: > - {% if is_state('sensor.school_tomorrow', 'on') %} - 21:00 - {% else %} - 22:00 - {% endif %} - - service: input_datetime.set_datetime - entity_id: input_datetime.kallen_nightly_briefing - data_template: - time: > - {% if is_state('sensor.school_tomorrow', 'on') %} - 20:40 - {% else %} - 21:40 - {% endif %} - - - id: 1c9f7e4b-2d5a-4b95-bd80-d9aa2244a6db - alias: House Scheduling - Morning - trigger: - platform: time - at: '06:10:00' - action: - - service: input_datetime.set_datetime - entity_id: input_datetime.audible_notification_on - data_template: - time: > - {% if is_state('input_boolean.school_today','on') %} - 07:30 - {% else %} - 09:00 - {% endif %} - - - id: 55293e9a-ec3b-46bb-af47-94e95f3c9951 - alias: House Scheduling - Evening - trigger: - platform: time - at: '16:05:00' - action: - - service: input_datetime.set_datetime - entity_id: input_datetime.audible_notification_off - data_template: - time: > - {% if is_state('sensor.school_tomorrow','on') %} - 22:00 - {% else %} - 23:00 - {% endif %} - - id: db50d96f-8e2a-4e48-8d7c-ce5968527b82 alias: Kallen Morning Briefing trigger: diff --git a/packages/scheduling.yaml b/packages/scheduling.yaml new file mode 100644 index 0000000..b416254 --- /dev/null +++ b/packages/scheduling.yaml @@ -0,0 +1,82 @@ +automation: + - id: c772b54d-6448-4d74-a0c2-32998f49b17c + alias: Kallen Scheduling - Morning + trigger: + platform: time + at: '06:05:00' + action: + - service: input_datetime.set_datetime + entity_id: input_datetime.kallen_wakeup_time + data_template: + time: > + {% if is_state('input_boolean.school_today', 'on') %} + 07:30 + {% else %} + 08:00 + {% endif %} + - service: input_datetime.set_datetime + entity_id: input_datetime.kallen_morning_briefing + data_template: + time: > + {% if is_state('input_boolean.school_today', 'on') %} + 07:40 + {% else %} + 10:00 + {% endif %} + + - id: 0335656c-b5cf-4983-bbac-a2d71ca2b74e + alias: Kallen Scheduling - Evening + trigger: + platform: time + at: '16:00:00' + action: + - service: input_datetime.set_datetime + entity_id: input_datetime.kallen_bedtime + data_template: + time: > + {% if is_state('sensor.school_tomorrow', 'on') %} + 21:00 + {% else %} + 22:00 + {% endif %} + - service: input_datetime.set_datetime + entity_id: input_datetime.kallen_nightly_briefing + data_template: + time: > + {% if is_state('sensor.school_tomorrow', 'on') %} + 20:40 + {% else %} + 21:40 + {% endif %} + + - id: 1c9f7e4b-2d5a-4b95-bd80-d9aa2244a6db + alias: House Scheduling - Morning + trigger: + platform: time + at: '06:10:00' + action: + - service: input_datetime.set_datetime + entity_id: input_datetime.audible_notification_on + data_template: + time: > + {% if is_state('input_boolean.school_today','on') %} + 07:30 + {% else %} + 09:00 + {% endif %} + + - id: 55293e9a-ec3b-46bb-af47-94e95f3c9951 + alias: House Scheduling - Evening + trigger: + platform: time + at: '16:05:00' + action: + - service: input_datetime.set_datetime + entity_id: input_datetime.audible_notification_off + data_template: + time: > + {% if is_state('sensor.school_tomorrow','on') %} + 22:00 + {% else %} + 23:00 + {% endif %}