Frigate with MemryX on Home Assistant OS

Overview

We are pleased to announce that MemryX detector support is now available for Frigate users working with Home Assistant OS (HAOS)!

The purpose of this guide is to provide resources for building a custom HAOS image with MemryX support, enabling users to properly configure Frigate with the MemryX detector.

Home Assistant OS is a Buildroot-based operating system whose native source code does not include MemryX drivers or runtime. As such, to obtain an image with the MemryX support needed for Frigate, users must build a custom image from source using the memx_haos repository as an overlay.

Instructions

This guide will provide a high-level overview of the steps needed to build the image and configure Frigate (Full Access) on HAOS. For detailed, step-by-step instructions, please refer to the README.md file in the MemryX repository. The procedure has been validated only when followed exactly as documented, so do not skip, reorder, or modify any steps.

Important Note: The memx_haos repository has been validated only for the Home Assistant OS generic_x86_64 image and the Frigate Full Access add-on. Other HAOS targets (aarch64, Raspberry Pi, Yellow, etc.) may require additional package changes and have not been tested.

Clone the source code repositories.

To begin, you will need to clone the HAOS source code and the MemryX overlay into a common folder.

Apply the MemryX overlay.

Use the commands in the memx_haos README.md to apply the MemryX overlay to your HAOS source code using the provided bash script. This will apply all MemryX components needed to support Frigate with MemryX on your HAOS image.

Build the image.

Use the commands provided to build the custom HAOS image. You should have at least 40 GB of free disk space for the build to complete successfully. The process will take approximately one hour to complete and will vary based on your system specs.

Flash the image.

The built image can be found in the output/images folder with the extension .img.xz please flash the image to a boot-able USB or SSD of your choice using either Balena Etcher or dd.

Boot the image.

Install the flashed USB/SSD into your preferred x86_64 system and boot. Once startup completes, use the commands in the guide to verify the presence and functionality of all MemryX components.

Install Frigate on HAOS from the MemryX fork.

Add the MemryX-configured Frigate HAOS add-on repo URL to HAOS (Settings → Apps → Install App → Repositories → Add). After adding the repo URL, navigate to the app installation page and install “Frigate (Full Access)”. Once installation completes, start the app.

Configure Frigate as usual.

Add and enable your camera(s) first. Then, navigate to the Frigate configuration editor to add the MemryX detector and specify a detection model of your choice. Save the config file and restart the application to begin use of the MemryX detector.

Conclusion

If you are interested in using Frigate with the MemryX detector on Home Assistant OS, please refer to the memx_haos repository to guide you through the process. This post is meant to serve only as a high-level summary of the required actions. As always, the MemryX team is here to support!