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.