blakeblackshear / frigate-hass-integration

Frigate integration for Home Assistant
MIT License
657 stars 110 forks source link

Snapshot api url not found #680

Closed SmokeyBR closed 1 week ago

SmokeyBR commented 1 month ago

i cannot figure it out why the notifications api url for snapshots are silmply not there i can go to the clip.mp4 url just fine however the snapshot.jpg is not there and im also getting notifications without the snapshot. Media browser shows all the files if that has anything to do with it, i can browse clips, snapshots and recordings.

service: notify.alldevices
metadata: {}
data:
  message: >-
    A {{ trigger.payload_json.after.label }} was detected at {{
    now().strftime('%H:%M:%S') }}
  title: '{{ trigger.payload_json.after.camera }} Motion'
  data:
    image: >-
      /api/frigate/notifications/{{ trigger.payload_json.after.id }}/{{
      trigger.payload_json.after.camera }}/snapshot.jpg
    url: >-
      /api/frigate/notifications/{{ trigger.payload_json.after.id }}/{{
      trigger.payload_json.after.camera }}/clip.mp4
    clickAction: >-
      /api/frigate/notifications/{{ trigger.payload_json.after.id }}/{{
      trigger.payload_json.after.camera }}/clip.mp4
    priority: high
SmokeyBR commented 1 month ago

ok i feel stupid the path was wrong its /api/frigate/notifications/event-id/snapshot.jpg and not /api/frigate/notifications/event-id/cameraname/snapshot.jpg (no "/cameraname/" in url path).

thou clip does have a path with "/cameraname/" in it.

github-actions[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.