Using Frigate with Zoneminder (24/7 low resolution recording with high resolution event archiving) #16082
substeeze
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As a long time user of Zoneminder moving to Frigate, I'm really liking the UI and excellent object detection that makes reviewing events a breeze.
But there's not a sensible way to have low resolution 24/7 recording with only events saved in high resolution. Sure, you can add the same camera twice into Frigate and set different retention policies, but it does clutter the UI - particularly the event review page (where you see everything twice unless you filter it), plus detection is running twice for the same camera and this is not cpu efficient.
It's also not straightforward to have the low resolution recordings on a SSD for fast access during review, but the high resolution on an HDD for archiving.
So I looked into whether I could get Frigate to initiate a recording on Zoneminder using a HomeAssistant automation. I'm pleased to report this is possible and it works very well. The implementation is possibly not the most elegant, so I'm keen to hear if there's a better way. It assumes you already have MQTT working between HA and Frigate.
For reference, this is what I have done...
replace the '1' with the id number of your camera in Zoneminder. You can change the name zm_trigger to a more suitable name. If you have multiple cameras, you will need one of these switch definitions per camera. 123 is the alarm number assigned in ZM and textstring1/2 is just a description you can add. They don't matter for functionality.
5. Restart HomeAssistant and you should now see you have a zm_trigger switch entity.
6. Under HomeAssistant / Settings / Automations and Scenes, click create Automation and add the following...
Replace drive_cam with your Frigate camera name and zm_trigger with the name of the switch created in the HomeAssistant configuration.yaml file. For multiple cameras, you can just use multiples of this automation, modified with the appropriate camera and switch names.
Beta Was this translation helpful? Give feedback.
All reactions