Skip to content

Webhook to Home Assistant #223

Open
Open
@JoshuaSeidel

Description

@JoshuaSeidel

Describe the bug
with Frigate 0.16 currently it often does not get a snapshot intime for notification with changes made, i saw frigate-notify put in some logic to help with this change. so i created a webhook with home assistant in a automation to then use the data from frigate notify for the home assistant notification (i dont want to install another app currently). i get this

data:
    __type: <class 'multidict._m
ultidict.MultiDictProxy'>
    repr: <MultiDictProxy()>"

Expected behavior
to get a JSON payload to be able to map data from payload to build a notification

To Reproduce
create a new automation with a webhook as a trigger.
copy the URL for the webhook.
configure frigate-notify webhook to send using defauls

Versions:

  • Frigate NVR: 0.16
  • Frigate-Notify: v0.4.3

Frigate-Notify Config:

  # Webhook Config
  webhook:
    # Set to true to enable alerting via webhook
    enabled: true
    # URL of webhook receiver
    server: https://ha.mydomain.com/api/webhook/-nfsdu9rw3knjwefu9wr3ni
    # Set to true to allow self-signed certificates
    ignoressl: true
    # HTTP Method to send notifications, supports GET or POST (Default: POST)
    method: POST
    # Optional list of HTTP parameters to append to URL
    params:
      # Example:
      # - token: abcd1234
    # List of HTTP headers to send to webhook receiver, in format Header: Value
    headers:
      # Example:
      # - Authorization: Basic abcd1234
    # Custom notification template, if desired
    # Note that template must be valid JSON
    template:

Frigate-Notify Logs:

2025/02/25 09:55:15 -0500 INF Processing review... audio= camera=doorbell num_detections=1 objects=person review_id=1740495315.3525-qpbxm3 severity=alert zones=sidewalk
2025/02/25 09:55:17 -0500 INF Waiting for snapshot to be available attempt=1 event_id=1740495314.582666-vmmsqz max_attempts=10
2025/02/25 09:55:19 -0500 INF Waiting for snapshot to be available attempt=2 event_id=1740495314.582666-vmmsqz max_attempts=10
2025/02/25 09:55:21 -0500 INF Waiting for snapshot to be available attempt=3 event_id=1740495314.582666-vmmsqz max_attempts=10
2025/02/25 09:55:23 -0500 INF Waiting for snapshot to be available attempt=4 event_id=1740495314.582666-vmmsqz max_attempts=10
2025/02/25 09:55:25 -0500 INF Waiting for snapshot to be available attempt=5 event_id=1740495314.582666-vmmsqz max_attempts=10
2025/02/25 09:55:27 -0500 INF Waiting for snapshot to be available attempt=6 event_id=1740495314.582666-vmmsqz max_attempts=10
2025/02/25 09:55:30 -0500 INF Waiting for snapshot to be available attempt=7 event_id=1740495314.582666-vmmsqz max_attempts=10
2025/02/25 09:55:32 -0500 INF Waiting for snapshot to be available attempt=8 event_id=1740495314.582666-vmmsqz max_attempts=10
2025/02/25 09:55:34 -0500 INF Waiting for snapshot to be available attempt=9 event_id=1740495314.582666-vmmsqz max_attempts=10
2025/02/25 09:55:36 -0500 INF Waiting for snapshot to be available attempt=10 event_id=1740495314.582666-vmmsqz max_attempts=10
2025/02/25 09:55:36 -0500 INF Processing review... audio= camera=doorbell num_detections=2 objects=person,package review_id=1740495315.3525-qpbxm3 severity=alert zones=sidewalk,porch
2025/02/25 09:55:36 -0500 INF Event dropped - Already notified & notify_once is set event_id=1740495314.582666-vmmsqz
2025/02/25 09:55:36 -0500 INF Review dropped - No events eligable for notification review_id=1740495315.3525-qpbxm3
2025/02/25 09:55:36 -0500 INF Alert sent event_id=1740495314.582666-vmmsqz provider=Webhook provider_id=0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions