Frigate Mobile App Notifications

I use a notification group.

Ill check it out tomorrow!

Okay, I do not so will be a good test. Iā€™ve made it as a fork to the original for better tracking.

Blueprint

Updates by me:

  - Fix for fps_value template error as per https://community.home-assistant.io/t/frigate-mobile-app-notifications/311091/451?u=sgtbatten
  - Fix Zone Filter being bypassed by snapshots as per https://community.home-assistant.io/t/frigate-mobile-app-notifications/311091/421?u=sgtbatten
  - Improve camera entity selection by limiting it to frigate entities
  - Android Only: You can prevent updates such as new thumbnails from making notification sounds (Alert Once)
  - You can add use a state condition to restrict when you recieve notifications. E.g only when your door is locked, or only when your car isn't in the driveway or the sun is below the horizon.

Edit: Iā€™ve continued to make improvements to this blueprint and the link will take you to the latest, iā€™ve not maintained this post with updates.

1 Like

Sweet Iā€™m gonna download the updated version now!

Unfortunately the updated thumbnails are Android only since I have IOS users in my family so wonā€™t be able to use that feature cuz I donā€™t want their phone dinging everytime while mine doesnā€™t, but not a big deal.

Maybe you can try adding GIF thumbnails in a future update? I think you just replace the ā€œimageā€ tag with ā€œvideoā€ from what I saw hereā€¦ although hasnā€™t worked for me in my own blueprint attempt so maybe it will for you. Frigate notifications without blueprint (and some extra features like double-take integration) Ā· Discussion #2898 Ā· blakeblackshear/frigate Ā· GitHub

Why does this option say ā€œAndroid onlyā€, so alerting only once doesnā€™t work on IOS?

Looks like IOS does in someway support silent notifications if Im understanding this correctly Ability to send silent notifications Ā· Issue #241 Ā· home-assistant/iOS Ā· GitHub

Hi, this is my first message ;-).

I have been using HA for 2 months. I am using also Frigate and I am using your blueprint ā€œFrigate Mobile App Notificationā€. It works great but I have no idea about configuration of 2 devices for presence filter. How I can integrate 2 devices (my wife and me). Everytime I get notifications when I left my house but my wife is still at home. I donā€™t like it. How I can configure it?

Thanks for your support.

Itā€™s android only because the parameter iā€™m utilising only works on android.
I did this because looking at the blueprint I thought iOS devices were already sending silent notifications for updates. If this is not the case I should be able to do something for iOS too.

This is the sound code already used
sound: "{{ iif(update, 'none', 'default') }}"
which should be true for just snapshot updates
update: "{{ new_snapshot and not loitering and not presence_changed and not zone_only_changed and not entered_zones_changed }}"

Although looking at that now, anything else would still cause a sound.

So we can use the alert_once input for this case too.
Iā€™ve updated the gist to
update: "{{ alert_once or (new_snapshot and not loitering and not presence_changed and not zone_only_changed and not entered_zones_changed) }}"
which should now force it on iOS also. let me know.

1 Like

Use a group. You can have a group containing both of your person entities.

group:
  wifeandi:
    name: Wife and I
    entities:
      - person.wife
      - person.me

or if using groups.yaml you would drop the first line (group:)

Sweet!

I downloaded the file you posted before, do I need to download it again or is it gonna update on my end by itself in home assistant?

(I renamed it to 0.10.1 btw cuz testing it side by side of old one before I fully migrate everything)

Maybe a condition option is needed to make it check for a thumbnail first because sometimes when it sends the silent notification there is no image or text in it

I do not think there is an automatic update process.
Go to the gist link, click on the raw button and then copy the entire thing. open up your 10.1 file and hit ctrl+A and paste over the top, then save. I changed the name of the description in the file to make it different when selecting it for the automation too.

I am not experiencing the thumbnail issue so far. I suspect you need to look at the details within a trace where this is occuring. The first notification isnā€™t meant to be silent though so are you saying it is?

1 Like

No the first one isnā€™t silent just the others like it is supposed to be , only the silent ones seem to have no image or text.

And thanks! Will update it now.

Is this the gist link? Frigate 0.10 Notifications Ā· GitHub

No my fork of it. You can click forks on that page and find mine or the direct link is here

Are you saying thumbnails are there for the initial notification and then being removed?

Just want to clarify behaviour here. If i clear all my HA notifications right now and walk outside, I will get a single notification with sound. I can swipe down on my phone and expand the notification without clicking it, and watch as every few seconds a new thumbnail replaces the first one. Itā€™s all the same notification.

1 Like

Ok thanks will update it now.

I was saying that it sends the first notification with sound and picture and also the text, then the other silent notifications that come after would just be blank with nothing sometimes, maybe restarting HA will fix this.

Gonna have to test if the thumbnails are being updated but I think it just sends new silent notifications rather then update same notification, those silent ones seem to have no content in them currently, about to update it.

Gonna reply again next time someone walks on camera with picture if I can.

Just updated the blueprint, was super easy!

Gonna restart Home assistant to make sure the changes take full effect.

Itā€™s not very obvious but if you click developer tools > yaml and reload ā€œAutomationsā€ it also reloads blueprints, so you donā€™t have to restart to implement changes

1 Like

I wonder if this is how group notifications work. I only use individual devices and I get one notification per event, even if the event is 5 minutes long. It also likely means the changes iā€™ve made might not work for groups as itā€™s not updating the original notification but sending a new one.

1 Like

The reason I use notification groups now instead of individual devices is cuz there are 5 phones and then 3 computers I have in the house itā€™s sending them too, it makes it so I donā€™t need a billion automations.

Maybe I can test just on my phone without a group later, but with the group all notifications are send it just at least on my phone the updated ones are blank, gonna have to see what happens on my MacBook.

Btw another question I have, is this compatible with Frigate v11?, I have not updated yet cuz I heard from others the old one before you made yours is not.

I just chanegd it so the old notification doesnā€™t send to my devices anymore, just the others so it doesnā€™t interfere with the new one.

Will help me test better.

Yeah iā€™ve been disabling my other ones for testing.

Totally understand the use case, just troubleshooting as iā€™ve not experienced this problem.

Yes, iā€™ve fixed the issue reported earlier.

1 Like