Frigate Mobile App Notifications 2.0

Sorry I’m more confused now. How did they connect before you added the reverse proxy?

What do you mean by default url? I would expect most people would need to enter an IP address and port in the frigate integration to connect.

The frigate integration is internal to HA so doesn’t have a url. I think some terms are being mixed up here.

There are 3 frigate things you need.

Frigate
Frigate proxy addon - not required for this blueprint, but adds external frigate installs into HA nicely.
Frigate integration

Let me test this again and I will replay.
Ok, I removed frigate with ssl url and set it back to http://homeassistant.local:5000. This was the address I used before. Blueprint doesnt work.I tried to run it manually and trigger motion. I even stoped nginx to test it just on localhost but for some reason it doesn’t work.
I know what I must have to run frigate. I have frigate addon or container depend on installation and frigate integration.
It worked few days ago.
When I configured nginx i used my domain for home assistant. All other containers use subdomain and cert for it ie. frigate.mydoamin.com
When I trigger automation and download log I saw wrong timestamp. I don’t know why. I checked my intercom time, and it’s ok, server time is ok.

"trace": {
    "last_step": "action/0/choose/1/conditions/0",
    "run_id": "27b068efd551f5dc1c09184869b21be5",
    "state": "stopped",
    "script_execution": "finished",
    "timestamp": {
      "start": "2023-04-03T20:07:42.538381+00:00",
      "finish": "2023-04-03T20:07:42.548026+00:00"

This is just a small part of trace log, but time should be 22:07 not 20:07

Could you please confirm where you are setting this?

In the blueprint baseurl field you should either leave it blank or enter your home assistant url.

http://homeassistant.local:5000

This url would be to view frigate if frigate was installed as a home assistant add-on. The way you described it you have frigate installed external to HA so that url probably doesn’t work at all?

I’m setting this is integrations.


When you integrate frigate you should put your url. If I leave it blank it doesnt work. I can’t set it up.
This url I posted is working. I used this url as it is default url in home assistant.
Home assistant is on host network in docker and other addons including frigate are on different network. But blueprint worked before i decided to use nginx. After speaking to you, I’m not that sure this is a blueprint problem. It might be, but I’m really not sure.
I didn’t check all this before because blueprint was working. Now if I check

update.frigate_server

I get Server unknown, don’t know why.
I mean camera is working, frigate is working, integration is working, snapshoots are taken as they should be.

Okay. So on the frigate integration page you need to enter the url that gives access to the frigate website directly. This could be the proxy url in theory but how are you securing that from anyone accessing it?

You said frigate is not on the same network as HA which to me, means it is installed on another computer entirely, or a different docker container at minimum. So to confirm. Is frigate installed as a home assistant add-on or as a seperate docker install?

The address http://homeassistant.local:5000 points to your HA computer/docker which doesn’t make sense to me if you have frigate on another computer. Maybe I’m missing something.

Nginx is a tool most would use to give access to frigate outside of their home network. I use it myself with a similar setup (frigate.mydomain.com etc). In my integration setup though I just use the LAN IP and port. 192.168.1.37:5000

No, no, we misunderstood each other. I thought that you were speaking about docker network. I was speaking about docker network. Home assistant is using host network, other addons or containers are using different network and they are all on the same computer. I’m using linux so you can have as many as you like virtual networks. This is basically it.
Frigate is installed as docker container. I run debian linux as a server and docker compose installation. Home assistant and all other addons are installed as docker containers.
I know that this is sound weird but I don’t use nginx for remote access. I have a domain and bunch of subdomains. But I reroute those domains to point to my local server.
Why I use this? Well because I want to have ssl my local network and I want that my services on my local computer regardless docker or standalone have ssl connection.

I understand much better now thanks. I guess I asked the wrong question about network earlier sorry.

If the frigate integration setup accepts your proxied url for frigate and the integration works (sensors update with motions etc) then I guess it should be fine. Maybe https is causing an issue for the integration.

From nginx point of view everything is working. Subdomain is oke, I can access it over my subdomain, camera is working, frigate integration is working, all sensors are working, frigate card is working.
But blueprint doesnt.

Alright. Well I’ll trust that’s the case and look at the blueprint with you.

If you go outside and trigger your camera can you show me what the automation trace tree looks like afterwards? Do you even get a trace?

Maybe post your automation config also please.

Ok I will but tomorrow it’s nearly midnight here.

No worries.

I got it working, It works.
The problem was in mqtt. I use frigate with mqtt. When I deleted frigate integration I didn’t restart home assistant. I just add frigate integration again. All my entities got _2 behind it’s name. So I had ie. camera.doorbell_2 instead of camera.doorbell. I didn’t pay much intention to it. But for some reason those entities wasn’t recognized by mqtt. I didn’t restart frigate container. When you look logs you can obviously see that there is no mqtt topic and therefore blueprint didn’t work.
This is the log without mqtt, blueprint doesn’t work

{
  "trace": {
    "last_step": "action/0/choose/1/conditions/0",
    "run_id": "deff9aa5388d5565cee6f136d5834d63",
    "state": "stopped",
    "script_execution": "finished",
    "timestamp": {
      "start": "2023-04-03T19:56:54.637948+00:00",
      "finish": "2023-04-03T19:56:54.650808+00:00"
    },
    "domain": "automation",
    "item_id": "1679650405976",
    "trigger": null,
    "trace": {
      "trigger": [

This is the log with mqtt blueprint works

{
  "trace": {
    "last_step": "action/0/choose/1/sequence/3/repeat/sequence/1",
    "run_id": "2b49bb4e34a1c0f74882b5294a70ac02",
    "state": "stopped",
    "script_execution": "error",
    "timestamp": {
      "start": "2023-04-04T10:54:34.360441+00:00",
      "finish": "2023-04-04T10:54:39.765247+00:00"
    },
    "domain": "automation",
    "item_id": "1679650405976",
    "error": "TypeError: '<' not supported between instances of 'datetime.datetime' and 'NoneType'",
    **"trigger": "mqtt topic frigate/events",**
    "trace": {
      "trigger/1": [

And there it is. Problem solved.

Sorry I ran you through the wrong hoops. Glad you worked it out.

Hi, I am experiencing the same issue of @Telk0 .
I receive false notification of person detection with an attached snapshot (usually of my cat :wink: ) even if in Frigate Events I do not have such an event. I cannot find the snapshot on Frigate media gallery. I mean: Frigate detection works ok but sometimes I get a notification of a detection which is not related to an Frigate event.
This is a tipical screenshot taken from my mobile of a notification snapshot for a false “person” detection but I cannot find that event recorded in Frigate.
Also when I click on View Clip or View Snapshot, nothing opens because there is not such an event recorded from Frigate. It seems that the notification send an alert before the event has been confirmed by Frigate, as @Telk0 pointed out.

I don’t know exactly but perhaps frigate changes it’s assessment of what the object is.

Initially a person, then not, and deleting the event because it no longer matches your requirements?

I’d say you should check the trace and it gives you to review the mqtt messages and see if that is the case.

Do you have your blueprint set to only send notifications for person objects?

So I’m not sure where to ask this, but where I go to expose clips/recordings to the internet? I’m using Nabu, but when I click the option in the Android notification, it 404s.

Thank you, unfortunately traces do not go back to that event anymore (few days ago).
Yes, I have the blueprint set to send notification for person objects.
The strange thing is that I do not have any Frigate event for that “person” nor “cat”, nothing. And as a consequence cannot find any screenshot/video related to that false positive. I had indeed to take a screenshot of the notification because that snapshot simply doesn’t exist.
thank for your support

To be clear, Frigate won’t change the label. If an object meets the criteria to register as an event then that event will stay. The only case where events are deleted after the fact are when they are of the same type and happen at the same time (two people talking into the house at the same time).

Ok but then I expect that:

  1. Frigate registers an event, ie. detects the presence of a person based on the criteria for zones / tresholds / min/max area etc I set in the config
  2. Than the blueprint based automation triggers a notification.

But this is not the case. I would accept to get a notification for a false positive but here I do not have any event related to the notification trigger!

I figured out the issue. It may be helpful to add a note that the base URL can’t have a trailing slash.

1 Like