Blink Integration stopped working and can't login

I have made these manual updates and was able to get re-connected (thanks @fronzbot @dels78).

Is anyone else having issues with the actual sensor/entity updates? I am seeing lots of these types of errors in the logs. I am also now unable to toggle motion (per camera).

2020-07-14 09:24:55 ERROR (MainThread) [homeassistant.helpers.entity] Update for binary_sensor.blink_XXXX_XXXXX_motion_detected fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 272, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update
    self.update  # 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/src/homeassistant/homeassistant/components/blink/binary_sensor.py", line 59, in update
    self.data.refresh()
  File "/usr/local/lib/python3.7/site-packages/blinkpy/helpers/util.py", line 203, in wrapper
    result = method(*args, *kwargs)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/blinkpy.py", line 242, in refresh
    sync_module.refresh(force_cache=force_cache)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/sync_module.py", line 159, in refresh
    self.get_network_info()
  File "/usr/local/lib/python3.7/site-packages/blinkpy/sync_module.py", line 148, in get_network_info
    self.network_info = api.request_network_status(self.blink, self.network_id)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/api.py", line 93, in request_network_status
    return http_get(blink, url)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/api.py", line 301, in http_get
    is_retry=is_retry,
  File "/usr/local/lib/python3.7/site-packages/blinkpy/helpers/util.py", line 104, in http_req
    if json_resp and "code" in response.json():
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/local/lib/python3.7/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)

2020-07-14 09:29:34 ERROR (MainThread) [homeassistant.helpers.entity] Update for binary_sensor.blink_XXXX_XXXXX_camera_armed fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 272, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update
    self.update  # 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/src/homeassistant/homeassistant/components/blink/binary_sensor.py", line 59, in update
    self.data.refresh()
  File "/usr/local/lib/python3.7/site-packages/blinkpy/helpers/util.py", line 203, in wrapper
    result = method(*args, *kwargs)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/blinkpy.py", line 242, in refresh
    sync_module.refresh(force_cache=force_cache)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/sync_module.py", line 159, in refresh
    self.get_network_info()
  File "/usr/local/lib/python3.7/site-packages/blinkpy/sync_module.py", line 148, in get_network_info
    self.network_info = api.request_network_status(self.blink, self.network_id)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/api.py", line 93, in request_network_status
    return http_get(blink, url)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/api.py", line 301, in http_get
    is_retry=is_retry,
  File "/usr/local/lib/python3.7/site-packages/blinkpy/helpers/util.py", line 104, in http_req
    if json_resp and "code" in response.json():
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/local/lib/python3.7/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)

2020-07-14 09:32:49 ERROR (MainThread) [homeassistant.components.script] blink_driveway_motion_on: Error executing script. Unexpected error for call_service at pos 1: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 153, in _async_step
    self, f"_async_{cv.determine_script_action(self._action)}_step"
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 656, in _async_call_service_step
    *self._prep_call_service_step(), blocking=True, context=self._context
  File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service
    self._platforms.values(), func, call, required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 595, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 437, in async_enable_motion_detection
    await self.hass.async_add_executor_job(self.enable_motion_detection)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/blink/camera.py", line 69, in enable_motion_detection
    self._camera.set_motion_detect(True)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/camera.py", line 88, in set_motion_detect
    self.sync.blink, self.network_id, self.camera_id
  File "/usr/local/lib/python3.7/site-packages/blinkpy/helpers/util.py", line 203, in wrapper
    result = method(*args, *kwargs)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/api.py", line 265, in request_motion_detection_enable
    return http_post(blink, url)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/api.py", line 316, in http_post
    blink, url=url, headers=blink.auth_header, reqtype="post", is_retry=is_retry
  File "/usr/local/lib/python3.7/site-packages/blinkpy/helpers/util.py", line 104, in http_req
    if json_resp and "code" in response.json():
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/local/lib/python3.7/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)
2020-07-14 09:32:49 ERROR (MainThread) [homeassistant.components.automation] Blink Driveway Motion On/Off: Error executing script. Unexpected error for call_service at pos 1: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 153, in _async_step
    self, f"_async_{cv.determine_script_action(self._action)}_step"
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 656, in _async_call_service_step
    *self._prep_call_service_step(), blocking=True, context=self._context
  File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 204, in service_handler
    await script.async_turn_on(variables=service.data, context=service.context)
  File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 280, in async_turn_on
    await self.script.async_run(kwargs.get(ATTR_VARIABLES), context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 831, in async_run
    await run.async_run()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 555, in async_run
    await self._async_run()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 572, in _async_run
    await self._async_step(log_exceptions=not propagate_exceptions)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 153, in _async_step
    self, f"_async_{cv.determine_script_action(self._action)}_step"
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 656, in _async_call_service_step
    *self._prep_call_service_step(), blocking=True, context=self._context
  File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service
    self._platforms.values(), func, call, required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 595, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 437, in async_enable_motion_detection
    await self.hass.async_add_executor_job(self.enable_motion_detection)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/blink/camera.py", line 69, in enable_motion_detection
    self._camera.set_motion_detect(True)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/camera.py", line 88, in set_motion_detect
    self.sync.blink, self.network_id, self.camera_id
  File "/usr/local/lib/python3.7/site-packages/blinkpy/helpers/util.py", line 203, in wrapper
    result = method(*args, *kwargs)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/api.py", line 265, in request_motion_detection_enable
    return http_post(blink, url)
  File "/usr/local/lib/python3.7/site-packages/blinkpy/api.py", line 316, in http_post
    blink, url=url, headers=blink.auth_header, reqtype="post", is_retry=is_retry
  File "/usr/local/lib/python3.7/site-packages/blinkpy/helpers/util.py", line 104, in http_req
    if json_resp and "code" in response.json():
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/local/lib/python3.7/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)

Hi,

Keen to get my blink working again. I see there has been a release today, but the https://version.home-assistant.io/stable.json file is still pointing to the 0.112.4 release. Expect an update on this soon?

Thanks

To tag onto my previous post, every time I do a HA restart, my entire Blink integration gets nullified. All of the entities. I have to then delete the integration, restart HA agin, and then add it back.

Anyone else experiencing this?

I have been waiting for 0.112.5 to show up in the supervisor. It was released 17 hrs ago. Tried a manual update but no joy. :frowning:

Same here! I don’t know if minor releases like 0.112.5 show up in the Supervisor. Maybe we’ll have to wait for 0.113 :frowning:

Aha, so it seems there was a build fail and they are holding off until 0.113 … see this post

1 Like

The issue kicked in for me this morning after a reboot. Implemented the fix and all is working perfectly again. Thanks @fronzbot

Did this get added to the 0.113.0b0 beta that is released now? I missed it if its in the notes.

It does appear so, I went ahead with the beta and I has blink! Thanks so much @fronzbot!

Hi I’m new here and was just wondering if this was still working? I am on Home Assistant version 0.113.0b3 with docker container on UnRaid server (all files reflect the blinkpy==0.15.1 changes.) I get passed the login username/password however the 2FA is never emailed to me. I tried to read through everything but can’t get it to work, sorry if the fix was already mentioned.

The first thing to check is to see if your email is verified. 2FA will not work with blink without verified email. In your blink app go to settings and manage account. There you should see a little check mark, like in the below screenshot.

Thanks. This is all new to me, so some searching to figure out how to edit and save (after trying to figure out how to access this from VirtualBox on Windows) and was able to successfully get this to work thanks to your instructions. Old dog and new tricks is hard.

Okay, while I was able to get integration back, the binary motion sensor isn’t showing, but it appears and old lingering version is there. Is this part of the integration issue or something separate?

Thank you for the response, my email in the app is verified. Resetting my password or logging into the blink app does trigger the pin to be sent via email, just doesn’t send the email when trying to authenticate from the HA container Blink module.

Is the Blink integration broken for you then? Like nothing shows up? Is there anything in your logs specifically related to Blink?

I just set up HA a few days ago to see how it compares to what I have with SmartThings. I haven’t been able to get Blink integrated yet due to this issue and as of today after I get passed the username/password it just responds with “Aborted.” I can terminal into the container and find the Blink integration however am unsure where the logs would be located if its never successfully been integrated. I just wanted to respond because you responded back, but I think I’m going to drop HA because even my August lock integration has issues, also it doesn’t find my garage controller. I understand HA requires some tinkering, don’t think I’m ready to dive into this yet.

Upgraded to 113 and Blink came back. Today I saw Blink was unavailable. Restarted to no avail. Removed integration and when readding I get unexpected error. What gives? How to troubleshoot?

Logger: homeassistant.components.blink.config_flow

Source: components/blink/config_flow.py:23
Integration: Blink (documentation, issues)
First occurred: 16:08:30 (2 occurrences)
Last logged: 16:08:57

Unexpected exception

`

Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/blink/config_flow.py”, line 75, in async_step_user response = await validate_input(self.hass, self.blink) File “/usr/src/homeassistant/homeassistant/components/blink/config_flow.py”, line 23, in validate_input response = await hass.async_add_executor_job(blink.get_auth_token) 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/blinkpy/blinkpy.py”, line 176, in get_auth_token self.setup_params(self.login_response) File “/usr/local/lib/python3.7/site-packages/blinkpy/blinkpy.py”, line 189, in setup_params self.networks = self.get_networks() File “/usr/local/lib/python3.7/site-packages/blinkpy/blinkpy.py”, line 195, in get_networks response = api.request_networks(self) File “/usr/local/lib/python3.7/site-packages/blinkpy/api.py”, line 82, in request_networks return http_get(blink, url) File “/usr/local/lib/python3.7/site-packages/blinkpy/api.py”, line 301, in http_get is_retry=is_retry, File “/usr/local/lib/python3.7/site-packages/blinkpy/helpers/util.py”, line 104, in http_req if json_resp and “code” in response.json(): File “/usr/local/lib/python3.7/site-packages/requests/models.py”, line 898, in json return complexjson.loads(self.text, **kwargs) File “/usr/local/lib/python3.7/site-packages/simplejson/init.py”, line 525, in loads return _default_decoder.decode(s) File “/usr/local/lib/python3.7/site-packages/simplejson/decoder.py”, line 370, in decode obj, end = self.raw_decode(s) File “/usr/local/lib/python3.7/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)

`

Same problem. I manual fixed the integration in 0.112.4, but with upgrade to 0.113.0 the integration stopped and I’ve got a lot of errors in log like this:

Logger: homeassistant.helpers.entity
Source: components/blink/binary_sensor.py:59
First occurred: 17:13:35 (408 occurrences)
Last logged: 17:30:06

Update for binary_sensor.blink_giardino3_camera_armed fails
Update for binary_sensor.blink_giardino3_motion_detected fails
Update for binary_sensor.blink_giardino4_battery fails
Update for binary_sensor.blink_giardino4_camera_armed fails
Update for binary_sensor.blink_giardino4_motion_detected fails
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 272, in async_update_ha_state
await self.async_device_update()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 465, in async_device_update
await self.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/binary_sensor.py”, line 59, in update
self.data.refresh()
File “/usr/local/lib/python3.8/site-packages/blinkpy/helpers/util.py”, line 203, in wrapper
result = method(*args, *kwargs)
File “/usr/local/lib/python3.8/site-packages/blinkpy/blinkpy.py”, line 242, in refresh
sync_module.refresh(force_cache=force_cache)
File “/usr/local/lib/python3.8/site-packages/blinkpy/sync_module.py”, line 159, in refresh
self.get_network_info()
File “/usr/local/lib/python3.8/site-packages/blinkpy/sync_module.py”, line 148, in get_network_info
self.network_info = api.request_network_status(self.blink, self.network_id)
File “/usr/local/lib/python3.8/site-packages/blinkpy/api.py”, line 93, in request_network_status
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 wanted to add another data point. I’m pretty new to HA as well. I have my install on Home Assistant OS and have never had my blink camera connected before. I’m on 0.113.0 and I have a verified blink email address. When I go to the integrations and type in my email and password for blink, I never get an email. I can try to change my password in my blink account and I’ll instantly get a pin email for changing my password, but nothing for trying to tie integration together.

Now Blink works: I deleted browser_mod https://github.com/thomasloven/hass-browser_mod and restarted HA and it’s working. I’m not a software maker, but it doesn’t seem a simply coincidence.