Skip to content

Commit 2ffeb09

Browse files
authored
Merge Beta into Stable
1 parent cfc685f commit 2ffeb09

File tree

1 file changed

+28
-49
lines changed

1 file changed

+28
-49
lines changed

Frigate_Camera_Notifications/Stable.yaml

Lines changed: 28 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blueprint:
2-
name: Frigate Notifications (0.12.0.6)
2+
name: Frigate Notifications (0.12.0.6b)
33
author: SgtBatten
44
homeassistant:
55
min_version: 2024.11.0
@@ -25,52 +25,10 @@ blueprint:
2525
### Features:
2626
- Easily select the camera entities or mobile device using a drop-down menu.
2727
- Configure multiple cameras in one automation.
28-
- Send notifications to an Android or iOS mobile device or a TV.
29-
- or a group containing any combination of the above.
30-
- for TV Alerts, you need to install and configure https://www.home-assistant.io/integrations/nfandroidtv/
31-
- Notify via Telegram
32-
- Configure the title and message of the notification.
33-
- Dynamically handle things like object type, zones, and face detection from doubletake.
34-
- Automatically handle some common errors like case matching and bad URLs etc.
35-
- Optionally send the notification as a critical alert. (Critical)
36-
- Optionally limit playing audio for secondary notification updates, and on iOS, customise the sound. (Alert Once)
37-
- Choose whether or not to update the notification with new thumbnails as they become available.
38-
- Customise the notification colour and icon.
39-
- Optionally send a live view to iOS.
40-
- Configure custom notification channels on Android.
41-
- Specify which [zones][2] to be notified about. (Zone Filter)
42-
- Choose between enforcing all required zones simultaneously or any one zone.
43-
- Choose to enforce zones in a specific order (e.g arriving but not leaving)
44-
- Specify what type of [objects][3] to be notified about. (Object Filter)
45-
- Disable notifications if a presence entity or group is "home". (Presence Filter)
46-
- Limit notifications based on the state of another entity. (State Filter)
47-
- Limit notifications to certain hours of the day. (Time Filter)
48-
- Configure a cooldown for the camera to reduce the number of notifications when back-to-back events occur.
49-
- Silence future notifications for a defined amount of time through actionable notifications. This is helpful in situations where you know you will be triggering detections for an extended period of time. i.e. kids playing outside.
50-
- Set a loitering timer to notify you of stationary objects that remain for a set time.
51-
- Configure what happens when you tap the notification. (Tap Action)
52-
- Configure 3 action buttons to open almost anything. (defaults are: View Clip, View Snapshot, and Silence New Notifications)
53-
- Configure the size, transparency, position, and duration of TV notifications.
54-
- Debug option to help with troubleshooting.
55-
- Support for multiple Frigate instances by specifying the ClientID and MQTT topic.
56-
- Optional delay to the initial notification to see if it resolves the no attached image issue.
57-
- Live view on iOS.
58-
- Android option: Sticky as per https://community.home-assistant.io/t/frigate-mobile-app-notifications/311091/1043
59-
- Add 5s delay to the final notification update to ensure Frigate has time to save snapshot edits (crop, bounding box, etc.) if "update thumbnail" is enabled.
60-
- Add Video (gif) option to Android which will be sent 5 seconds after the event ends.
61-
- Subtitle support.
62-
- Video for iOS sent 5 seconds after the event ends.
63-
- Set custom entity for iOS live view.
64-
- Set Icons for Action Buttons on iOS.
65-
- Android Auto option.
66-
- Custom Filter.
67-
- Customise group on mobile devices.
68-
- Bounding box and crop options for attachment.
69-
- Set notification volume on iOS
7028
71-
[1]: https://companion.home-assistant.io/docs/notifications/notifications-basic#sending-notifications-to-multiple-devices
72-
[2]: https://blakeblackshear.github.io/frigate/configuration/cameras#zones
73-
[3]: https://blakeblackshear.github.io/frigate/configuration/objects
29+
For the full features list visit the [GitHub Repository][1]
30+
31+
[1]: https://github.com/SgtBatten/HA_blueprints/blob/main/Frigate_Camera_Notifications
7432
7533
## Support
7634
Go to https://github.com/SgtBatten/HA_blueprints to report bugs, request new features, or get support with your configuration.
@@ -866,7 +824,7 @@ triggers:
866824
variables:
867825
type: "{{trigger.payload_json['type'] if trigger.id == 'frigate-event'}}"
868826
input_camera: !input camera
869-
input_camera_name: "{{input_camera|expand|map(attribute='attributes.camera_name')|list}}"
827+
input_camera_name: "{{input_camera|expand|map(attribute='attributes.camera_name', default='none')|list}}"
870828
camera: "{{trigger.payload_json['after']['camera'] if trigger.id == 'frigate-event'}}"
871829
camera_name: "{{ camera | replace('_', ' ') | title }}"
872830
input_base_url: !input base_url
@@ -917,6 +875,27 @@ variables:
917875
debug: !input debug
918876
redacted: !input redacted
919877
master_condition: !input master_condition
878+
condition: or
879+
conditions:
880+
- condition: trigger
881+
id: silence
882+
- condition: trigger
883+
id: custom
884+
- condition: and
885+
conditions:
886+
- condition: trigger
887+
id: frigate-event
888+
- alias: Camera Match
889+
condition: template
890+
value_template: "{{ input_camera_name|select('equalto', camera)|list|length>0 }}"
891+
- alias: Master Condition
892+
condition: !input master_condition
893+
- alias: Cooldown
894+
condition: template
895+
value_template: "{{ not this.attributes.last_triggered or (now() - this.attributes.last_triggered).seconds > cooldown }}"
896+
- alias: Disable Times
897+
condition: template
898+
value_template: "{{ not disable_times|length or not now().hour in disable_times|map('int')|list }}"
920899
actions:
921900
- if:
922901
- condition: !input master_condition
@@ -1304,7 +1283,7 @@ actions:
13041283
{% set newIds = id + '|' + states(tts_helper) %}
13051284
{{ newIds[:250] }}
13061285
target:
1307-
entity_id: input_text.tts_notifications
1286+
entity_id: "{{tts_helper}}"
13081287
- repeat:
13091288
sequence:
13101289
- wait_for_trigger:
@@ -1697,5 +1676,5 @@ actions:
16971676
{% set newIds = id + '|' + states(tts_helper) %}
16981677
{{ newIds[:250] }}
16991678
target:
1700-
entity_id: input_text.tts_notifications
1679+
entity_id: "{{tts_helper}}"
17011680
until: "{{ not wait.trigger or wait.trigger.payload_json['type'] == 'end' }}"

0 commit comments

Comments
 (0)