From d6fe5ba212d9d31966ccf99cee29a44171f8415c Mon Sep 17 00:00:00 2001
From: Tony Stork
Date: Wed, 14 Dec 2022 15:39:49 -0500
Subject: [PATCH] New announcement for leaving the house
---
packages/announcements.yaml | 7 +++++++
packages/notify.yaml | 14 ++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/packages/announcements.yaml b/packages/announcements.yaml
index a6a1906..4a08c4e 100644
--- a/packages/announcements.yaml
+++ b/packages/announcements.yaml
@@ -312,6 +312,13 @@ script:
who: 'everywhere'
call_dinner_is_ready: 1
+ we_are_leaving:
+ sequence:
+ - service: script.status_annc
+ data_template:
+ who: 'everywhere'
+ call_we_are_leaving: 1
+
welcome_home:
sequence:
- condition: state
diff --git a/packages/notify.yaml b/packages/notify.yaml
index 1efa13f..0d92d43 100644
--- a/packages/notify.yaml
+++ b/packages/notify.yaml
@@ -1004,6 +1004,16 @@ script:
{% endmacro %}
+ {% macro we_are_leaving %}
+
+ {{ [
+ 'Everyone please convene on the first floor, we are preparing to leave the house.',
+ 'If everyone could make their way to the first floor, that would be great. We have places to go!',
+ 'Attention all family members. We have errands to run. Please meet on the first floor.'
+ ] | random }}
+
+ {% endmacro %}
+
{% macro lightning_alert() %}
{{ [
'I have detected lightning within 20 miles of our house.',
@@ -1148,6 +1158,10 @@ script:
{{ time_for_bed() }}
{% endif %}
+ {% if call_we_are_leaving == 1 %}
+ {{ we_are_leaving() }}
+ {% endif %}
+
{% if call_ha_started == 1 %}
{{ ha_started() }}
{% endif %}