问小白 wenxiaobai
资讯
历史
科技
环境与自然
成长
游戏
财经
文学与艺术
美食
健康
家居
文化
情感
汽车
三农
军事
旅行
运动
教育
生活
星座命理

Frigate Home Assistant安装指南

创作时间:
作者:
@小白创作中心

Frigate Home Assistant安装指南

引用
1
来源
1.
https://www.restack.io/p/frigate-answer-home-assistant-installation-cat-ai

本文将详细介绍如何在Home Assistant中配置Frigate,这是一个基于AI的视频监控系统,可以提供运动检测、物体识别等功能。通过本文的指导,你将能够顺利完成Frigate的安装和配置,实现智能化的视频监控。

Comprehensive Guide to Configuring Frigate for Home Assistant

To effectively configure Frigate within your Home Assistant environment, follow these detailed steps to ensure optimal performance and functionality.

Step 1: Add a Detect Stream

Begin by adding a detect stream for your camera. This is crucial for enabling detection capabilities.

mqtt:
  enabled: False
cameras:
  name_of_your_camera: # <------ Name the camera
    enabled: True
    ffmpeg:
      inputs:
- path: rtsp://10.0.10.10:554/rtsp # <----- The stream you want to use for detection
          roles:
- detect
    detect:
      enabled: False # <---- disable detection until you have a working camera feed

Step 2: Start Frigate

Once the detect stream is configured, you can start Frigate. At this point, you should be able to view the video feed in the UI. If you encounter an error image from the camera, it indicates that ffmpeg was unable to retrieve the video feed. Check the logs for any error messages from ffmpeg. The default ffmpeg arguments are tailored for H264 RTSP cameras that support TCP connections. For other camera types, refer to the FFmpeg arguments documentation.

Step 3: Config File Location

For Home Assistant Addon installations, ensure that the config file is located in the root of your Home Assistant config directory, alongside
configuration.yaml
. The config file can be named
frigate.yaml
or
frigate.yml
, with
frigate.yaml
taking precedence if both are present. For other installation types, map the config file to
/config/config.yml
within the container.

Step 4: Minimal Configuration

It is advisable to start with a minimal configuration and gradually expand it. Utilize the built-in configuration editor in Frigate's UI, which supports validation to avoid errors.

mqtt:
  enabled: False
cameras:
  dummy_camera: # <--- this will be changed to your actual camera later
    enabled: False
    ffmpeg:
      inputs:
- path: rtsp://127.0.0.1:554/rtsp
          roles:
- detect

Step 5: Enable Recordings

To review activities in the Frigate UI, you must enable video recordings. To do this, add the
record
role to a stream and enable it in the configuration. If recording is disabled in the config, it won't be possible to enable it in the UI.

mqtt: ...
detectors: ...
cameras:
  name_of_your_camera:
    ffmpeg:
      inputs:
- path: rtsp://10.0.10.10:554/rtsp
          roles:
- detect
- path: rtsp://10.0.10.10:554/high_res_stream # <----- Add stream you want to record from
          roles:
- record
    detect: ...
    record: # <----- Enable recording
      enabled: True
    motion: ...

If you do not have separate streams for detection and recording, simply add the record role to the list on the first input. By default, Frigate retains video of all events for 10 days. For a complete list of recording options, consult the full config reference.

Step 6: Complete Configuration

At this stage, you should have a complete configuration that provides basic functionality. For further details, refer to the full config reference.

BuildReplayFunctions
Restack AI SDK
The framework for AI agents
Build reliable and accurate AI agents in code, capable of running and persisting month-lasting processes in the background.
Learn more ->

© 2023 北京元石科技有限公司 ◎ 京公网安备 11010802042949号