Frigate integration - How to retrieve the frigate event id?

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

alias: NOTIFY_FrigateEntryGateMotionInOut
description: ""
trigger:
  - platform: mqtt
    topic: frigate/events
condition:
  - condition: and
    conditions:
      - condition: template
        value_template: "{{ trigger.payload_json[\"after\"][\"top_score\"] > 0.720 }}"
        enabled: true
      - condition: or
        conditions:
          - condition: template
            value_template: >-
              {{ trigger.payload_json["after"]["current_zones"] == ["outside"]
              }}
          - condition: template
            value_template: >-
              {{ trigger.payload_json["before"]["current_zones"] == ["outside"]
              }}
            enabled: true
          - condition: template
            value_template: >-
              {{ trigger.payload_json["before"]["entered_zones"] == ["outside"]
              }}
            enabled: true
          - condition: template
            value_template: >-
              {{ trigger.payload_json["after"]["entered_zones"] == ["outside"]
              }}
          - condition: template
            value_template: >-
              {{ trigger.payload_json["after"]["current_zones"] == ["mailbox"]
              }}
          - condition: template
            value_template: >-
              {{ trigger.payload_json["before"]["current_zones"] == ["outside"]
              }}
            enabled: true
          - condition: template
            value_template: >-
              {{ trigger.payload_json["before"]["entered_zones"] == ["outside"]
              }}
            enabled: true
          - condition: template
            value_template: >-
              {{ trigger.payload_json["after"]["entered_zones"] == ["outside"]
              }}
        enabled: true
    enabled: true
action:
  - service: notify.mobile_app_iphone
    data:
      message: >-
        A {{trigger.payload_json["after"]["label"]}} is
        {{trigger.payload_json["after"]["current_zones"]}} the
        Gate.{{trigger.payload_json["after"]["top_score"]}}{{trigger.payload_json["after"]["id"]}}{{trigger.payload_json["after"]["entered_zones"]}}{{trigger.payload_json["type"]}}
      data:
        tag: NOTIFY_EntryGateMotionInOut
        image: >-
          https://mydomain.com/api/frigate/notifications/{{
          trigger.payload_json["after"]["id"] }}/snapshot.jpg
        actions:
          - action: OPEN_ENTRY_GATE
            title: Open Gate
            destructive: true
          - action: URI
            title: APP
            uri: /lovelace/cam
    enabled: true
  - delay:
      hours: 0
      minutes: 0
      seconds: 40
      milliseconds: 0
    enabled: true
mode: single

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.