From 944cc9dc601310f5a76cf5091a25f026962cef13 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sat, 2 Jul 2022 19:16:27 -0400 Subject: [PATCH] Added announcement when HA reboots --- automations.yaml | 5 +++++ packages/notify.yaml | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/automations.yaml b/automations.yaml index a5f5d45..bf4ff8d 100644 --- a/automations.yaml +++ b/automations.yaml @@ -296,6 +296,11 @@ target: entity_id: - switch.presence_simulation + data: {} + - service: script.status_annc + data_template: + who: basement + call_ha_started: 1 - if: - condition: trigger id: hass_stop diff --git a/packages/notify.yaml b/packages/notify.yaml index f36a292..5d92d95 100644 --- a/packages/notify.yaml +++ b/packages/notify.yaml @@ -903,6 +903,18 @@ script: ] | random}} {% endmacro %} + {% macro ha_started() %} +

+ {{ [ + 'All systems are operational again. ', + 'I am back, sir. Not to worry. ', + 'I am back online. Nice to see you, sir. ', + 'Your home assistant is back online, sir. ', + 'My systems are back online. Hello, sir. ' + ] | random }} +

+ {% endmacro %} + {%- macro snark_door_motion() -%} {{ [ 'Do you want me to send them away?',