Frigate Mobile App Notifications 2.0

Like you I have an nginx reverse proxy with my own domain registered with CloudFlare. Both API endpoints (meaning with and without the camera name) work for me using my Lan IP and my domain.

I have a thought. Is your baseurl pointing to frigate or home assistant?

I have tested with basurl empty as well as with the external domain of home assistant. Same urls and same result both ways.

It doesnā€™t work with baseurl as my Frigate domain either, but I understand using that would be incorrect anyways per the Frigate API docs.

Grab the event id from one of the links and try just with your HA LAN IP and port to access the API endpoint for tla clip. If thatā€™s not working Iā€™d look at reinstalling the integration.

Tried it. Same exact result. I have completely removed Frigate Integration and added it back to HA already as a test. No change. The webserver is not blocked in anyway that I can see to anything behind https://HA_HOST/api/frigate

I think the problem is however Frigate is setup it isnā€™t putting clips there.

This is a super useful blueprint thank you! I am using frigate with a custom openvino detector model for detecting print failures, and now I have actionable notifications during a print failure, with a live print feed in the notification drop down (iOS), and ability to cancel, ignore, or silence

I think I fixed it, but Iā€™m not at home right now to trigger an event so I will have to test later or wait until someone walks up to the door.

I had to add mp4 to this block in my HA and Frigate NGINX server configs. I can now access CLIPS at the API urls. Iā€™m hoping this fixes live previews as well.

    location ~* .(wav|mp3|mp4|js|map|ts|woff2|ttf|css|png|jpg|jpeg|gif|svg|ico)$ {
        expires 5m;
        proxy_pass http://frigate;
        add_header Cache-Control "public, no-transform";
    }

On a different note:

Can the blueprint generate one of the buttons as a direct link to the camera page in the Frigate UI? Since my access works so well via the Frigate UI I would like to just click right into there from the notifications?

Or would I need to forego the blueprint and manually edit the automation to do that?

Iā€™ve just switched from using my own YAML written automations for Frigate notifications to using this Blueprint. It works great and was super to set up, so thanks heaps for that.

One question though, now if a car is parked on my driveway I will get notifications coming through very frequently rather than just the one when the car first pulls up. Iā€™m guessing this is based on the ā€˜cooldownā€™ time. If I set that value much higher will I still get a new notification if a second car was to pull up? With my previous setup I only got notifications when the Frigate detection first occurs, but then again if detection cleared and then detected again. I donā€™t want to loose that by increasing the cooldown time.

Some of the preset options are to get you to the frigate UI. There is no way to open frigate to a specific camera or page as it doesnā€™t have a discrete url.

Donā€™t increase the cooldown.

Instead create a car zone that your cars go through when entering or leaving but donā€™t sit in when stationary. Being in a zone is defined by the middle of the bottom edge of the bounding box around an object, so it will depend on your camera angles where the best zone is.

So will I then still get notifications for both a car going through and one that sits stationary but only getting a single notification when the stationary car first arrives?

Hi guys, not sure how to add multiple entities for the presence detection. Can I just use the name of the notification group. I have multiple people in my household and I donā€™t want a notification every 5 minutes if some is just walking around.

The main tap action does provide some options to go direct into Frigate. I will test those. I just didnā€™t see those as I was checking options for the other 3 buttons. Thank you.

Regarding my fix above for the clip links. The CLIPS now load, but the View Stream buttons still do not. Those buttons produce a link like this

https://HA_BASE_URL/api/camera_proxy_stream/camera.CAMERA_NAME?token=49xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd64d8a

Iā€™m assuming my NGINX config is probably what is blocking this from working also. I wonder what I need to change to enable these to flow through. There is no file type extension in that link so I wouldnā€™t know what to add to that cache block in my NGINX config.

Yep thatā€™s the idea. Here is frigates documentation on stationary objects. Handling parked cars | Frigate

Have a search of the thread, or this forum in general for notify groups. You need to make one in yaml, then you can use it

You can type anything in these action button fields. Iā€™ve just made some examples for reference.

Something might be wrong with view stream lately, mine is going me a 403 error now.

Mine is a 404, so like the problem on my clips links, I think my problem is NGINX. I do appreciate the help and the awesome blueprint. Keep it up!

Yes 404 indicates something is wrong with the connection.

But also something has actually changed with the live view. The token is no longer available in the same place as it was previously. Pretty easy fix. Just testing it now.

is there a way to trigger a notification as long as an object is in any zone? is that the default? do I need to enable filters and not list required zones? do I need to enable filters and explicitly list all zones?

I tested having filter enabled but no zones and didnā€™t get any notifications.
I tested having filter disabled and got notifications outside of zones.

it looks like explicit zone naming is the way to go?

Would it be possible for the notification to open the media clip/snapshot directly inside the HA app, instead of direct webpage link? thanks

Yes you need to specify. The default is any event, any filter you employ makes it more restricted.

Itā€™s not consistent. Works for some devices and doesnā€™t work for others.

Try removing the baseurl as a test.

1 Like

OK. So Iā€™ve got this blueprint working pretty well. It even repushes a notification if DoubleTake/Compreface recognizes a face. The format of the notification is not super clean though. Works great to tell me if Frigate sees a Person, Car, Dog, etc, but then if the MQTT topic is updated with sub label from DoubleTake it breaks a bit. Still works, just doesnā€™t look polished. See attached below.

I would like it to show like this if a DoubleTake sublabel is pushed:

XX% Confident NAME was detected (in zone XX if in a zone) on the CAMERA_NAME camera.

Any quick knowledge on how to format the Notification message so it plays nice with DoubleTake sublabels?

I have it set like this currently:

message: >-
      A {{ label }} {{ 'is loitering' if loitering else 'was detected' }} on the
      {{ camera_name }} camera.