mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Adds docs for the unifiprotect media_player platform (#20966)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
2846d6ce45
commit
6055675683
@ -4,6 +4,7 @@ description: Instructions on how to configure UniFi Protect integration by Ubiqu
|
||||
ha_category:
|
||||
- Hub
|
||||
- Camera
|
||||
- Media Player
|
||||
ha_release: 2022.2
|
||||
ha_iot_class: Local Push
|
||||
ha_config_flow: true
|
||||
@ -15,6 +16,7 @@ ha_codeowners:
|
||||
ha_domain: unifiprotect
|
||||
ha_platforms:
|
||||
- camera
|
||||
- media_player
|
||||
---
|
||||
|
||||
The UniFi Protect integration, adds support for retrieving Camera feeds and Sensor data from an [UniFi Protect application](https://ui.com/camera-security) by [Ubiquiti Networks, inc.](https://www.ui.com/) that is running on an UniFi OS Console.
|
||||
@ -36,7 +38,7 @@ CKGP with Firmware v1.x **do NOT run UniFiOS**, you must upgrade to firmware v2.
|
||||
|
||||
The absolute **minimal** software version is `1.20.0` for UniFi Protect. If you have an older version, you will get errors trying to set up the integration. However, the general advice is the latest 2 minor versions of UniFi Protect and hardware supported by those are supported. Since UniFi Protect has its own release cycle, you should only upgrade UniFi Protect _after_ the next Home Assistant release comes out to ensure the new version is fully supported.
|
||||
|
||||
Example: as of `2022.2.0` of Home Assistant, UniFi Protect `1.21.0-beta.1` is the newest UniFi Protect version. So the recommended versions of UniFi Protect to run for a `2022.2.0` version of Home Assistant are `1.20.0`, `1.20.1` or `1.21.0-beta.1`.
|
||||
Example: as of `2022.2.0` of Home Assistant, UniFi Protect `1.21.0-beta.2` is the newest UniFi Protect version. So the recommended versions of UniFi Protect to run for a `2022.2.0` version of Home Assistant are `1.20.0`, `1.20.1`, `1.20.2`, `1.20.3`, `1.21.0-beta.1`, or `1.21.0-beta.2`.
|
||||
|
||||
### Local User
|
||||
|
||||
@ -74,11 +76,27 @@ All known UniFi Protect devices are should be supported. Each UniFi Protect devi
|
||||
Each UniFi Protect camera will get the following entities added:
|
||||
|
||||
* **Camera** - A camera entity for each camera channel and RTSP(S) combination found for each camera (up to 6). Only the highest resolution RTSPS camera entity will be enabled by default.
|
||||
* **Media Player** - If your camera has a speaker, you will get a media player entity that allows you to play audio to your camera's speaker. Any audio file URI that is playable by FFmpeg will be able to be played to your speaker, including via the [TTS Say Service](https://www.home-assistant.io/integrations/tts/#service-say).
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Enabling Debug Logging
|
||||
|
||||
Both the UniFi Protect integration and the Python library it uses provide a ton of debug logging that can help you with troubleshooting connectivity issues. To enable debug logging for both, add the following to your `configuration.yaml` file:
|
||||
|
||||
```yaml
|
||||
logger:
|
||||
logs:
|
||||
pyunifiprotect: debug
|
||||
homeassistant.components.unifiprotect: debug
|
||||
```
|
||||
|
||||
### Delay in Video Feed
|
||||
|
||||
The default settings on the stream integration will give you a 5-15+ second delay. You can reduce this delay to 1-3 seconds, by enabling [LL-HLS in the stream integration](/integrations/stream/#ll-hls). You will also want to put an HTTP/2 reserve proxy in front of Home Assistant so you can have connection pooling. If you do not add a reverse proxy, you may start to get "Waiting for Websocket..." messages while trying to view too many camera streams at once. One way to do this is using the official NGINX Proxy Add-on:
|
||||
|
||||
[](https://my.home-assistant.io/redirect/supervisor_addon/?addon=core_nginx_proxy)
|
||||
|
||||
### Cannot Play Audio to Speakers
|
||||
|
||||
Unlike with many other things, playing audio to your speakers requires your Home Assistant to be able to reach your camera directly. Specifically via port `tcp/7004`. You can [enable debug logging](#enabling-debug-logging) and it will output the full FFmpeg command that will be run and the output from FFmpeg to help you troubleshoot why audio is not playing to the device.
|
||||
|
Loading…
x
Reference in New Issue
Block a user