Frigate Mobile App Notifications 2.0

I’m using the beta blueprint with two cameras and sometimes the blueprint works but sometimes it does not. I can see it triggered but then hit a “No action executed” message.

I’ve verified my camera names in Frigate match the blueprint as well.

alias: Front Frigate Alert (Beta)
description: ""
use_blueprint:
  path: SgtBatten/Beta.yaml
  input:
    presence_filter:
      - ""
    camera:
      - camera.doorbell
      - camera.front_cam
    notify_device: 8fdd549ce4e425d4e13eb81feadd7ccb
    base_url: <redacted>
    message: >-
      {{ label }} detected - {{ camera_name }} at
      {{event['after']['start_time']|timestamp_custom('%H:%M')}}
    alert_once: true
    tts_helper: input_text.frigate_alert_once
    update_thumbnail: true
    icon: mdi:cctv
    zone_filter: true
    zones:
      - front_zone
    cooldown: 75
    button_3: Mute
    notify_group: ALL_DEVICES
    sticky: false
    channel: Security Alerts
    labels: []
    silence_timer: 15

image

1 Like

Conditions weren’t met. Check the next node down in the main branch.

The weird bit is it works as expected when not using a notification group. Seems like the beta blueprint is also working (with notification group)

It seems to work when someone walks into the zone but it seems when a delivery driver parks on the street (outside of the zone) then walks in it doesn’t trigger. Here are the debug logs. I don’t fully understand what’s happening yet.

I think it may be because the delivery driver walked very fast past my front camera to the doorbell. I have loitering set so it didnt active the zone until the doorbell saw him but then at that point the blueprint didnt notify me.

Front Cam Motion detected motion
11:56:07 AM

Front Frigate Alert (Beta) mqtt topic frigate/events
11:56:12 AM

Frigate Notification DEBUG: Info: fps: 5, frigate event id: 1735674972.0237-vkv3ez, object (formatted): car (Car), Config: Input Camera(formatted): ['camera.doorbell', 'camera.front_cam'](['front_cam', 'doorbell']), Trigger Camera(formatted): front_cam(Front Cam), Base URL: REDACTED, critical: False, tts: False helper: N/A, alert once: True, Update Thumbnails: True, image: REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/thumbnail.jpg?format=android Video: , Target: group (input/formatted): ALL_DEVICES/all_devices, , cooldown: 75s, loiter timer: 0s, initial delay: 0s, color: #03a9f4, sound: default, android_auto: False, Group: front_cam-frigate-notification, Channel: Security Alerts, Sticky: False, Title: , Message: Car detected - Front Cam at 11:56, Subtitle: , tap_action: REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/front_cam/clip.mp4, button 1 Text/URL/Icon: View Clip (REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/front_cam/clip.mp4) , button 2 Text/URL/Icon: View Snapshot (REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/snapshot.jpg) , button 3 Text/URL/Icon: Mute (silence- ) , icon: mdi:cctv tv: False, tv_position: center, tv_size: large, tv_duration: 10, tv_transparency: 0%, tv_interrupt: False, telegram: , telegram_chat_id: , Filters: Zones: Zone Filter toggle on: True, Multi-Zone toggle on: False, Required zones: ['front_zone'], Zone Order toggle on: False Entered Zones: [], TEST: FAIL , Required objects TEST: Input: [], TEST: PASS presence entity (not home): Entity: [''] TEST: PASS, disabled times: [], State Filter: State Filter toggle on: False, State Filter Entity: , Required States: [], TEST: PASS, Custom Filter: True triggered by automation Front Frigate Alert (Beta) mqtt topic frigate/events
11:56:12 AM 

Front Cam all occupancy detected occupancy
11:56:12 AM 

Frigate Notification DEBUG (in loop): Send Notification: False Info: sublabel: None, image: "REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/thumbnail.jpg" Title: message: Car detected - Front Cam at 11:56 iOS sound: disabled by alert once, Android Sound: disabled by alert once, iOS url: REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/thumbnail.jpg video: "" critical: False, tts: False Triggers: New Snapshot: True Presence Changed: False, Stationary Moved: True, Entered Zones Changed: False, sublabel changed: False, Conditions: Loitering: 0 or Filters: Zones: Zone Filter toggle on: True, Multi-Zone toggle on: False, Required zones: ['front_zone'], Zone Order toggle on: False Last Zones: [], Entered Zones: 0 - [], TEST: FAIL , Object Filter: Input: [], TEST: PASS, Presence entity (not home): Entity: [''], TEST: PASS, Time Filter: Disabled times: [], TEST: PASS State Filter: State Filter toggle on: False, State Filter Entity: , Required States: [], TEST: PASS, Custom Filter: PASS, triggered by automation Front Frigate Alert (Beta) mqtt topic frigate/events
11:56:12 AM 

Frigate Notification DEBUG (in loop): Send Notification: False Info: sublabel: None, image: "REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/thumbnail.jpg" Title: message: Car detected - Front Cam at 11:56 iOS sound: disabled by alert once, Android Sound: disabled by alert once, iOS url: REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/thumbnail.jpg video: "" critical: False, tts: False Triggers: New Snapshot: False Presence Changed: False, Stationary Moved: False, Entered Zones Changed: False, sublabel changed: False, Conditions: Loitering: 0 or Filters: Zones: Zone Filter toggle on: True, Multi-Zone toggle on: False, Required zones: ['front_zone'], Zone Order toggle on: False Last Zones: [], Entered Zones: 0 - [], TEST: FAIL , Object Filter: Input: [], TEST: PASS, Presence entity (not home): Entity: [''], TEST: PASS, Time Filter: Disabled times: [], TEST: PASS State Filter: State Filter toggle on: False, State Filter Entity: , Required States: [], TEST: PASS, Custom Filter: PASS, triggered by automation Front Frigate Alert (Beta) mqtt topic frigate/events
11:56:12 AM 

Frigate Notification DEBUG (in loop): Send Notification: False Info: sublabel: None, image: "REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/thumbnail.jpg" Title: message: Car detected - Front Cam at 11:56 iOS sound: disabled by alert once, Android Sound: disabled by alert once, iOS url: REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/thumbnail.jpg video: "" critical: False, tts: False Triggers: New Snapshot: False Presence Changed: False, Stationary Moved: False, Entered Zones Changed: False, sublabel changed: False, Conditions: Loitering: 0 or Filters: Zones: Zone Filter toggle on: True, Multi-Zone toggle on: False, Required zones: ['front_zone'], Zone Order toggle on: False Last Zones: [], Entered Zones: 0 - [], TEST: FAIL , Object Filter: Input: [], TEST: PASS, Presence entity (not home): Entity: [''], TEST: PASS, Time Filter: Disabled times: [], TEST: PASS State Filter: State Filter toggle on: False, State Filter Entity: , Required States: [], TEST: PASS, Custom Filter: PASS, triggered by automation Front Frigate Alert (Beta) mqtt topic frigate/events
11:56:13 AM 

Frigate Notification DEBUG (in loop): Send Notification: False Info: sublabel: None, image: "REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/thumbnail.jpg" Title: message: Car detected - Front Cam at 11:56 iOS sound: disabled by alert once, Android Sound: disabled by alert once, iOS url: REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/thumbnail.jpg video: "" critical: False, tts: False Triggers: New Snapshot: False Presence Changed: False, Stationary Moved: False, Entered Zones Changed: False, sublabel changed: False, Conditions: Loitering: 0 or Filters: Zones: Zone Filter toggle on: True, Multi-Zone toggle on: False, Required zones: ['front_zone'], Zone Order toggle on: False Last Zones: [], Entered Zones: 0 - [], TEST: FAIL , Object Filter: Input: [], TEST: PASS, Presence entity (not home): Entity: [''], TEST: PASS, Time Filter: Disabled times: [], TEST: PASS State Filter: State Filter toggle on: False, State Filter Entity: , Required States: [], TEST: PASS, Custom Filter: PASS, triggered by automation Front Frigate Alert (Beta) mqtt topic frigate/events
11:56:13 AM 

Frigate Notification DEBUG (in loop): Send Notification: False Info: sublabel: None, image: "REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/thumbnail.jpg" Title: message: Car detected - Front Cam at 11:56 iOS sound: disabled by alert once, Android Sound: disabled by alert once, iOS url: REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/thumbnail.jpg video: "" critical: False, tts: False Triggers: New Snapshot: False Presence Changed: False, Stationary Moved: False, Entered Zones Changed: False, sublabel changed: False, Conditions: Loitering: 0 or Filters: Zones: Zone Filter toggle on: True, Multi-Zone toggle on: False, Required zones: ['front_zone'], Zone Order toggle on: False Last Zones: [], Entered Zones: 0 - [], TEST: FAIL , Object Filter: Input: [], TEST: PASS, Presence entity (not home): Entity: [''], TEST: PASS, Time Filter: Disabled times: [], TEST: PASS State Filter: State Filter toggle on: False, State Filter Entity: , Required States: [], TEST: PASS, Custom Filter: PASS, triggered by automation Front Frigate Alert (Beta) mqtt topic frigate/events
11:56:24 AM

Front Frigate Alert (Beta) mqtt topic frigate/events
11:56:46 AM

