Frigate Mobile App Notifications 2.0

Ok, using both, device and goup seems to do the trick.

Thx alot and especially for being so responsive

1 Like

Short desciption: cannot view clip/video in notification on Android device - while the snapshot works perfectly.
Long(er) description (and issue at GH) please see: [[Bug]: Video/Clip in notification cannot be displayed Ā· Issue #120 Ā· SgtBatten/HA_blueprints Ā· GitHub]

Thanks in advance for answering and for this great plugin.

Hello again.

I was now able to jump in Front of the camera and guess what.
Another issue
My group for notifications is called ā€œnotificationgroupā€ and after frigate saw me and triggered the event i got this in traces:
"Stopped because an error was encountered at November 15, 2023 at 21:14:51 (runtime: 0.02 seconds)

Template rendered invalid service: notify.notificationgroup_"

Not sure where it gets the trailing _ from but i tried to find it in the code and u have a replace function in line 890 adding _ for blanks.
Commented that out but it still adds the _
Any idea?

Please turn on debug and provide the output as per this guide:
https://github.com/SgtBatten/HA_blueprints/blob/1eb293fade75b60c59e5c1c32a8f4b968fa3a883/Frigate%20Camera%20Notifications/Guide%3A%20Debug%20Option.md

. Good morning! It looks like my change in the code at 890 did the trick! I get now all my notifications as wanted to my group

  notify_group_target: '{{ notify_group | lower | regex_replace(''^notify\.'', '''')}}'
  # | replace('' '',''_'') }}'

Had to move over the }}ā€™ to the 889 line, was my first mistake when i said it did not workā€¦
Looks like u r trying to get empty spaces out of the group nameā€¦but leading or trailing spaces are corrected with this as well.
I would suggest either to not allow spaces (which isnt normally allowed in most script/programming languages anyway) or restrict your function to in between strings, not leading or trailing
But awesome betaā€¦well done and great workā€¦thx for your efforts

Itā€™s a weird glitch iā€™ve seen before. Toggle the one above debug, save, then toggle them both to the desired position and save again. Should work.

Amazing! thanks for the update, were you able to update blueprint and if so how should i update ? by deleting and re-importing? (beta or stable) sorry for the delayed response, but after my last post. i have been getting mostly notifications in zone but then on and off notifications being completely outside of zone. i am assuming the above fixes that or whether the actions run or both? lol thanks for all the help on this.

i edited the blueprint it started on line 1035

Yes unfortunately there is no way to update blueprints automatically.

If you copy the text from github you can overwrite the existing file in your HA install, otherwise delete and reimport also works. Make sure you reload automations afterwards.

When imported, HA messes up most of the multi line descriptions so yeah it doesnt line up properly with the original files iā€™m editing. but glad you found it.

did you update the blueprint? if so should i delete and re add or i should i not bother since i made the change manually? also, should i keep both actions in the auto loop and auto ?

Yes I did the change the other day in the beta.

Doesnā€™t really matter. Might as well just update when it next has features you want.

1 Like

great. i just got a false positive from the notification. the automation got triggered but not because of a person entering zone but i checked the camera events on frigate and it does the person was in the zoneā€¦was notā€¦ but when i went to camera debug there was a red and green box around the time seconds movingā€¦ i wonder if that caused itā€¦ any idea how to get rid of that? i downloaded the trace file right after the false trigger. should that i send that over and if so how can i attach it.

If frigate says the person was in the zone then it makes sense that you received a notification. At least I think that it was you are saying here.

1 Like

Hiiā€¦ You can use the masking feature to remove the time window frok motion detection area.

2 Likes

ahh will do thanks masking hides motion from being picked up?

For some reason my notification automation has spontaneously borked itself. I went to check why the notifications are not coming through, and edited the automation away from a group notification to a single device, and it wouldnā€™t work either.

Getting the below error when attempting to save the automation with the group.

Message malformed: Unknown device 'False'

Any ideas?

Same as discussed three times in past 2 weeks:

On the unknown device one select a device. Same as above.

2 Likes

Iā€™m having some problems receiving notifications occasionally. I have a basic example.

In my Frigate Config I have persons, and dog objects turned on for recording and events. I want the dogs to be recorded in my yard, but I donā€™t want notifications for them. My blueprint is set to filter only persons.

Automation is triggered by the dog in my yard, miliseconds later another event is triggered for the person walking that dog. I receive no notification for the person being detected because the dog triggered the automation but was filtered out. Thereā€™s a cooldown at that point so I donā€™t get the person notification that follows.

I only see a couple options, both of which arenā€™t good for my situation.

  1. Disable dog object detection in Frigate.
  2. Remove the cooldown on notifications.

Is there any way around this? I would think the best solution would be for the automation to track the last time it successfully sent a notification, not the last time the automation ran.

You have correctly assessed the situation.

If anyone identifies how to track the last successful notification or automation action we can probably achieve what you propose.

There is one other option you could use if your hardware can handle more cameras.

Set up the camera twice, one for people and one for dogs. Use the people camera in this automation. Itā€™s very easy with gortc restreams now.

I can not get this blueprint to install. Keeps giving me a error.