Latest

Frigate with Home Assistant: a local NVR that recognises people and cars without the cloud

Frigate records IP cameras and recognises people, cars and animals right in your home, with no subscription and no images in the cloud. The hardware you need, a setup with the substream for detection and the main stream for recording, Home Assistant integration and snapshot notifications.

By 4 min read
Frigate: a local NVR with detection

Cameras with person detection work well, but they almost always send images to the vendor’s cloud and ask for a subscription. Frigate is an open-source NVR that does the same thing in your own home: it records the cameras’ RTSP streams, recognises people, cars and animals with a local AI model and integrates with Home Assistant for notifications and automations. Here is what you need and how to set it up without overloading the computer.

How it works

  1. Frigate reads two streams from each camera: a light one (e.g. 1280×720 at 5 frames per second) for analysis and the high-resolution main one for recording.
  2. It looks for motion in the light stream; only in moving areas does it run object detection.
  3. Detection runs on an accelerator (or on the CPU, much more slowly) and returns person, car, dog or cat with a confidence score.
  4. Events are saved with a clip and snapshot and published over MQTT, where Home Assistant picks them up.

Hardware

Component Recommended choice Notes
Computer Mini PC with a recent Intel processor (integrated graphics), or the same mini PC as Home Assistant Intel hardware video decoding takes a lot of load off the CPU
Detection accelerator Google Coral (USB or M.2), or OpenVINO on Intel graphics A few milliseconds per image; on the CPU alone it easily takes tens
Recording disk An SSD or surveillance drive separate from the system disk Work out the space with the table in the guide on installing and recording
Network Wired cameras, ideally on a separate network See cameras on a separate network

Installation

  • With Home Assistant OS on the same mini PC: add the Frigate add-on repository, install the add-on and connect the recording disk. It is the simplest route.
  • On a separate server with Docker: use the official image and mount the configuration and video folders. Separating NVR and home automation stops a problem in one from blocking the other.

You also need an MQTT broker: in Home Assistant OS install the Mosquitto add-on and create a dedicated user for Frigate.

A starting configuration

Frigate is configured with a YAML file. This example uses a USB Coral and a camera with two streams. RTSP addresses depend on the brand: see the article on IP cameras in VLC. Passwords stay out of the file, in environment variables.

mqtt:
  host: 192.168.1.10
  user: frigate
  password: "{FRIGATE_MQTT_PASSWORD}"

detectors:
  coral:
    type: edgetpu
    device: usb

cameras:
  entrance:
    ffmpeg:
      inputs:
        - path: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@192.168.20.11:554/substream
          roles: [detect]
        - path: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@192.168.20.11:554/mainstream
          roles: [record]
    detect:
      width: 1280
      height: 720
      fps: 5
    objects:
      track: [person, car]
    record:
      enabled: true

The syntax of some sections, especially recording retention, changes between Frigate versions: always check the official documentation for the version you install.

Settings that make the difference

Setting Recommended value Why
Detection frames per second 5 Enough to track a person; more adds load without better results
Detection resolution 720p from the substream Analysing 4K is a waste: the model works on small images anyway
Motion masks Over clocks, trees moving in the wind, the street Cut useless analysis and false alarms
Zones Driveway, entrance, garden Notifications fire only when a person enters the zone, not when they walk by on the pavement
Minimum score Raise it if you get false positives Shadows and statues can look like people
Hardware decoding Intel preset (VAAPI or QSV) Cuts CPU use by as much as 70–80% with several cameras

Home Assistant integration

  1. Install the Frigate integration (available in HACS) and enter Frigate’s address.
  2. Each camera gets entities such as the number of people detected, a live camera view and motion sensors.
  3. Create an automation: when a person enters the “entrance” zone and nobody is home, then send a notification to the app with the event snapshot.
  4. Add a time condition, so the Tuesday-morning gardener does not trigger alarms.

Privacy and rules

Keeping video at home is an advantage, but the rules do not change: film only your own property, mask the street and neighbours’ windows and keep recordings only as long as needed, usually a few days. Details are in the guide on cameras and the law. Protect Frigate’s interface with authentication and never expose it to the internet: use a VPN to view it from outside.

Sources

  • Frigate, official documentation (installation, detectors, camera configuration).
  • Home Assistant, Mosquitto broker add-on and MQTT integration.