In This Article
Frigate is the gold standard for local AI-powered camera object detection in the Home Assistant ecosystem. Unlike cloud-based camera services, Frigate runs entirely on your own hardware, processes video locally, and sends rich detection events — person detected, car in driveway, dog in yard — directly to Home Assistant with zero cloud dependency.
This guide walks you through a complete Frigate setup from scratch, including the optional (but highly recommended) Google Coral TPU accelerator that transforms detection performance.
What Is Frigate NVR?
Frigate is an open-source Network Video Recorder (NVR) built specifically for Home Assistant integration. It ingests RTSP streams from your IP cameras, runs neural network object detection on every frame (or a configurable subset), records clips when objects are detected, and publishes events to Home Assistant via MQTT.
Key capabilities include:
- Real-time object detection (people, cars, animals, and more)
- Motion-triggered recording with object-verified clips
- 24/7 continuous recording option
- RTSP re-streaming to reduce camera bandwidth usage
- Full Home Assistant integration via the Frigate integration
- A clean web UI for live viewing, event review, and configuration
The key technical detail: Frigate uses a low-resolution detection stream (typically 720p or lower) for object detection, and a separate high-resolution stream for recording. This keeps CPU usage manageable even on a NUC or Raspberry Pi.
Requirements
Hardware
- Home Assistant OS or Supervised install (required for the add-on)
- A host with at least 4GB RAM and a modern CPU (x86_64 or aarch64)
- At least one IP camera with RTSP stream support
- Local storage for recordings (SSD recommended for multiple cameras)
- Optional but recommended: Google Coral USB Accelerator
Software
- Home Assistant OS (latest stable version)
- Mosquitto MQTT broker add-on (from the official add-on store)
- Frigate NVR add-on (community add-on store)
Step 1: Install the Frigate Add-on
The easiest way to run Frigate alongside Home Assistant is via the add-on store. You'll need to add the Frigate community repository first.
- In Home Assistant, navigate to Settings → Add-ons → Add-on Store
- Click the three-dot menu (⋮) in the top right and select Repositories
- Add:
https://github.com/blakeblackshear/frigate-hass-addons - Refresh the page. Find Frigate NVR and click Install
- Install the Mosquitto broker add-on from the official store if you haven't already
After installation, don't start Frigate yet — you need to configure it first.
Step 2: Configure Your Cameras
Frigate is configured via a YAML file. Navigate to the Frigate add-on and open the configuration editor, or create /config/frigate.yml in your Home Assistant config directory.
Here's a minimal working configuration for a single camera:
mqtt:
host: 127.0.0.1
port: 1883
cameras:
front_door:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/h264Preview_01_main
roles:
- record
- path: rtsp://admin:[email protected]:554/h264Preview_01_sub
roles:
- detect
detect:
width: 1280
height: 720
fps: 5
objects:
track:
- person
- car
- dog
record:
enabled: true
retain:
days: 7
mode: motion
snapshots:
enabled: true
retain:
default: 14
Key points: use your camera's main (high-res) stream for recording and a substream (lower-res) for detection. Most PoE cameras offer both. Amcrest and Reolink cameras both work well here — check your camera's manual for the correct RTSP URL format.
Step 3: Add Google Coral TPU Acceleration (Recommended)
Running AI object detection on CPU alone works, but it's slow and CPU-intensive. The Google Coral USB Accelerator is a USB dongle that contains a dedicated Edge TPU chip, purpose-built for running neural network inference. With the Coral, Frigate can process detections in under 10ms per frame vs. 50-100ms on a typical CPU.
To add Coral support, plug in the USB accelerator and add the following to your frigate.yml:
detectors:
coral:
type: edgetpu
device: usb
Then add usb: "0" under the add-on's device configuration to pass through the USB device. Restart Frigate and check the logs — you should see "EdgeTPU: initialized" confirming it's working.
Google Coral USB Accelerator
The single best upgrade for Frigate NVR performance. Reduces detection latency from 50-100ms to under 10ms. A must-have for multi-camera setups.
Buy on Amazon →Step 4: Integrate with Home Assistant
Once Frigate is running, install the Frigate Home Assistant integration:
- Go to Settings → Devices & Services → Add Integration
- Search for "Frigate" and select it
- Enter your Frigate URL (typically
http://localhost:5000for the add-on) - The integration will auto-discover your cameras and create entities
You'll get entities for each camera including:
- Camera entity (live stream via go2rtc)
- Motion binary sensor
- Per-object detection sensors (e.g., "Front Door Person Count")
- Snapshot image entities
- Event notification sensors
Step 5: Set Up Automations
With Frigate integrated, you can build powerful automations. Here's a basic person detection notification example in Home Assistant's automation YAML:
alias: "Front Door Person Alert"
trigger:
- platform: state
entity_id: binary_sensor.front_door_person_occupancy
to: "on"
action:
- service: notify.mobile_app
data:
title: "Person detected"
message: "Someone is at the front door"
data:
image: /api/frigate/notifications/front_door/person/snapshot.jpg
You can also use Frigate's MQTT events directly for more granular control, filtering by score, zone, or object type.
Tips & Troubleshooting
Performance Tips
- Always use a substream for detection — never run detection on a 4K stream
- Set detection fps to 5 — Frigate only needs low frame rates for detection
- Use hardware video decoding if your CPU supports it (add
hwaccel_args: preset-intel-vaapifor Intel CPUs) - Store recordings on an SSD or HDD, not your boot drive or SD card
Common Issues
- Stream not connecting: Verify your RTSP URL by testing it in VLC first
- High CPU usage: Reduce detection fps, enable hardware decoding, or add a Coral TPU
- Coral not detected: Ensure the USB device passthrough is configured in the add-on settings
- False motion alerts: Tune motion masks in the Frigate UI to exclude trees, road traffic, etc.
Summary
Frigate NVR is the most powerful local AI camera system available for Home Assistant. With a Coral TPU accelerator, it runs efficiently even with 6-8 cameras on a modest home server. The setup takes a few hours the first time, but the result is a fully local, privacy-respecting security system that rivals commercial offerings.
SmartWired participates in the Amazon Associates Programme. We may earn a commission from qualifying purchases at no extra cost to you.