From 4117e22672de9139867cfc81ebb012cec1fbb9db Mon Sep 17 00:00:00 2001 From: ccostan Date: Tue, 28 Jul 2020 14:30:37 -0400 Subject: [PATCH] Closes #830 - Nest announcements should only occur for an actual emergency. --- config/packages/nest_protects.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/packages/nest_protects.yaml b/config/packages/nest_protects.yaml index 199ce1b9..b8298efb 100755 --- a/config/packages/nest_protects.yaml +++ b/config/packages/nest_protects.yaml @@ -36,6 +36,13 @@ automation: action: + - service: input_boolean.turn_on + entity_id: input_boolean.alert_mode + + - service: script.speech_engine + data_template: + value1: "The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately." + - service: script.notify_engine data_template: value1: "An emergency has been detected on {{ trigger.to_state.attributes.friendly_name }} Please investigate IMMEDIATELY."