Ubiquiti UniFi Video

The uvc camera integration集成将 Home Assistant 与您的设备、服务等连接和集成。 [Learn more] allows you to integrate UniFi Video Camera (UVC) into Home Assistant.

The platform connects to the UniFi NVR software and automatically discovers/adds any camera connected to the NVR.

Setup

It is recommended that you create a new user for this integration集成将 Home Assistant 与您的设备、服务等连接和集成。 [Learn more] in the NVR software and only give the user the permissions it need to operate.

  • The API key is found in User -> My account -> API Access in the NVR software.
  • The camera password is found in Settings -> Camera Settings -> Camera Password in the NVR software.

Configuration

To use the integration集成将 Home Assistant 与您的设备、服务等连接和集成。 [Learn more] in your installation, add the following to your configuration.yamlconfiguration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] file. 在更改了configuration.yamlconfiguration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] 文件后,重启 Home Assistant 以应用更改。 该集成现在显示在集成页面的 设置 > 设备与服务 下。其实体在集成卡片上以及实体标签上列出。

# Example configuration.yaml entry
camera:
  - platform: uvc
    nvr: IP_ADDRESS
    key: API_KEY

Configuration Variables

nvr string Required

The IP or hostname of the NVR (Network Video Recorder) server.

port integer (Optional, default: 7080)

The port number to use for accessing the NVR.

key string Required

The API key available from the NVR web interface.

password string (Optional, default: ubnt)

The camera password.

ssl boolean (Optional, default: false)

Should use SSL/TLS to connect to the NVR.

Important

When using an API_KEY to access cameras controlled by Ubiquiti’s NVR Software, the associated user account MUST have at least Administrator privileges within the NVR Software in order for new cameras to be added into Home Assistant. Once the entities have been created in Home Assistant, privileges for the user account can be lowered.