Hi,
Just ran into some issues with an automation I have to send Frigate events to a Telegram channel. Currently on Core 2024.1.3 and the automation works flawlessly. The automation will first send an event snapshot to my telegram channel before a delay of 45s and then sends an event video.
I tried updating to Core 2024.4.2 earlier on and noticed that the event video stops sending. I have checked the automation trace and it states that each step has completed successfully. Unsure if anyone has encountered this?
Frigate version: 0.13.2
Frigate Integration: 5.1.0
Note that I have tried this with the older frigate version of 0.12 and I still get the same after I upgrade core from 2024.1.3 to 2024.4.2.
Automation code below. Any help is appreciated. Thanks
alias: Garage CCTV - Telegram
description: ""
trigger:
- platform: mqtt
topic: frigate/events
payload: new
value_template: "{{ value_json.type }}"
condition:
- condition: template
value_template: "{{trigger.payload_json[\"after\"][\"camera\"] == 'Garage' }}"
action:
- service: telegram_bot.send_photo
data:
target: [REDACTED]
url: >-
http://homeassistant.address/api/frigate/notifications/{{trigger.payload_json["after"]["id"]}}/snapshot.jpg
caption: >-
Garage CCTV
camera: {{trigger.payload_json["after"]["camera"] | replace("_", " ") |
title }}
snapshot: _{{trigger.payload_json["after"]["label"]}}_
ID: `{{trigger.payload_json["after"]["start_time"]|int}}
``{{now().strftime("%d/%m/%y %H:%M")}}` 📷
enabled: true
- delay:
hours: 0
minutes: 0
seconds: 45
milliseconds: 0
enabled: true
- service: telegram_bot.send_video
data:
caption: |-
Garage CCTV
video: _{{trigger.payload_json["after"]["label"]}}._
ID: `{{trigger.payload_json["after"]["start_time"]|int}} `🎥
enabled: true
timeout: 1000
target: [REDACTED]
disable_notification: true
url: >-
http://homeassistant.address/api/frigate/notifications/{{trigger.payload_json["after"]["id"]}}/{{trigger.payload_json["after"]["camera"]}}/clip.mp4
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
enabled: false
mode: single
max_exceeded: silent