Blink Integration stopped working and can't login

Just wanted to state that I am also having the same ‘no email’ issue when attempting to setup the integration the first time. If anyone can shed any light on this, it would be appreciated.

  • running 0.113.1
  • Blink email is confirmed

Thanks!

1 Like

What happens with your “no email” issue? Not receiving an email is not necessarily indicative of a problem.

  • When you set up the component via the GUI, are you requested to input a verification code?

  • If yes, if you enter nothing and hit “Submit” what happens?

  • If no, do you receive any errors indicating the component could not be setup?

Hi Kevin,

  • I do receive the prompt to enter the code in my email, which never arrives
  • I have tried leaving it blank and just hitting submit, but it just returns to the ‘enter code’ prompt
  • I have verified that emails are not being blocked as I received emails for re-authenticating via the Blink app or if I change my password
  • I do not receive any errors via the GUI and I couldn’t see anything in the main logs (if there is somewhere specific I can look, please let me know)

Thanks!

2 Likes

Hello,
I have exactly the sale issue as @fullhack.
No mail, no logs.
Thanks

Hello, i have te same problem as @PoVPoV and @fullhack.
Does anyone known how to fix the problem ?
Thanks

My only guess is that the login endpoint being used is slowly being turned off for certain regions. I’ve since updated the login to use the correct 2FA endpoint (the one used before was a stop-gap until we found something that worked) but that is a work in progress as far as integration into home-assistant goes (see here: https://github.com/home-assistant/core/pull/38027). I’m hoping that the linked PR ends up fixing the problem, so as soon as it is merged and added to a beta version I’ll let you guys know so you have a chance to test.

Unfortunately, I can’t reproduce this behavior on my end, so that’s my best guess as of right now.

Hi,
I tried 0.16.1 but it doesn’t work either:

2020-07-30 12:53:03 WARNING (MainThread) [homeassistant.components.http] The 'base_url' option is depreca
ted, please remove it from your configuration
2020-07-30 12:53:16 WARNING (MainThread) [slixmpp.stringprep] Using slower stringprep, consider compiling
 the faster cython/libidn one.
2020-07-30 12:53:17 ERROR (SyncWorker_11) [blinkpy.login_handler] Failed to login to Blink servers.  Last
 response: <Response [426]>
2020-07-30 12:53:17 ERROR (SyncWorker_11) [blinkpy.login_handler] Failed to login to Blink servers.  Last
 response: <Response [426]>
2020-07-30 12:53:17 ERROR (SyncWorker_11) [blinkpy.helpers.util] Cannot obtain new token for server auth.
2020-07-30 12:53:18 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry blink for bl
ink
Traceback (most recent call last):
  File "/home/homeassistant/pyhass/lib/python3.7/site-packages/homeassistant/config_entries.py", line 220
, in async_setup
    hass, self
  File "/home/homeassistant/pyhass/lib/python3.7/site-packages/homeassistant/components/blink/__init__.py
", line 98, in async_setup_entry
    _blink_startup_wrapper, entry
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/pyhass/lib/python3.7/site-packages/homeassistant/components/blink/__init__.py
", line 66, in _blink_startup_wrapper
    blink.setup_params(entry.data["login_response"])
  File "/home/homeassistant/pyhass/lib/python3.7/site-packages/blinkpy/blinkpy.py", line 189, in setup_pa
rams
    self.networks = self.get_networks()
  File "/home/homeassistant/pyhass/lib/python3.7/site-packages/blinkpy/blinkpy.py", line 197, in get_netw
orks
    return response["summary"]
TypeError: 'NoneType' object is not subscriptable

Today the integration stopped working for me too, again.

I’m getting the following error.

Logger: homeassistant.config_entries
Source: components/blink/init.py:66
First occurred: 19:09:26 (1 occurrences)
Last logged: 19:09:26


Error setting up entry blink for blink
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 219, in async_setup
    result = await component.async_setup_entry(  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/blink/__init__.py", line 97, in async_setup_entry
    hass.data[DOMAIN][entry.entry_id] = await hass.async_add_executor_job(
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/blink/__init__.py", line 66, in _blink_startup_wrapper
    blink.setup_params(entry.data["login_response"])
  File "/usr/local/lib/python3.8/site-packages/blinkpy/blinkpy.py", line 189, in setup_params
    self.networks = self.get_networks()
  File "/usr/local/lib/python3.8/site-packages/blinkpy/blinkpy.py", line 195, in get_networks
    response = api.request_networks(self)
  File "/usr/local/lib/python3.8/site-packages/blinkpy/api.py", line 82, in request_networks
    return http_get(blink, url)
  File "/usr/local/lib/python3.8/site-packages/blinkpy/api.py", line 294, in http_get
    return http_req(
  File "/usr/local/lib/python3.8/site-packages/blinkpy/helpers/util.py", line 104, in http_req
    if json_resp and "code" in response.json():
  File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I also have seen the following error.

Logger: blinkpy.login_handler
Source: components/blink/init.py:66
First occurred: 19:23:00 (2 occurrences)
Last logged: 19:23:01

Failed to login to Blink servers. Last response: <Response [426]>

Any suggestion?

same as the last two posts above for me… I think this time we are SOL until the abovementioned fixed is in place. I tried bumping the version to 0.16.1 based on what I saw in the posts above but I believe that version of blinkpy will require the updates to the HA component as well to be valid, it doesn’t seem to just work as is.

EDIT: It seems blink did something really bad cause it looks like even the IFTTT integration won’t work. Another example of the best hardware possible implemented with crappy software… sigh

+1 My Blink integration is dead too…

Error in logs after a recent HA restart:

2020-07-30 13:25:23 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry blink for blink
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 219, in async_setup
    result = await component.async_setup_entry(  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/blink/__init__.py", line 97, in async_setup_entry
    hass.data[DOMAIN][entry.entry_id] = await hass.async_add_executor_job(
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/blink/__init__.py", line 66, in _blink_startup_wrapper
    blink.setup_params(entry.data["login_response"])
  File "/usr/local/lib/python3.8/site-packages/blinkpy/blinkpy.py", line 189, in setup_params
    self.networks = self.get_networks()
  File "/usr/local/lib/python3.8/site-packages/blinkpy/blinkpy.py", line 197, in get_networks
    return response["summary"]
TypeError: 'NoneType' object is not subscriptable

You can’t just upgrade the library like that. There were major breaking changes from 0.15 to 0.16 so it’s broken because of that. There’s already an open PR using the latest login endpoint (0.15 used a temporary stop-gap that worked but wasn’t quite correct).

If anyone comfortable with python wants to test to see if the latest version logs you in correctly, look at the quick start guide on my repo after upgrading to blinkpy==0.16.1 and report your results

Hi,

Same error too. It was when I updated HA core to the latest version 0.113.2

Regards,
Agustin.

Apologies for what is probably a stupid question - but where exactly is ‘your repo’ to find the quick start guide please?

I’ve edited the files to change to 0.16.1, but nothing has changed except that when I click on options in the integration panel I get a popup window saying ‘Please wait while the integration is being installed’ - never goes away though so I suspect the guide may tell me I’m supposed to do something else too ?

Thanks,
Ian

As mentioned in a previous comment: You can’t just upgrade the library like that. There were major breaking changes from 0.15 to 0.16 so now your integration is broken because of that (you won’t even be able to get to the login phase because methods have changed).

You can find the blinkpy repo here: https://github.com/fronzbot/blinkpy

Thanks for the link…

In fairness the integration was broken before I changed anything so very little is different from my point of view.

Sadly I don’t see what I’m supposed to do from the guide so I guess I’m going to be no help for you on this occasion.

Ian

Will reverting back to the previous version get us back up and running? I have snapshots I can pull and give it a shot.

No it won’t, unfortunately. The problem is with the login endpoint which has been updated already and is in the review process right now. Hoping to get it into the 0.114 beta, time permitting

1 Like

Dang! OK, cool… thanks for the head’s up and the continued awesomeness @fronzbot!

Not sure if this is something that has been spotted … just started getting this …

Failed to call service camera/disable_motion_detection. Expecting value: line 1 column 1 (char 0)

Am running Home Assistant 0.113.2

Thanks

There is a PR in work regarding this

3 Likes