Frigate Mobile App Notifications

Hello,

This works well so far, only with the “Label” do I get an error message:

Logger: homeassistant.helpers.template
Source: helpers/template.py:142
First occurred: 13:06:30 (25 occurrences)
Last logged: 14:05:28

Template variable warning: ‘label’ is undefined when rendering ‘Ein(e) {{ label }} wurde an der Kamera {{ camera_name }} erkannt.’

Do you have any idea what could be causing this?

thanks

the same problem with me

Yes it is because the label is not defined until after the message. I’m not sure I can resolve it easily but will have a go later today.

Edit: fixed in above blueprint now

Trying to implement Mobile notifications on my Android & iPhone.

What goes in the base_url field so that the videos play ‘in App’ and not ‘Open a browser’. Can some one please help me?

As far as I know it’s just the way it works, not sure you can configure it one way or the other except on your device by forcing it to open a link in a certain app. I have no experience but recall some discussion (probably without a solution) earlier in this thread.

@proschenski-jan @Rockhound53

I’ve edited the above post and tested it. Label appears to work now.

In theory you could even translate the label if you want to. (see the loitering example when configuring it)

1 Like

Many Thanks
somehow it doesn’t seem to work for me.
the messages do not arrive.

It worked earlier but not now?

no it never worked
i’m doing something wrong.

I’ll need more information to assist.

Is frigate working?
Do you have frigate istalled as an addon to home assistant or seperately on another device for example?
Do you have the frigate integration installed?
Are the notifications triggering or nothing is happening at all?

Frigate is installed and working as an addon.
the integration is also installed.
the message is triggered but does not arrive.

thank you for your help

this is my frigate.yml

mqtt:
  host: ********
  user: frigate
  password: ******
  topic_prefix: frigate
  client_id: frigate
  stats_interval: 120

detectors:
  coral:
    type: edgetpu
    device: usb

birdseye:
  enabled: true

cameras:
  c6cn_j34910872:
    ffmpeg:
      global_args: -hide_banner -loglevel warning
      output_args:
        rtmp: -c:v copy -f flv -c:a aac
        record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
      inputs:
        - path: rtsp://admin:*****@*******:554/H.264
          roles:
            - clips
            - record
            - detect
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
      height: 500        
    rtmp:
      enabled: true
    detect:
      width: 1920
      height: 1080
      fps: 5
    objects:
      track:
        - person
        - dog
      filters:
        person:
          threshold: 0.5
    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 3
    motion:
      mask:
        - 1536,1102,1536,0,0,0,0,1118
    record:
      enabled: True
      retain:
        days: 1
      events:
        retain:
          default: 10

Okay if the automation is triggering but not arriving then the issue is likely with your automation only, which is good. Please post the yaml of the automation.

Thank you, it works great for me now!

But I had to restart HA to make it work, just reloading the automations didn’t work.

Thank you again for your hard work!!!

alias: Frigate Notification (0.11.0.4) - SgtB
description: ""
use_blueprint:
  path: hunterjm/frigate_0.10_notification.yaml
  input:
    camera: camera.c6cn_j34910872_2
    notify_device: 10fe51dcad67affa7bd761635e704dcb
    silence_timer: 6
    cooldown: 2

this is the likely issue.

You need to rename this entity to not have the _2 at the end within home assistant, then update the automation.

1 Like

I have changed it unfortunately still without success

alias: Frigate Notification (0.11.0.4) - SgtB
description: ""
use_blueprint:
  path: SgtBatten/frigate_0.11_notification.yaml
  input:
    camera: camera.c6cn_pauli
    notify_device: 10fe51dcad67affa7bd761635e704dcb

Did you rename the camera in frigate.yml to this?

1 Like

yes in frigate.yml

It looks like it’s working now. A message just came from the camera.