What I’m trying to do is create an Automation to send me a clip/snapshot from my Frigate instance, but I don’t want to use the Frigate event triggers. Rather I’d like to use other HA state changes.
For more context: I’d like to be notified when my Garage is left open for > 10 minutes, and in that notification send me a snapshot and Action to view the latest person clip (so I know who to blame), and maybe even a Live feed.
I’m aware of the Frigate blueprint, but that is based on using Frigate events to trigger the automation, and going from there. That doesn’t work for me because it would try to send a notification whenever a person is detected (and I can’t use the Garage as a condition, because it would be false at the time of the event).
So I’ve been looking through the docs and examples and can’t figure it out with my limited experience.
I was at least able to get the snapshot easily by just adding this to the data section of the action:
image: /api/image_proxy/image.garage_person
But the Clips and Live feed are now the challenge. From everything I could gather from the Frigate Docs, in order to get the latest clip you need to poll the change feed via JSON and this is where I get lost because I’m not using that topic as a trigger.
Any help or suggestions are appreciated!
[FWIW, I’m using the Frigate Proxy add-on, so I’d love for this solution to work when I’m outside my house]