From ff74b2ab77a48b00b9a252389a9800cdd5d74cac Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 18 Apr 2022 20:37:34 -0400 Subject: [PATCH] Couple of extra tweaks --- packages/announcements.yaml | 42 +++++++++++++++++++ templates/speech/kallen_nightly_briefing.yaml | 4 +- 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/packages/announcements.yaml b/packages/announcements.yaml index dd32f58..4406e8a 100644 --- a/packages/announcements.yaml +++ b/packages/announcements.yaml @@ -63,6 +63,48 @@ automation: - service: input_boolean.turn_off entity_id: input_boolean.audible_notifications + - id: b8d21d04-c263-4d33-9590-9fb1e76b0de8 + alias: Kallen Nightly Report + trigger: + platform: time + at: input_datetime.kallen_nightly_report + action: + - service: script.kallen_nightly_report + + - id: c772b54d-6448-4d74-a0c2-32998f49b17c + alias: Kallen Scheduling + trigger: + platform: time + at: '06:05:00' + action: + - service: input_datetime.set_datetime + entity_id: input_datetime.kallen_wakeup_time + data_template: + time: > + {% if states('input_boolean.school_today', 'on') %} + 07:30 + {% else %} + 08:00 + {% endif %} + - service: input_datetime.set_datetime + entity_id: input_datetime.kallen_bedtime + data_template: + time: > + {% if states('sensor.school_tomorrow', 'on') %} + 21:00 + {% else %} + 22:00 + {% endif %} + - service: input_datetime.set_datetime + entity_id: input_datetime.kallen_nightly_report + data_template: + time: > + {% if states('sensor.school_tomorrow', 'on') %} + 20:40 + {% else %} + 21:40 + {% endif %} + script: reset_annc_switches: sequence: diff --git a/templates/speech/kallen_nightly_briefing.yaml b/templates/speech/kallen_nightly_briefing.yaml index d68a77b..28cc85c 100644 --- a/templates/speech/kallen_nightly_briefing.yaml +++ b/templates/speech/kallen_nightly_briefing.yaml @@ -56,8 +56,8 @@ {% elif states.sensor.school_end_days2go.state | int == 0 -%} Tomorrow is the first day of summer. Are you ready? {%- endif %} - {{ [ 'I have turned on your bedroom lights.', - 'I have executed the Pre bed routine for your room.' + {{ [ 'I will turn on your bedroom lights and appropriate white noise device at bedtime.', + 'I have executed the Pre bed routine for your room. Standby for bedtime protocol in two zero minutes.' ] | random }}

{%- endmacro -%}