Front Cam person occupancy detected occupancy
11:56:46 AM

Front Frigate Alert (Beta) mqtt topic frigate/events
11:56:47 AM

Doorbell person occupancy detected occupancy
11:56:47 AM

Front Zone person occupancy detected occupancy
11:56:48 AM

Frigate Notification DEBUG (in loop): Send Notification: False Info: sublabel: None, image: "REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/thumbnail.jpg" Title: message: Car detected - Front Cam at 11:56 iOS sound: disabled by alert once, Android Sound: disabled by alert once, iOS url: REDACTED/api/frigate/notifications/1735674972.0237-vkv3ez/thumbnail.jpg video: "" critical: False, tts: False Triggers: New Snapshot: False Presence Changed: False, Stationary Moved: False, Entered Zones Changed: False, sublabel changed: False, Conditions: Loitering: 0 or Filters: Zones: Zone Filter toggle on: True, Multi-Zone toggle on: False, Required zones: ['front_zone'], Zone Order toggle on: False Last Zones: [], Entered Zones: 0 - [], TEST: FAIL , Object Filter: Input: [], TEST: PASS, Presence entity (not home): Entity: [''], TEST: PASS, Time Filter: Disabled times: [], TEST: PASS State Filter: State Filter toggle on: False, State Filter Entity: , Required States: [], TEST: PASS, Custom Filter: PASS, triggered by automation Front Frigate Alert (Beta) mqtt topic frigate/events
11:57:25 AM

That loop was for the car event, which you said didn’t enter the zone. So it’s not related to the person.

Weird because the person enters the front zone via the doorbell (both cameras have the same zone) but it didn’t trigger the blueprint. I wonder if it’s a bug due to multiple cameras having the same zone?

Doorbell person occupancy detected occupancy
11:56:47 AM

Front Zone person occupancy detected occupancy
11:56:48 AM

Edit: I think I’m having the same issue as this Frigate Mobile App Notifications 2.0 - #87 by mkdr36 so I’ll take a look at a similar solution

Any idea here @SgtBatten

Hello! Thanks for the blueprint. It helped a ton.

Had a question about the action buttons. I got them working great on my samsung but they dont show up on my wifes iphone. Notifications come through fine but no action buttons. Blueprint was copied over and only phone to send to was adjusted.

All help apprciated. Thanks guy :metal:

Long press on iPhone to reveal actions.

I’m also trying to debug why I am mising some notifications sometimes, but not always. Isn’t this logic flawed for cooldown because if you have a street camera that has a lot of activity that will trigger this automation but not send notifications, doesn’t mean that real notifications for cameras and objects you are interested in is missed?

    • {{ not this.attributes.last_triggered or (now() - this.attributes.last_triggered).seconds > cooldown }}

I think if I set cool-down to be very short, I get more notifications but then it does not skip notifications for the same camera… Seems like the cooldown period should be per camera and not per automation.

I had a choice to make. Put all the conditions up front and the forum would be filled with people having no idea why it want working. Or create the debug information, but this only works if the automation runs.

I chose the latter because many people are not very good at doing their own investigation.

I’ve never used cooldown. But with frigate 0.14 and reviews it actually works now as your zones can determine what is an event and what isn’t before it ever sends the mqtt message to HA.

I must be overlooking something, but cannot find it in the topic. I just downloaded the c beta. This results in repair issues being raised because of missing actions for telegram_bot. I don’t use telegram so this is expected. But I don’t have them enabled in the blueprinted automation either. I don’t know if this is by design (for example you cannot add telegram support without defining the actions in the blueprint, thus raising repair when not using telegram) or if this is an error. I’d assume I would be able to find a post about it if it was an error.

Definitely first person to report such a thing. Is this a new HA version that is doing extra checks?

This is the repair action created. Indeed i’m running on the latest HA version released yesterday. 2025.01.0. Haven’t tested with the previous version. It started hapening when I updated the blueprint from a to c. And it is spook raising the repair not HA itself, so maybe not a big issue.

I finally understand the comment regarding using frigate reviews. So I changed the mqtt topic to frigate/reviews but no notification came in. I don’t have time to debug yet but if you have any pointers, that would be most helpful. Thanks!

You must use the frigate 0.14 branch

Oh, I’m using frigate 0.15, latest beta and I do see the reviews mqtt node.

I meant the blueprint. You need at least frigate version 0.14 which introduced reviews, but you also need the frigate 0.14 specific beta of the blueprint.

Oh, is that different from Frigate Notifications (0.12.0.5d)? I am using that from the Beta.yaml.

Yes, I’ve posted the links earlier or you can select the frigate 0.14 branch on GitHub.