core icon indicating copy to clipboard operation
core copied to clipboard

Errors in log since adding Blink Video Doorbell

Open mamoel666 opened this issue 2 years ago • 14 comments

The problem

Yesterday I added a Blink Video Doorbell to my existing Blink installation (Sync Module 2, Blink XT2, Blink Outdoor).

I know that the Blink Video Doorbell is not supported, but shouldn't it at least work as a camera? I can't see any picture (not even a still picture) and the sensors are 'dead'.

But the worst thing is, that my log is flooded with errors and warnings even with a disabled device. My other Blink cams work as expected.

What version of Home Assistant Core has the issue?

core-2022.6.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Blink

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: blinkpy.auth
Source: /usr/local/lib/python3.9/site-packages/blinkpy/auth.py:212
First occurred: 10:57:00 (8 occurrences)
Last logged: 10:57:31

Expected json response from https://rest-prde.immedia-semi.com/network/unknown/camera/unknown/signals, but received: 406: Not Acceptable
Expected json response from https://rest-prde.immedia-semi.com/network/248644/camera/unknown/config, but received: 406: Not Acceptable

Logger: blinkpy.sync_module
Source: /usr/local/lib/python3.9/site-packages/blinkpy/sync_module.py:181
First occurred: 10:57:00 (5 occurrences)
Last logged: 10:57:31

Could not extract camera info: {'message': 'Camera not found', 'code': 500}
Could not extract camera info: None

Logger: blinkpy.camera
Source: /usr/local/lib/python3.9/site-packages/blinkpy/camera.py:194
First occurred: 10:57:00 (5 occurrences)
Last logged: 10:57:31

Could not find thumbnail for camera unknown

Logger: blinkpy.camera
Source: /usr/local/lib/python3.9/site-packages/blinkpy/camera.py:167
First occurred: 10:57:00 (5 occurrences)
Last logged: 10:57:31

Could not retrieve calibrated temperature.

Additional information

No response

mamoel666 avatar Jun 10 '22 09:06 mamoel666

blink documentation blink source (message by IssueLinks)

Hey there @fronzbot, mind taking a look at this issue as it has been labeled with an integration (blink) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

Hmm interesting. Not sure this use case has been considered (doorbell added to existing sync module). It seems like the library tries to treat it as a camera but the API endpoints are different so it gets confused and spits errors. I don't have a solution for this at the moment

fronzbot avatar Jun 10 '22 14:06 fronzbot

I believe this is the same issue I was seeing and should be addressed in https://github.com/fronzbot/blinkpy/releases/tag/v0.19.1

uvjim avatar Jun 27 '22 07:06 uvjim

I'm running 22.7.3 and still the same issue.

wzaatar avatar Jul 11 '22 22:07 wzaatar

Yeah that makes sense as I haven't pushed any of the updates into home assistant yet. Been short on time lately 😞

fronzbot avatar Jul 12 '22 01:07 fronzbot

This was not meant to sound like a complaint. Just providing an update. Thank you for all that you're doing to support the community.

wzaatar avatar Jul 12 '22 01:07 wzaatar

Yep no worries, wasn't taken as such! I just wanted to clarify since a fix is in the upstream library, I just haven't been able to roll it into HA 👍

fronzbot avatar Jul 12 '22 02:07 fronzbot

Is there a way to manually update HA with the v0.19.1 release?

vibeenieman avatar Jul 22 '22 11:07 vibeenieman

Is there a way to manually update HA with the v0.19.1 release?

Yes - you can manually update the blink integration manifest.json to use version 0.19.1 and restart HA

In my case I use the HA docker image so I edited

/usr/src/homeassistant/homeassistant/components/blink/manifest.json and made the change

bash-5.1# cat manifest.json 
{
  "domain": "blink",
  "name": "Blink",
  "documentation": "https://www.home-assistant.io/integrations/blink",
  "requirements": ["blinkpy==0.19.1"],
  "codeowners": ["@fronzbot"],
  "dhcp": [
...

After restarting HA you can verify it has taken effect by

bash-5.1# pip3 list | grep blinkpy
blinkpy                          0.19.1
bash-5.1#

Do be aware though that if you subsequently upgrade HA to a later version your change here will be undone - either repeat this process or hold off upgrading HA until the blink integration has been updated

SketchCND avatar Jul 28 '22 08:07 SketchCND

Thanks. At least the camera picture is now available in HA.

mamoel666 avatar Jul 28 '22 09:07 mamoel666

Does anyone know what the directory is for the blink component in home assistant os? I tried CDing into "/usr/src/homeassistant/homeassistant/components/blink/" and it said that the directory isn't there.

ririinsta avatar Aug 09 '22 05:08 ririinsta

Does anyone know what the directory is for the blink component in home assistant os? I tried CDing into "/usr/src/homeassistant/homeassistant/components/blink/" and it said that the directory isn't there.

You can try locating it using the find utility command like such which on the docker image produces:

bash-5.1# find / -iname "blink"
/usr/src/homeassistant/homeassistant/components/blink

Ensure your user has sufficient permissions to read/write to that file/folder or use sudo

SketchCND avatar Aug 09 '22 10:08 SketchCND

Thanks! Super weird though nothing came back.

ririinsta avatar Aug 09 '22 17:08 ririinsta

I just saw that blinkpy v019.2 is out. I updated the integration as @SketchCND has shown. All the warnings have gone and at least some of the sensors show reasonable values (armed, motion detection, battery).

mamoel666 avatar Aug 16 '22 04:08 mamoel666

Excellent! I'll try and get that PR rolling today to update the library in HA unless someone else beats me to it

fronzbot avatar Aug 16 '22 11:08 fronzbot

Hey guys, I too am having this problem. Any update on this issue? Has it been merged with HA core? I am running version 2022.4.6 using docker-compose method and am getting this error in the logs every 5 minutes or so. Thanks.

EDIT: Used the method from @SketchCND comment to check the version. It's running 0.19.0. I'm gonna do the manual update and see if that fixes it. Looks like the latest stable release on docker hub is 2022.4.6 so I can't update further.

EDIT 2: This fixed my issue and my door bell camera shows up properly now. The errors are gone from the log. Would be nice to know which version of core you need to update to though so this is permanent though. Thanks.

StarScream159 avatar Sep 09 '22 01:09 StarScream159

@StarScream159 The manual fix is still necessary with 2022.9.0.

mamoel666 avatar Sep 09 '22 07:09 mamoel666

This will be fixed by #78097

fronzbot avatar Sep 09 '22 11:09 fronzbot

HA 2022.9.3 has now bumped blinkpy to 0.19.2. I am seeing errors/warnings where None or unknown are being use to gather details about thumbnails or binary sensors but I haven't had a chance to look into those or check if those are same as those listed here. My initial issues are gone by the PR I made that was rolled into 0.19.2 though.

uvjim avatar Sep 17 '22 14:09 uvjim

@home-assistant close

fronzbot avatar Nov 12 '22 21:11 fronzbot