Hi, I’m using the HA Frigate integration and I would like to send a frigate clip to telegram when a person has been detected. To do that I would need the frigate event-id. It seems that the integration is not providing this?
- id: '20240630160716'
alias: Use Frigate custom component to send frigate events to Telegram
mode: single
max_exceeded: silent
trigger:
- platform: state
entity_id: binary_sensor.wz_cam_person_occupancy
to: "on"
action:
- service: telegram_bot.send_video
data:
target: xxxxxxxxxxx
disable_notification: false
caption: ALARM ! The cam detected a Person.
url: >-
https://HA_URL/api/frigate/notifications/<event-id>/clip.mp4
The frigate integration provides the event but you dont provide a way for the automation to know what event to choose when sending the notification. unless I misunderstand and you are calling a specific event and not using variable?
i trigger using the frigate event and and use that specific event trigger as variable for notification. example below
Thanks. So it seems this cannot be achieved with the Frigate custom component alone. Mqtt is required to filter the event-id and other information if needed. This makes it a bit harder to implement.