core: Generic RTSP Camera stopped working since 2024.11

The problem

My cam stopped working since 2024.11. I can confirm the upgrade is the issue since I rolled it back to check. It seems it is being forced to act as WebRTC

What version of Home Assistant Core has the issue?

2024.11.0

What was the last working version of Home Assistant Core?

2024.10.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Generic Cam

Diagnostics information

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.11.0",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "America/Sao_Paulo",
    "os_name": "Linux",
    "os_version": "6.6.31-haos-raspi",
    "supervisor": "2024.11.2",
    "host_os": "Home Assistant OS 13.2",
    "docker_version": "27.2.0",
    "chassis": "embedded",
    "run_as_root": true
  },
  "data": {
    "title": "192_168_0_6",
    "data": {},
    "options": {
      "stream_source": "rtsp://192.168.0.6/****",
      "rtsp_transport": "tcp",
      "authentication": "basic",
      "username": "**REDACTED**",
      "password": "**REDACTED**",
      "framerate": 2.0,
      "verify_ssl": false,
      "content_type": "image/jpeg",
      "limit_refetch_to_url_change": false
    }
  }
}

Anything in the logs that might be useful for us?

Logger: homeassistant.components.stream.stream.camera.192_168_0_6
Source: components/stream/__init__.py:448
integration: Stream (documentation, issues)
First occurred: 9:49:57 AM (8 occurrences)
Last logged: 9:54:39 AM

Error from stream worker: Error opening stream (ERRORTYPE_1, Operation not permitted, rtsp://****:****@192.168.0.6/user=admin_password=****_channel=1_stream=0.sdp)
Logger: aiohttp.server
Source: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:448
First occurred: 9:49:48 AM (1 occurrences)
Last logged: 9:49:48 AM

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 559, in _handle
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 210, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/generic/config_flow.py", line 513, in get
    image = await _async_get_image(
            ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 233, in _async_get_image
    raise HomeAssistantError("Unable to get image")
homeassistant.exceptions.HomeAssistantError: Unable to get image
Logger: homeassistant
Source: helpers/entity.py:987
First occurred: 9:49:48 AM (1 occurrences)
Last logged: 9:49:48 AM

Error doing job: Exception in callback Stream._async_update_state(True) (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/components/stream/__init__.py", line 378, in _async_update_state
    self._update_callback()
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 906, in async_write_ha_state
    super().async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1004, in async_write_ha_state
    self._async_verify_state_writable()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 987, in _async_verify_state_writable
    raise NoEntitySpecifiedError(
homeassistant.exceptions.NoEntitySpecifiedError: No entity id specified for entity preview
Logger: homeassistant.components.stream.stream.camera.192_168_0_6
Source: components/stream/__init__.py:448
integration: Stream (documentation, issues)
First occurred: 5:58:31 PM (4 occurrences)
Last logged: 5:59:36 PM

Error from stream worker: Error opening stream (INVALIDDATA, Invalid data found when processing input, rtsp://****:****@192.168.0.6/user=admin_password=*****_channel=1_stream=0.sdp)
Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused, rtsp://****:****@192.168.0.6/user=admin_password=a*****_channel=1_stream=0.sdp)

Additional information

image

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 23 (7 by maintainers)

Most upvoted comments

Fort those who still are having issues, I found a solution.

Be careful if you don’t know what you’re doing.

Go to the .storage folder and open the core.config_entries file.

Find the integration go2rtc and locate the key "disabled_by":null.

Replace it with "disabled_by":"user".

Restart HA.

Fort those who still are having issues, I found a solution.

Be careful if you don’t know what you’re doing.

Go to the .storage folder and open the core.config_entries file.

Find the integration go2rtc and locate the key "disabled_by":null.

Replace it with "disabled_by":"user".

Restart HA.

OMG man, you made my day. I almost delete everything and start from beginning for about 4 years work. You really champion, I don’t know why no body one mentioned this before. I did the change and the cameras working after restart directly like before. I never opened the core files before, so needed to install samba addon and then from PC done the edit. Thank you again and really I’m so happy now

I have the same problem, have you found any solution? Screenshot_1

No I’m sorry I couldn’t find any solution. I did tried the Dec update as well and same problem. Just rolled back to Oct core to solve the issue. I have no idea why nobody one talking about this problem and how to solve it (I meant the people who are they on YouTube which they are pro and know much more than us). Very bad update, what is the benefit to get something good while losing another thing good. Hope someone will resolve the issue then I will update the post.

I only faced this issue when using a public hostname (i.e. myha.com) vs. a local address (192.168.1.xxx). I’m not sure what’s missing but appears to be a port forward required.

This is not good, we don’t need to open ports for the camera and specially it wasn’t like this problem before Nov update. I downgrade my home assistant with my Oct core backup and working fine no problem at all. That’s mean the Nov update was something missing in it. Waiting for the Dec update and check then update here.