Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer able to set up the blink camera component #20335

Closed
jwater7 opened this issue Jan 23, 2019 · 8 comments · Fixed by #20351
Closed

No longer able to set up the blink camera component #20335

jwater7 opened this issue Jan 23, 2019 · 8 comments · Fixed by #20351

Comments

@jwater7
Copy link
Contributor

jwater7 commented Jan 23, 2019

Home Assistant release with the issue:

0.85.1

Last working Home Assistant release (if known):

Operating environment (Hass.io/Docker/Windows/etc.):

Docker

Component/platform:

https://www.home-assistant.io/components/camera.blink/

Description of problem:
With no changes to version or configuration, HA is no longer able to set up the blink camera and an "invalid config" notification is displayed on the UI with the message:

The following components and platforms could not be set up:
blink
Please check your config.

I tried upgrading to version 0.85.1 with no fix for the issue. I have a hunch that the Blink API changed.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

blink:
  username: !secret blink_username
  password: !secret blink_password

Traceback (if applicable):

Traceback (most recent call last):
  File "/usr/src/app/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/blink/__init__.py", line 100, in setup
    hass.data[BLINK_DATA].start()
  File "/usr/local/lib/python3.6/site-packages/blinkpy/blinkpy.py", line 83, in start
    sync_module.start()
  File "/usr/local/lib/python3.6/site-packages/blinkpy/sync_module.py", line 99, in start
    self.videos = self.get_videos()
  File "/usr/local/lib/python3.6/site-packages/blinkpy/sync_module.py", line 148, in get_videos
    camera_name = entry['camera_name']
TypeError: string indices must be integers

Additional information:

@daranto
Copy link

daranto commented Jan 23, 2019

Hi, I have the same issue. Seems to be broken. Restart doesnt work.

@TazUk
Copy link

TazUk commented Jan 23, 2019

Same issue here - started seeing blink errors in my logs about 17:00 GMT 22 Jan 2019. On reboot the component failed to initialise.

Home Assistant release with the issue:
0.85.1

Last working Home Assistant release (if known):
0.85.1

Operating environment (Hass.io/Docker/Windows/etc.):
Ubuntu 18.04.1 Python 3.6 venv

Component/platform:
https://www.home-assistant.io/components/camera.blink/

Description of problem:
With no changes to version or configuration, HA is no longer able to set up the blink camera and an "invalid config" notification is displayed on the UI with the message:

The following components and platforms could not be set up:
blink
Please check your config.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

blink:
  username: !secret blink_username
  password: !secret blink_password

Traceback (if applicable):
On reboot this morning

2019-01-23 05:59:35 ERROR (MainThread) [homeassistant.setup] Error during setup of component blink
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/blink/__init__.py", line 100, in setup
    hass.data[BLINK_DATA].start()
  File "/srv/homeassistant/lib/python3.6/site-packages/blinkpy/blinkpy.py", line 83, in start
    sync_module.start()
  File "/srv/homeassistant/lib/python3.6/site-packages/blinkpy/sync_module.py", line 99, in start
    self.videos = self.get_videos()
  File "/srv/homeassistant/lib/python3.6/site-packages/blinkpy/sync_module.py", line 148, in get_videos
    camera_name = entry['camera_name']
TypeError: string indices must be integers
2019-01-23 07:45:11 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.arm_blink_cameras. Service not found for call_service at pos 1: (ServiceNotFound(...), 'Service alarm_control_panel.alarm_arm_away not found')
2019-01-23 07:50:08 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.disarm_blink_cameras. Service not found for call_service at pos 1: (ServiceNotFound(...), 'Service alarm_control_panel.alarm_disarm not found')

@pablopezg
Copy link

Hi, Same problem here.

@dgomes
Copy link
Contributor

dgomes commented Jan 23, 2019

@fronzbot can you have a look ?

@fronzbot
Copy link
Contributor

fronzbot commented Jan 23, 2019

I can confirm it's not working for me either. Stopped working around 12hrs ago for me, it seems. Blink probably changed something which may take a while to figure out. I'm going to open an issue upstream in the blinkpy library since this is see definitely an API issue, not a home assistant component issue.

EDIT- issue created fronzbot/blinkpy#139

@fronzbot
Copy link
Contributor

So I found the problem. The video api endpoint changed. This means motion detection is going to be broken until the new endpoint is figured out (I lack that capability). BUT I have a fix that will allow the component to work normally (just sans motion detection, as I mentioned).

Here's my blinkpy PR to fix the problem in the library and I'll reference this issue when I add the home-assistant PR later today (hopefully soon). fronzbot/blinkpy#140

@RodneyCapron
Copy link

Hello @fronzbot,

I started having this same issue 2 days ago. Here are the details from the HA logs:

2019-05-31 07:22:31 ERROR (SyncWorker_8) [blinkpy.helpers.util] Endpoint https://rest.u002.immedia-semi.com/api/v3/accounts/None/homescreen failed. Possible issue with Blink servers.

2019-05-31 07:22: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

Any idea what might be happening with this and how I might correct it?

Thank you very much for looking into this!

Rodney

@dgomes
Copy link
Contributor

dgomes commented May 31, 2019

@RodneyCapron please open a new issue

@home-assistant home-assistant locked as resolved and limited conversation to collaborators May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants