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.

Cannot retrieve device status

See original GitHub issue

Describe the bug Exceptions raised upon attempting to retrieve camera sendir status

To Reproduce Steps to reproduce the behavior:

  1. Call blink.refresh()

Expected behavior Blink status obviously should be updated.

Home Assistant version (if applicable): 0.88.1

blinkpy version (not needed if filling out Home Assistant version): 0.12.0

Log Output/Additional Information If using home-assistant, please paste the output of the log showing your error below. If not, please include any additional useful information.

2019-02-28 18:18:38 ERROR (SyncWorker_1) [blinkpy.sync_module] Could not extract camera info: {'message': 'An app update is required'}
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/blinkpy/sync_module.py", line 127, in get_camera_info
    return response['devicestatus']
KeyError: 'devicestatus'



2019-02-28 23:05:06 ERROR (SyncWorker_35) [blinkpy.helpers.util] Endpoint https://prod.immedia-semi.com/login failed. Possible issue with Blink servers.
2019-02-28 23:05:06 ERROR (SyncWorker_35) [blinkpy.blinkpy] Login API endpoint failed with response None
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution


2019-02-28 23:05:26 ERROR (SyncWorker_25) [blinkpy.helpers.util] Endpoint https://rest.prod.immedia-semi.com/homescreen failed. Possible issue with Blink servers.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
fronzbotcommented, Mar 1, 2019

I have not been able to find an alternative endpoint equivalent for /network/*network_id*/cameras. However, I have found something that might help (provided a better equivalent endpoint cannot be found):

New homescreen endpoint /api/v3/accounts/*account*/homescreen

Response:

{'networks': [{'id': xxxxx, 'created_at': '2018-11-23T20:58:14+00:00', 'updated_at': '2019-03-01T13:44:40+00:00', 'name': 'xxxxx', 'time_zone': 'America/New_York', 'dst': True, 'armed': True}], 'sync_modules': [{'
id': xxxxx, 'created_at': '2018-11-23T20:58:27+00:00', 'updated_at': '2019-03-01T04:05:51+00:00', 'onboarded': True, 'status': 'online', 'name': 'xxxxxx', 'serial': 'xxxxx', 'fw_version': '2.10.5'
, 'last_hb': '2019-03-01T15:08:24+00:00', 'wifi_strength': 5, 'network_id': xxxxxx, 'enable_temp_alerts': True}], 'cameras': [{'id': xxxxxx, 'created_at': '2018-11-24T02:28:29+00:00', 'updated_at': '2019-03-01T14:41
:23+00:00', 'name': 'CameraKS', 'serial': 'xxxxxx', 'type': 'white', 'enabled': True, 'thumbnail': '/media/production/account/xxx/network/xxxx/camera/xxxxx/clip_97MXGzfP_2019_02_28__22_30PM', 'status': 'done'
, 'battery': 'ok', 'usage_rate': False, 'network_id': xxxxx}, {'id': xxxxx, 'created_at': '2019-01-15T23:43:17+00:00', 'updated_at': '2019-03-01T14:26:23+00:00', 'name': 'Camera1', 'serial': 'xxxxx', 'type': '
xt', 'enabled': True, 'thumbnail': '/media/production/account/xxxx/network/xxxx/camera/xxxx/clip_Feb9XkdM_2019_02_28__22_30PM', 'status': 'done', 'battery': 'ok', 'usage_rate': False, 'network_id': xxxxx}], 'si
rens': [], 'chimes': [], 'video_stats': {'storage': 0, 'auto_delete_days': 30}, 'doorbell_buttons': []}

Looks like all cameras for a single account can be grabbed at once via response['cameras'] so I’ll have to test that.

0reactions
johnwylescommented, May 29, 2021

LOL! I am sorry you took it hostile. It is the internet so my tone, inflection, and meaning certainly are harder to get across and my message was short so you certainly read into it far more than you should have. My note was not at all meant to agitate you but summarizing that the issue was closed 2 years prior and stating my own confusion on how I seemed to have a re-emergence of it: my system and devices are seemingly up-to-date. I will open this as a separate issue but it matched in search was why I thought it was the same error.

Added new issue about this: https://github.com/fronzbot/blinkpy/issues/481

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot Get Device Status or Use Department ID Management ...
If information exchange with the device, such as not being able to acquire device information, not having the department ID and PIN/password recognized, ......
Read more >
Canon - Get Device Status is failing - Spiceworks Community
Click "get properties" on the local machine. If the server doesn't know the properties of the printer, it can't pass them to the...
Read more >
Canon iR-ADV C5051 - Could not get device information
Try logging onto the client with an administrative account that has full rights granted on the server. Try using the Get Device Status...
Read more >
Retrieving the Status and Problem Code for a Device Instance
The Problem status property appears in the Property dropdown on the Details tab for the device in Device Manager. Using the debugger to...
Read more >
How Do I View a Device's Status in Windows? - Lifewire
From Device Manager, right-click the problem device and go to Properties > General tab. · The device status contains the current state of...
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