From a177a85a107b50c9c420ccc84f76f69af89f7938 Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Mon, 10 Oct 2022 17:33:23 -0700 Subject: [PATCH] Update Frigate Notifications --- packages/notification/notification.yaml | 10 +++++----- packages/security/security.yaml | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/notification/notification.yaml b/packages/notification/notification.yaml index ea00999..306e646 100644 --- a/packages/notification/notification.yaml +++ b/packages/notification/notification.yaml @@ -23,17 +23,17 @@ notify: - name: security platform: group services: - - service: mobile_app_jp_pixel3a + - service: mobile_app_jp_iphone data: title: Home Security data: - ttl: 0 - priority: high + push: + interruption-level: time-sensitive - name: general platform: group services: - - service: mobile_app_jp_pixel3a + - service: mobile_app_jp_iphone data: title: Home Assistant @@ -41,4 +41,4 @@ notify: platform: group services: - service: mobile_app_jennifer_s_iphone - - service: mobile_app_jp_pixel3a + - service: mobile_app_jp_iphone diff --git a/packages/security/security.yaml b/packages/security/security.yaml index edac09a..e5a5f77 100644 --- a/packages/security/security.yaml +++ b/packages/security/security.yaml @@ -320,6 +320,9 @@ automation: topic: frigate/events payload: new value_template: "{{ value_json.type }}" + condition: + - condition: template + value_template: "{{ trigger.payload_json.after.has_clip }}" action: service: notify.security data: