Ring video stops working

Hi - First post, HA noob here, just started two days ago. I have a few Ring cameras (doorbell, indoor stickup, etc.). Fresh install of HA, Ring devices not auto-discovered. I manually add the Ring integration and it works flawlessly. All cameras are there and previews automatically show up on the Overview dashboard.

Almost three minutes later, the cameras stop working. The dashboard stops showing the previews. Clicking the video shows isn’t able to load the video and shows a broken image icon (failed to load kind of thing).

image

If I go to the Integrations page and “reload” the Ring integration, it works again, but fails again in a minute. I checked the network tab in the browser and I can see HA polling http://homeassistant.local:8123/api/camera_proxy/camera.front_door?authSig={encrypted}. The GET calls used to succeed with a 200 OK and are not failing with a 500 Internal Server Error. I can reload the integration in another tab and the API calls start working again. My personal guess is either rate-limiting or auth/token issues, but I’m not an expert.

Tried removing and adding the integration again, rebooting HA, etc. none worked. There are a couple of issues on GitHub with no answers. Couldn’t find anything related here.

Anyone else here facing this? Is there a workaround?

FWIW, I’m running HA OS 6.1 with supervisor-2021.6.6 on Linux 5.10.45 on an Intel NUC i5.

Hi
Since the last update (Home Assistant OS 6.1)
I’m having the same issue.
I’m getting a picture once the ring camera record a new motion alert video but for some reason the image disappear after a couple of minutes.
I have tried all the things you tried and even some more to solve the issue unfortunately with no success yet.

Quick update: I noticed that when the camera captures new videos (whether on-demand due to motion detection, or manually in live-feed), they show up in HA for a few minutes before vanishing again. It’s as if capturing a new video does what a manual reload of the Ring integration does. Weird!

1 Like

Long term lurker but I’ve joined up the forums recently as I’ve been trying to improve my HASS setup to share a little more with people who ask me about it. I have had some version challenges of late and had to do a restore, but on 2021.1.5 and latest OS 6.6 I’m having the same challenges with my Ring glance cards that have previously worked (but have always been a little flaky).

The entity glance card gives an option of “Auto” or “Live” video, and it did previously step through a slo-mo/frame step of the most recent camera/doorbell event on the “Live” setting, but neither setting now works and I have the same error as OP

Yeah, I’m also noticing the lack of Ring doorbell previews in the ‘picture entity’ card. Haven’t found a solution yet. 2021.6.6 Core + 2021.06.6 Supervisor + 6.1 Host versions on Pi4.

Edit: There don’t seem to be any obviously similar bug reports on Github. I’ll file one tomorrow if I have a chance.

1 Like

I keep getting similar issues but I’m running 2021.4.1.

Here’s an error that populated when I tried to load the camera

Logger: aiohttp.server
Source: components/ring/camera.py:136
First occurred: 8:42:24 (1 occurrences)
Last logged: 8:42:24

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 74, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 129, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 131, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 498, in get
    return await self.handle(request, camera)
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 533, in handle
    return await camera.handle_async_mjpeg_stream(request)
  File "/usr/src/homeassistant/homeassistant/components/ring/camera.py", line 136, in handle_async_mjpeg_stream
    await stream.close()
  File "/usr/local/lib/python3.8/site-packages/haffmpeg/core.py", line 158, in close
    await self._loop.run_in_executor(None, _close)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.8/site-packages/haffmpeg/core.py", line 153, in _close
    self._proc.stdin.write(b"q")
BrokenPipeError: [Errno 32] Broken pipe

Hi Scott,

I was wondering if you had opened an issue for this? I had a quick look and couldn’t see it but just wanted to be sure before I opened one.

Edit: Just having a proper look through the current open issues and this one appears to cover this issue: Camera.entity: "camera.front_door" Ring Camera preview isn't working , other enities work fine. · Issue #47550 · home-assistant/core · GitHub.

It mentions re-loading the integration as a stop gap for the issue as mentioned earlier in this thread. I have just tried this and it seems to work. There is also an automation in the GitHub ticket to automatically reload every 45 seconds until the issue is fixed.

Cheers

1 Like

Similar to above, I’m curious if anybody ever opened a ticket for this?

I’ve looked into it further and found that the ‘Entity Picture’ api url doesn’t work, give the error

‘500: Internal Server Error’
image

I’m also using the downloader which is working fine…

Any updates? I can’t even load the video entity anymore, was working fine a few versions ago