Frigate Mobile App Notifications

Yes, have the same issue intermittently. If you leave if long enough it fixes itself and goes back into the app.

My current solution is to change the setting in the mobile app to open links in the browser, rather than in the HA App, then the video plays in the browser and you don’t get stuck in the app.

1 Like

I would like to have notification when my camera detects motions for at least 5 seconds. My cam is at front door and I got many unwanted notifications when people just walk by. What should I add to the blueprint?
Thanks in advance.

You would add zones to the camera and then define in the notification blueprint that the motion must be in the zones you want

This is solved my problem with the clips but not with the pictures. For you is still works?

Both clips and pictures open in the browser for me. So yes it works for me.

Hi, I use ha in docker + reverse proxy. I can’t get the pictures to show no matter what regardless if I use my reverse proxy address or nabu.casa address.

For example the address for snapshot that comes out of this blueprint’s template looks like this:

https://<ha address>/api/frigate/notifications/1641393720.254206-xt21qt/thumbnail.jpg?format=android

and comes up as unresolvable.

An address that comes off this template https://<ha address>{{ states.camera.bedroom.attributes.entity_picture }}

https://<ha address>/api/camera_proxy/camera.bedroom?token=7081b7bd0476b0255023b8728bdbc3990982afa8fa8cb609d9c9df686cdce225

works through both my reverse proxy and nabu.casa address.

Anyone got any idea how can I make the snapshot from this integration work? Thanks!

Does anyone know if it’s possible to get this blueprint working with Frigate instance that is running outside of Home Assistant?

My setup:

  • Frigate Docker Container In Unraid
  • Frigate Proxy NVR In Home Assistant

It looks like one of the requirements of this blueprint is to have a Frigate camera entity which isn’t created with the Frigate Proxy NVR.

Possible. I have this running with frigate running on docker on a debian VM (which runs on qemu on proxmox), and I’ve got the frigate integration installed in HASS. I am using HassOS (qemu image) which is running as a VM on Proxmox also.

This blueprint doesn’t communicate directly with Frigate. It uses the HACS Integration. Install and setup Frigate through HACS and you should be good.

I am seeing this same issue/ My automation ends at the first condition,

{{type != ''end''}}

I am using HAOS on a x86 (NUC), and am using the Frigate integration

My blueprint config is pretty simple:

id: '1642119677481'
alias: Frigate Notification
description: Frigate Blueprint
use_blueprint:
  path: hunterjm/frigate_notification.yaml
  input:
    camera: front_east
    notify_device: 73ac7c05451c4c94af8978bdc3d5e2d1
    cooldown: 0
    silence_timer: 0

Here is the package variable:

Executed: January 13, 2022, 5:59:35 PM
this:
  entity_id: automation.frigate_notification
  state: 'on'
  attributes:
    last_triggered: '2022-01-14T00:59:27.208046+00:00'
    mode: single
    current: 1
    id: '1642119677481'
    friendly_name: Frigate Notification
  last_changed: '2022-01-14T00:44:15.999055+00:00'
  last_updated: '2022-01-14T00:59:27.208301+00:00'
  context:
    id: cd7690ad2b166f0f027a9fc4e91f9d4c
    parent_id: null
    user_id: null
trigger:
  id: '0'
  idx: '0'
  platform: mqtt
  topic: frigate/events
  payload: >-
    {"before": {"id": "1642121964.166427-29c9n7", "camera": "front_east",
    "frame_time": 1642121964.496416, "snapshot_time": 1642121964.496416,
    "label": "person", "top_score": 0.78125, "false_positive": false,
    "start_time": 1642121964.166427, "end_time": null, "score": 0.78125, "box":
    [1196, 667, 1607, 1430], "area": 313593, "region": [896, 584, 1832, 1520],
    "current_zones": [], "entered_zones": [], "has_clip": false, "has_snapshot":
    false}, "after": {"id": "1642121964.166427-29c9n7", "camera": "front_east",
    "frame_time": 1642121964.896262, "snapshot_time": 1642121964.496416,
    "label": "person", "top_score": 0.78125, "false_positive": false,
    "start_time": 1642121964.166427, "end_time": 1642121974.492953, "score":
    0.6640625, "box": [1302, 631, 1642, 1362], "area": 248540, "region": [945,
    592, 1857, 1504], "current_zones": [], "entered_zones": [], "has_clip":
    true, "has_snapshot": true}, "type": "end"}
  qos: 0
  description: mqtt topic frigate/events
  payload_json:
    before:
      id: 1642121964.166427-29c9n7
      camera: front_east
      frame_time: 1642121964.496416
      snapshot_time: 1642121964.496416
      label: person
      top_score: 0.78125
      false_positive: false
      start_time: 1642121964.166427
      end_time: null
      score: 0.78125
      box:
        - 1196
        - 667
        - 1607
        - 1430
      area: 313593
      region:
        - 896
        - 584
        - 1832
        - 1520
      current_zones: []
      entered_zones: []
      has_clip: false
      has_snapshot: false
    after:
      id: 1642121964.166427-29c9n7
      camera: front_east
      frame_time: 1642121964.896262
      snapshot_time: 1642121964.496416
      label: person
      top_score: 0.78125
      false_positive: false
      start_time: 1642121964.166427
      end_time: 1642121974.492953
      score: 0.6640625
      box:
        - 1302
        - 631
        - 1642
        - 1362
      area: 248540
      region:
        - 945
        - 592
        - 1857
        - 1504
      current_zones: []
      entered_zones: []
      has_clip: true
      has_snapshot: true
    type: end
id: 1642121964.166427-29c9n7
camera: front_east
camera_name: Front East
object: person
label: Person
entered_zones: []
type: end
base_url: ''
group_target: ''
zone_only: false
input_zones: []
zones: []
input_labels: []
labels: []
presence_entity: ''

Thanks
Chuck

It seems that the first notification is an “end” notification. So I removed the first part of the automation action and jumped right to the end processing, and it mostly works.

However, I had to reduce my recorded image to the (rather small) secondary stream, as the primary stream (4k) will not display on either of my android devices.

I see other people having recordings at 4k, but no explanation of how they display on pocket device. Perhaps iPhone is not as limited.

I cannot at this point change my main feed to 1080p, because the normal NVR takes over the settings. I suspect Android cannot go past 1080p. Unfortunately, the secondary stream is even less than 480!

Chuck

Thanks @hunterjm & @ld9000 . I was able to get it up an running!!!

Hi everyone!!

with the blueprint everything works flawlessly but i have a question.
Then notification sends me the thumbnail that is coming from the second video stream of my dahua so extremely in low res

with this link:
/api/frigate/notifications/{{id}}/thumbnail.jpg?format=android

i would like to use the snapshot direcly that is with much more resolution, i tried everything but seems not working

i tried with this link
‘{{base_url}}/api/frigate/notifications/{{id}}/snapshot.jpg’
but doesn’t work i got ssl error.

How did you have the snapshot in the notification and not the thumbnail?

Any advice are more than welcome!!
I would like also to thank @hunterjm for the incredible contribution!

Marco

1 Like

This blueprint has been great! I have one question though regarding the objects. I have the Zone filter enabled and the object detection set for person and car. I cannot seem to get notifications for anything other than a person. Is there something that has to be configured in the frigate config or something I may be missing?

What type of phone?

Thanks for this awesome blueprint @hunterjm!
I made some changes, because I just have to tinker with it a little - but it is a phantastic starting point. :+1:

I have the same problem. Have you been able to resolve the issue?

Hello. And who managed to set up automation for telegramm? He also wants to place several cameras in one automation. Is it possible?

@BeardedTek @hunterjm
I too was looking to get a higher resolution thumbnail image for notifications? I have troubleshooted by adding the suggested “?bbox=1” to the end of each “snapshot.jpg” entry in the Blueprint, but it still looks to be low resolution in my iOS notifications?

Were you all able to figure this out, it seems like you settled on “changing the thumbnail to snapshot,” but I’m unsure how to do this? Was it possible to retrieve the snapshot using the local media folders instead, perhaps using the latest image in the Snapshot folder?

Got it, seems my changes didn’t apply, needed to restart Home Assistant.

To use the full resolution image instead of the thumbnail, one just needs to replace all instances of “thumbnail.jpg” with “snapshot.jpg” in the Blueprint code!

3 Likes