Error during setup Blink camera system

Hi,

I try to connect my new Blink XT camera system to HA. But I get an error in the logs:

2019-05-25 17:04:13 ERROR (MainThread) [homeassistant.setup] Error during setup of component blink Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/homeassistant/setup.py", line 156, in _async_setup_component component.setup, hass, processed_config) # type: ignore File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.7/site-packages/homeassistant/components/blink/__init__.py", line 93, in setup hass.data[BLINK_DATA].start() File "/usr/local/lib/python3.7/site-packages/blinkpy/blinkpy.py", line 105, in start sync_module.start() File "/usr/local/lib/python3.7/site-packages/blinkpy/sync_module.py", line 116, in start force=True) File "/usr/local/lib/python3.7/site-packages/blinkpy/camera.py", line 125, in update thumb_addr = self.get_thumb_from_homescreen() File "/usr/local/lib/python3.7/site-packages/blinkpy/camera.py", line 197, in get_thumb_from_homescreen for device in self.sync.homescreen['devices']: AttributeError: 'BlinkSyncModule' object has no attribute 'homescreen'

So the Blink componente does not appear in HA.
I’m using Hass.io 0.93.2

This is my entry in the configuration.yaml:

blink:
  username: YOUR_USERNAME
  password: YOUR_PASSWORD

Is it a bug in -HA or is there something I have to do myself?

Thanks

That looks like a bug in the library. Try this:

  1. In the blink app on your phone, click the camera button to take a picture.
  2. Once it displays on your screen, restart home assistant

That SHOULD get your blink integration working. Please let me know the results.

1 Like

Thank you!
It works now perfect!!

I had the exact same issue with a Blink XT outdoor camera and this worked perfectly, thanks.

I’ve been using Blink for a while in HA, and it stopped working the other day. I’ve tried the snapshot/restart trick a few times, but it still doesn’t work.

If I try load the URL that shows in the back trace (backtrack below) into my browser, it says that the certificate has expired.

Any other way to kickstart this?

Thanks!

2019-05-31 17:55:32 ERROR (SyncWorker_15) [blinkpy.helpers.util] Endpoint https://rest.u002.immedia-semi.com/api/v3/accounts/None/homescreen failed. Possible issue with Blink servers.
2019-05-31 17:55:32 ERROR (MainThread) [homeassistant.setup] Error during setup of component blink
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/setup.py", line 156, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/blink/__init__.py", line 93, in setup
    hass.data[BLINK_DATA].start()
  File "/usr/local/lib/python3.7/site-packages/blinkpy/blinkpy.py", line 95, in start
    camera_list = self.get_cameras()
  File "/usr/local/lib/python3.7/site-packages/blinkpy/blinkpy.py", line 202, in get_cameras
    for camera in response['cameras']:
TypeError: 'NoneType' object is not subscriptable

I am having this problem as well.
Tried the snapshot/restart, no success. My logs show the exact same thing.

I think it’s related to this issue

TLDR; Subdomain certs expired, Blink moved to new subdomains. This was already planned for in the component, but won’t be in until 0.94.0 in a few days (or you can install the latest beta, which also includes the fix, to see if it fixes the problem).

Blink is working for me in 0.94.
Thanks!

1 Like

That solution solved it for me as well!