question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1 out of 2 Blinks not showing up post 0.80

See original GitHub issue

I updated to HASS 0.80 and everything seemed to work fine. A few restarts later and the camera refuses to function. I stripped down the config to just username and password and it still is unresponsive. Within HASS, the battery status is for the camera is displayed as -100.

The HASS log shows this: Unexpected exception Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/homeassistant/components/websocket_api/decorators.py", line 16, in _handle_async_response await func(hass, connection, msg) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/camera/__init__.py", line 462, in websocket_camera_thumbnail image = await async_get_image(hass, msg['entity_id']) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/camera/__init__.py", line 93, in async_get_image image = await camera.async_camera_image() File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/camera/blink.py", line 76, in camera_image return self._camera.image_from_cache.content AttributeError: 'NoneType' object has no attribute 'content'

and

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 390, in start resp = await self._request_handler(request) File "/usr/local/lib/python3.6/site-packages/aiohttp/web_app.py", line 366, in _handle resp = await handler(request) File "/usr/local/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 106, in impl return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/static.py", line 66, in staticresource_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/auth.py", line 68, in auth_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/auth.py", line 68, in auth_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/view.py", line 113, in handle result = await result File "/usr/local/lib/python3.6/site-packages/homeassistant/components/camera/__init__.py", line 406, in get return await self.handle(request, camera) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/camera/__init__.py", line 423, in handle image = await camera.async_camera_image() File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/camera/blink.py", line 76, in camera_image return self._camera.image_from_cache.content AttributeError: 'NoneType' object has no attribute 'content'

Repeating every minute or so post startup.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
b10mcommented, Oct 15, 2018

Just a thought: for the camera that is not displaying correctly, could you do the following?

  1. Enable motion detection
  2. Walk in front of the camera to trigger a motion event
  3. Check if the issue is fixed

The video api changed at some point, and so we grab thumbnails and video from the new api endpoint. If any recorded videos haven’t been stored at that new endpoint, we would never return updated values for the camera. Even if that’s the case and the steps above fix it, it’s a bug, but at least I’d know where to look to fix it.

The /homescreen request returns an thumbnail value for each camera as well. Could that be used if no videos are found? I actively remove the videos, so most of my cams don’t have any videos on the server. This prevents users from manually triggering the motion detection to “make it work”.

1reaction
colecash122commented, Oct 13, 2018

I just followed your retriggering steps and it worked. Makes sense as that cam is only armed when away for long periods of time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Power turned on after long amber light blinking 2-1, 2-1
1 person had this problem. 2 blinks followed by a short pause, 1 blink, long pause, then repeats. Replace the motherboard.
Read more >
Success Criterion 2.3.1 Three Flashes or Below Threshold ...
Flashing can be caused by the display, the computer rendering the image or by the content being rendered. The author has no control...
Read more >
0.80: Lovelace updates, webhooks, TRÅDFRI switches
i'm getting no errors, but my camera images and all the sensor data is gone and in the configurator none of the entity_ids...
Read more >
Troubleshoot connection errors during Nest × Yale Lock ...
The error messages that might appear when your lock has trouble connecting include: “Can't find your Nest product”; “Can't connect to the lock”;...
Read more >
What To Do About A Blinking Light On Your Garage Door ...
1 Up Arrow Flash/2 Down Arrow Flashes: There is a short in the wiring or the wires for the safety sensor have been...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found