UVC Camera "does not support play stream service"

Hi there
I’ve been struggling with my Ubiquiti Unifi cameras. I’m trying to stream to my LG WebOS TV.
But it seems like the camera.play_stream servce won’t work for me. The cameras work just dandy and I get a preview in the Lovelace UI that streams lve from the cams.
Calling the service with the following data:

entity_id: camera.baghave
media_player: media_player.stue_lg_oled

Gets me the following error:

camera.baghave does not support play stream service

In the logs are the following:

2019-12-29 22:07:20 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140694875211728] camera.baghave does not support play stream service
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 133, in handle_call_service
    connection.context(msg),
  File "/usr/src/homeassistant/homeassistant/core.py", line 1235, in async_call
    await asyncio.shield(self._execute_service(handler, service_call))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 205, in handle_service
    self._platforms.values(), func, call, service_name, required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 336, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 360, in _handle_service_platform_call
    await func(entity, data)
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 671, in async_handle_play_stream_service
    f"{camera.entity_id} does not support play stream service"
homeassistant.exceptions.HomeAssistantError: camera.baghave does not support play stream service

I’ve enabled RTSP and RTMPS for the cameras in the Unifi Video interface. The [RTSP] URL’s from the Unifi Video interface works fine in VLC Media Player.

Any takes on what might be wrong?

Thanks in advance!

BTW, FWIW - the config or UVC:

# Unifi Video
camera:
  - platform: uvc
    nvr: 172.1X.1.Y
    key: !secret camera_key
    password: !secret camera_password
#    ssl: true

I believe you need to add the ‘stream’ component in configuration.yaml to enable camera.play_stream

# streaming component
stream:

Thanks.

Tried that, but to no avail :slightly_frowning_face: Error remains the same.

I have the same problem, did you ever find a solution?

Gave up :confused: sorry

Just in case someone is trying and not exactly sure what to do. It tripped me up for a bit.

  1. Go into you Unifi Controllerect
  2. Go to protect
  3. for each camera, in device | manage, turn on the RTSP steam

Go to Home Assistant, setup Unifi integration, put “stream:” in your config.yaml

restart and it works.

Doesn’t work. RTSP has already been enabled for years on my end.
Your solution might work en other scenarios.