Frigate HA addon, Telegram went grazy

I have tried this with Frigate 2.3 and 3.0. I dont think that the fault is with Frigate, because event log looks ok there.

The problem is that Telegram keeps sending constantly (1-4 per minute) old events to phone. This worked at first but then suddenly few days ago it started the continuous sending.

HA automation looks like this:

- alias: Notify of events
  trigger:
    platform: mqtt
    topic: frigate/events
  action:
  - service: notify.telegram
    data_template:
      message: A {{trigger.payload_json["after"]["label"]}} was detected.
      data:
        photo:
        - url: http://ccab4aaf-frigate:5000/api/events/{{trigger.payload_json["after"]["id"]}}/thumbnail.jpg
          caption: A {{trigger.payload_json["after"]["label"]}} was detected on {{
            trigger.payload_json["after"]["camera"] }} camera
  id: 2678cff491a3475bb273dd02b5af65b1

Edit: Seems that Frigate sends events continously. Those events are not showing in Frigate UI.

Hi

Did you find a way to fix this?
My notification automation is triggered once every minute, when I am not home, so i have had to disable it.

Sorry for my late answer. Didnt notice your post. But yes, I got it working. My solution was this: Frigate HA addon, Telegram went grazy · Discussion #2849 · blakeblackshear/frigate · GitHub

But I’m also interested to hear if you found some other solution for the problem.