← All homelab projects

Local camera security

Frigate on a Raspberry Pi 5

I built a Frigate server around a Raspberry Pi 5 and a Hailo-8L accelerator to process camera footage locally, recognise objects with dedicated AI hardware and make the results useful in Home Assistant.

In development
  • Raspberry Pi
  • Frigate
  • Docker
  • Hailo-8L
  • AI
  • Home Assistant
Illustration of a Raspberry Pi with an AI module connected to three security cameras that detect people, vehicles and animals locally.

At a glance

Technology and key information

In development Raspberry Pi 5 and Hailo-8LUbuntu and DockerThree IP cameras120 GB USB storage

Why I am building this

I wanted to explore how much camera surveillance can happen locally, without relying on an external cloud service for every detection. Frigate combines video streams, recordings and object detection in one system. By running recognition on the Hailo-8L, the Raspberry Pi does not need to handle all the AI work itself.

The installation is both a practical system and a learning project. It brings together Linux, Docker, camera streams, storage, AI acceleration and home automation.

The setup

The foundation is a Raspberry Pi 5 running Ubuntu. Frigate runs in Docker and uses a connected Hailo-8L for object detection. Three IP cameras provide their video streams over the local network. A separate 120 GB USB drive is available for recordings and other Frigate media.

The container configuration keeps the application, settings and media separate. A system service rebuilds the Docker setup after a restart, making the installation easier to manage and restore.

Where it became interesting

Getting the AI accelerator working was only one part of the story. Camera streams are at least as important. Incorrect credentials, differences between main and substreams, and temporary network issues can make a camera unavailable or force Frigate to restart a stream.

By comparing logs from Frigate, go2rtc and FFmpeg, I could separate problems step by step and identify whether an error originated in the camera, network, stream or detection.

What already works

  • Frigate runs in Docker on the Raspberry Pi 5.
  • The system recognises the Hailo-8L, which performs detection.
  • Three cameras can be included in the setup.
  • Recordings and media have a separate storage location.
  • The foundation for Home Assistant integration is in place.

Building further

Next steps

  1. Make the camera streams more stable and monitor them.
  2. Refine detection zones and notifications to reduce unnecessary events.
  3. Develop the Home Assistant integration further.
  4. Document and back up the configuration and recovery procedure securely.
← All homelab projects