Preview of Blink mini thumbnail
See original GitHub issueDescribe the bug When trying to preview the thumbnail of a blink mini in a picture card, no image is shown and errors are generated.
To Reproduce Steps to reproduce the behavior:
- Add a picture card with blink mini thumbnail to your dashboard
Expected behavior Show the last picture of the camera.
Home Assistant version (if applicable): Home Assistant 2022.4.0b3
blinkpy
version (not needed if filling out Home Assistant version):
0.19.0
Log Output/Additional Information I was hoping to be able to show images of the camera in my dashboard (as I already know, that i live view is not possible?)
I already updated Home Assistant, because of all the reports of a similar bug, but in my personal case (maybe I did anything wrong, as it never worked before and I just started with Home Assistant) it does not work.
Error when looking at the dashboard with the preview card: Logger: aiohttp.server Source: components/blink/camera.py:88 First occurred: 14:11:24 (124 occurrences) Last logged: 14:50:45
Error handling request `Logger: aiohttp.server Source: components/blink/camera.py:88 First occurred: 14:11:24 (124 occurrences) Last logged: 14:50:45
Error handling request Traceback (most recent call last): File “/home/homeassistant/.local/lib/python3.9/site-packages/aiohttp/web_protocol.py”, line 435, in _handle_request resp = await request_handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/aiohttp/web_app.py”, line 504, in _handle resp = await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/aiohttp/web_middlewares.py”, line 117, in impl return await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/security_filter.py”, line 60, in security_filter_middleware return await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/forwarded.py”, line 100, in forwarded_middleware return await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/request_context.py”, line 28, in request_context_middleware return await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/ban.py”, line 79, in ban_middleware return await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/auth.py”, line 219, in auth_middleware return await handler(request) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/view.py”, line 137, in handle result = await result File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py”, line 724, in get return await self.handle(request, camera) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py”, line 742, in handle image = await _async_get_image( File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py”, line 163, in _async_get_image if image_bytes := await camera.async_camera_image( File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py”, line 569, in async_camera_image return await self.hass.async_add_executor_job( File “/usr/lib/python3.9/concurrent/futures/thread.py”, line 52, in run result = self.fn(*self.args, **self.kwargs) File “/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/blink/camera.py”, line 88, in camera_image return self._camera.image_from_cache.content AttributeError: ‘NoneType’ object has no attribute ‘content’ `
Sometimes, but not when clicking on the button to trigger the camera, another error appears:
2022-04-03 13:48:52 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42e10d90>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:52 WARNING (SyncWorker_5) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42a1df40>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:52 WARNING (SyncWorker_2) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5a4df8b0>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:54 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42836670>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:54 WARNING (SyncWorker_5) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42e35850>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:54 WARNING (SyncWorker_2) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42e35ca0>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:58 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f41fe2af0>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:58 ERROR (SyncWorker_8) [blinkpy.auth] Connection error. Endpoint https://rest-e006.immedia-semi.com1648989584.jpg possibly down or throttled. 2022-04-03 13:48:58 WARNING (SyncWorker_5) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f41fe2f40>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:58 WARNING (SyncWorker_2) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f41fbeb80>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:58 ERROR (SyncWorker_5) [blinkpy.auth] Connection error. Endpoint https://rest-e006.immedia-semi.com1648989584.jpg possibly down or throttled. 2022-04-03 13:48:58 ERROR (SyncWorker_2) [blinkpy.auth] Connection error. Endpoint https://rest-e006.immedia-semi.com1648989584.jpg possibly down or throttled. 2022-04-03 13:50:40 ERROR (MainThread) [aiohttp.server] Error handling request
seems a bit like this
?
Issue Analytics
- State:
- Created a year ago
- Comments:19 (4 by maintainers)
Top GitHub Comments
well, as far as I can see, the problem is still there
I have 0.19.0 version installed.
Good news, when updating to version 2022.4 everything works again. Thank you very much