I have moved completely over to Frigate and am loving it! One of the features that I love from Frigate v14 is the animated preview gif that it has on the main page. I currently have all of my notifications in Node-Red and it’s working great there.
I started to wonder if I could attach this gif on my notification. I can easily access the thumbnail, snapshot and clip like it describes here, but don’t see any way to access the animation. Has anyone figured this out?
For the record I also couldn’t see a way to do this in the official Frigate blueprint for Home Assistant automations. If I can get that working I assume that I can easily replicate it in Node-Red. Thanks in advance!
You might need to use a custom Lovelace card or modify the existing blueprint to support GIFs. Create a script that triggers when an event occurs and includes the GIF URL in the notification payload.
Example
alias: Notify with Frigate GIFtrigger: #%20Define%20your%20trigger%20hereaction:%20%20service:%20notify.your_notification_service%20%20data:%20%20%20%20message:%20%22Check%20out%20the%20latest%20event!%22%20%20%20%20data:%20%20%20%20%20%20attachment:%20%20%20%20%20%20%20%20url:%20%22http://your-frigate-server/path-to-gif.gif%22%20%20%20%20%20%20%20%20content-type:%20%22image/gif%22