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
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
I’ve been watching all the great work you’ve been doing with HA + Blink. Thank you! But let me ask you… is this going to die and/or I’ll have to wrestle with blink every other week? I just want something close to reliable Right now, it’s sitting around maybe 20% up and running er running to close to correct. If I need to switch cameras I can but if you think we’ll level off and be stable soon, I’ll stay. Again, thanks for all the hard work!!!
Hi,
as far as I understand it’s a problem of amazon we had with the alexa media player in a similar way. Amazon is changing it’s login procedures to 2FA and releases api changes, before all aspects have been thought to the end. And in addition to that, there is no warning of breaking changes like we are used to have them with HA. So they activating a new interface and over night — integration broken.
From my point of view I look forward and expect more reliable integrations for the next time.
Lets wait and pray
The bad luck in case of the blink integration is, that it lead to a breaking change in HA integration as well. They had to implement a new config flow. And so we can not expect the solution with just a minor release. I fear that we have to wait for 114.x.
That’s why we are beta users – we need the thrill
Yeah @Pirol62 pretty much nailed it. Historically, though, when Blink makes an API change they roll a bunch of changes out over a few months and then don’t change anything for while. To give some history on the library and integration:
- May 2017: Release
0.6.0
was the first “stable” release working for all regions (did not work with multiple sync modules though) - Nov 2018: Release
0.11.0
added support for multiple sync modules - Jan 2019: Blink changed video and login endpoints, fixed at the end of the month with
0.12.0
- May 2019: Blink changed the subdomains being used so
0.14.0
was released to support that - May 2020: Blink started rolling out 2FA,
0.15.0
released to support - July 2020: Blink started deprecating older endpoints to better support 2FA,
0.16.0
released to support
The big issue for the home-assistant integration is that between 0.15.0
and 0.16.0
I decided to refactor a LOT of the library code, not anticipating another change happening after the big one in May. As I was wrapping it up, and updating the home-assistant integration, the 0.15.x
versions broke and kind of left people hanging. Just really unfortunate timing.
This is great info, thank you ! I’m thinking of moving away from hassio so I can run my own updates/beta runs, etc. This way I’ll get to the newer code faster.