From 102d54dbca407ab4e2818959304c2ca689c973f7 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 30 Jun 2022 17:29:18 -0400 Subject: [PATCH] New urgent text alert script --- packages/notify.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/packages/notify.yaml b/packages/notify.yaml index 7f63844..f36a292 100644 --- a/packages/notify.yaml +++ b/packages/notify.yaml @@ -343,6 +343,31 @@ script: # category: '{{ ios_category }}' # entity_id: '{{ camera_entity }}' + text_urgent_alert: + sequence: + - service: > + {% if who == 'tony' %} + notify.ios_tony + {% elif who == 'tina' %} + notify.ios_tina + {% elif who == 'kallen' %} + notify.ios_kallen + {% elif who == 'parents' %} + notify.ios_parents + {% elif who == 'nerds' %} + notify.ios_nerds + {% else %} + notify.all_ios + {% endif %} + data: + title: "{{ title }}" + message: "{{ message }}" + data: + push: + sound: + name: default + critical: 1 + ############################################################################### # Alert Notify # Conditions: