Blink now stopped workinG

Getting an error in the log

Home Assistant
0.65.6
been working perfectly and no change in config entry. Did update to 65.5 tho… Please can anyone help?

Thu Mar 22 2018 10:15:59 GMT+0000 (GMT Standard Time)

Error during setup of component blink
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/setup.py”, line 145, in _async_setup_component
component.setup, hass, processed_config)
File “/usr/lib/python3.6/asyncio/futures.py”, line 332, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.6/asyncio/tasks.py”, line 250, in _wakeup
future.result()
File “/usr/lib/python3.6/asyncio/futures.py”, line 245, in result
raise self._exception
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.6/site-packages/homeassistant/components/blink.py”, line 56, in setup
hass.data[DOMAIN] = BlinkSystem(config)
File “/usr/lib/python3.6/site-packages/homeassistant/components/blink.py”, line 51, in init
self.blink.setup_system()
File “/usr/lib/python3.6/site-packages/blinkpy.py”, line 313, in setup_system
self.get_ids()
File “/usr/lib/python3.6/site-packages/blinkpy.py”, line 365, in get_ids
response = _request(self, url=url, headers=headers, reqtype=‘get’)
File “/usr/lib/python3.6/site-packages/blinkpy.py”, line 44, in _request
if json_resp and ‘code’ in response.json():
File “/usr/lib/python3.6/site-packages/requests/models.py”, line 892, in json
return complexjson.loads(self.text, **kwargs)
File “/usr/lib/python3.6/site-packages/simplejson/init.py”, line 518, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.6/site-packages/simplejson/decoder.py”, line 370, in decode
obj, end = self.raw_decode(s)
File “/usr/lib/python3.6/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)

Not working for me either suddenly. Im running 0.62.1. Has something changed at Blink’s end?

My Synchub keeps going offline for some reason, so it could be something their end (I am not using the Blink integration in HA so can’t comment on that specifically).

I know there’s a new blinkpy version, but that’s currently not working with home assistant yet. An easy fix to get things working for now is to open blinkpy.py (I have it stored under /srv/homeassistant/lib/python3.6/site-packages/) and change line 81:

from: self.base_url = 'https://' + region_id + '.' + BLINK_URL

to: self.base_url = "https://rest.{}.{}".format(region_id, BLINK_URL)

1 Like

actually the line number might be slightly different for I’ve been hacking that file in the past…

Same error for me. I’m on 0.63.2.

Thanks b10m - resolved for 0.65.3 (Python 3.6 VENV)
Error appeared after rebooting my NUC running Ubuntu after some updates.

Thanks for this. I updated it and got it working on one installation on 0.65.5 but on another installation on 0.63.2 there is no trace of blinkpy.py! Why could that be and how can I resolve please?

It has to be somewhere, look at the error log for more info.