Frigate Mobile App Notifications 2.0

Thanks a lot @SgtBatten !

I have another question. Is the value of Base URL be something like “https://domain.name”?

I cannot get action buttons for view clip and view snapshot working on iOS.

Both send me to the springboard. :frowning:

Yes it’s the url that would take you to your home assistant dashboard when not home.

Not sure what that is?

I mean tapping on action buttons brings me back to the iOS launcher. No clip nor snapshot is shown.

What version of the blueprint are you using?

And can you post the automation config you have setup please

Oh duh. Thank you, I’ll get started on websockets.

The blueprint is Frigate Notifications (0.12.0.1)

The automation config is:

alias: "Frontyard Camera: A Person Detected"
description: ""
use_blueprint:
  path: SgtBatten/Stable.yaml
  input:
    camera: camera.frontyard
    notify_group: ADULT_MOBILES
    message: >-
      {{ camera_name }}: A {{ label }} is detected on {{ entered_zones|join(",
      ") }}
    icon: mdi:cctv
    labels:
      - person
    ios_live_view: true

In what circumstances are you trying?

At home on local network? Remote?

Do you have remote access setup? If yes try by using the baseurl

It started to work today. It is on android phone, it opens the browser. Maybe it was some cache problem.

I realized that the action buttons work on iPhone but not on iPad. Pretty strange.

Ahh okay. Not sure what I can do bout that one.

Hi There,

I love the notification blueprint makes notifications a lot easier! I am having an Intermittent issue that I can’t quite get to the bottom of.

Basically I have a zone setup for my doorstep spme of someone steps in the zone e a notification triggers. Sometimes it works sometimes it doesn’t, when checking the frigate events it has recorded a person within the doorstep zone but doesn’t always trigger a notification, I would say it is around 50% success rate athe the moment. If I check the trace it will show that the automation was triggered but it doesn’t result in a notification usually because it will be tracking the car the person came in rather than the person getting out and walking up the driveway. Here is my automation config:

‘’’
alias: CCTV - Doorstep - Mobile
description: “”
use_blueprint:
path: SgtBatten/Stable.yaml
input:
camera: camera.front_door
notify_device: e1e0c87bdd298186409f8dd89743a17b
notify_group: All_mobiles
base_url: http://ha.m-wilson.co.uk
critical: “true”
update_thumbnail: true
color: green
icon: mdi:cctv
zone_filter: true
zones:
- Doorstep
labels:
- person
url_2: >-
{{base_url}}/api/camera_proxy_stream/camera.{{trigger.payload_json[‘after’][‘camera’].lower()}}?token={{state_attr(
‘camera.’ ~ camera, ‘access_token’)}}
button_2: Live View
title: Person Detected
cooldown: 8
‘’’

Any help would be greatly appreciated, thanks.

I’d have expected that to not be an issue with such a short cooldown. You should have traces for both the car and there person event so see if the person event is not sending for any other reasons

Thanks, I had it set to 30 seconds, I reduced it earlier today to 8 seconds to see if that helped. Just need to wait for the usual 18 deliveries tomorrow to see if its made any difference.

Right okay. If the person was getting out of the car within 30 seconds of the car being detected I could see that stopping it. Hopefully 8 makes a difference.

I have been trying to get notifications dialed in for my first Frigate cam before installing the rest. Seem to be doing okay but I have been getting multiple notifications for the same event. I set my cooldown to 60 seconds and it still will fire multiple times for some events. It is not every time but only sometimes, usually if I am already on my phone and see the notification pop up and look at the snapshot or something the alert will fire again, and again sometimes. Not sure what info would be helpful but here is the basics.

Blueprint 0.12.0.1
Frigate 0.12.1-367D724

It is not a new notification but an update to the same notification. If you have already cleared the notification then it would recreate it.

Cooldown only applies to new events, not the current one.

There are a number of things you can tweak.
Are you in android or iOS?
Do you have/want update thumbnails enabled?

That makes sense! I am on IOS, I do like update thumbnails for the object detection box in the snapshot.

In the beta I have added an option to delay the initial notification. In theory this should give frigate enough time to generate the snapshot you prefer. Then you could limit the need for updates perhaps.

1 Like

That would be perfect. Appreciate the info! Thanks for the blueprint!

Hi, I have been using the Blueprint with much pleasure for several months. Only recently after moving over from a Rpi to a VM running on a thinclient in ProcMox. I experience some problems.
In HA itself frigate is working fine all images etc. are available so it seems.
I receive the notification on my Iphone. Only without an image, just showing a 502 error message. So something must be wrong, have changed during the backup restore of Frigate on the new machine?

http://192.168.0.31:8123/api/frigate/notifications/1687931611.610692-idzbsq/snapshot.jpg
502: Bad Gateway


Part of the log file:

023-06-29 09:49:27.463 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration frigate which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-06-29 09:49:57.557 ERROR (MainThread) [custom_components.frigate.api] Error fetching information from http://ccab4aaf-frigate:5000/api/stats: Cannot connect to host ccab4aaf-frigate:5000 ssl:default [Name has no usable address]
2023-06-29 09:49:57.561 WARNING (MainThread) [homeassistant.config_entries] Config entry 'ccab4aaf-frigate:5000' for frigate integration not ready yet; Retrying in background
2023-06-29 09:50:02.143 ERROR (MainThread) [custom_components.frigate.api] Error fetching information from http://ccab4aaf-frigate:5000/api/stats: Cannot connect to host ccab4aaf-frigate:5000 ssl:default [Name has no usable address]
2023-06-29 09:50:15.807 ERROR (MainThread) [custom_components.frigate.api] Error fetching information from http://ccab4aaf-frigate:5000/api/stats: Cannot connect to host ccab4aaf-frigate:5000 ssl:default [Name has no usable address]
2023-06-29 09:50:39.798 ERROR (MainThread) [custom_components.frigate.api] Error fetching information from http://ccab4aaf-frigate:5000/api/stats: Cannot connect to host ccab4aaf-frigate:5000 ssl:default [Name has no usable address]
2023-06-29 09:51:23.558 ERROR (MainThread) [custom_components.frigate.api] Error fetching information from http://ccab4aaf-frigate:5000/api/stats: Cannot connect to host ccab4aaf-frigate:5000 ssl:default [Name has no usable address]
2023-06-29 09:52:47.307 ERROR (MainThread) [custom_components.frigate.api] Error fetching information from http://ccab4aaf-frigate:5000/api/stats: Cannot connect to host ccab4aaf-frigate:5000 ssl:default [Name has no usable address]

And on the overview page the “latest” screenshots are no longer available and it mentions that the entity is no longer available from Frigate integration?
So where to look for or what to change? Or better reinstall and start over again?