Blink Save Video Issue

I’m trying to configure an automation which saves a video from a Blink cam when motion is detected. I have actually used the example included in the documentation for the Blink integration but it’s not working.

I’ve tried calling the service with a JSON string but when I do the following error is logged in the Home Assistant log file:

2019-08-30 21:45:12 ERROR (SyncWorker_0) [blinkpy.camera] No saved video exist for Bedroom.

However, if I use the Blink App I can see there are numerous videos for this camera.

Can anyone help me out in figuring out what is wrong please?

Thanks

Pete

The way the library is written requires the video to have been recorded after home-assistant was started. Can you check the attributes for the camera in “Developer Tools --> States”? There will be a bunch of entries, the one you’re interested in is “video”. It should have a url to a video. Just double check to make sure that there is, in fact, a url listed there.

Could you also provide the exact JSON string you’re using to call the service?

Hi @fronzbot

I checked the camera entity and the video attribute has a long URL that starts with https://rest-prde.immedia-semi.com. The end of the URL is a multi digit number with an .mp4 extension.

This is the JSON i’m using to call the save service:

{
"name":"Bedroom",
"filename":"/tmp/video.mp4"
}

The directory where i’m saving content is white listed using this fragment in my configuration.yaml file.

  whitelist_external_dirs:
    - '/tmp/'

Hmm, not really sure what’s going on. I just tested on my end and it worked fine. Could you try calling the blink.blink_update service before calling blink.save_video to see if that fixes the issue?

Unfortuantely it makes no difference.

I have also tested in a fresh installation of Hass.io. My old version was running on a Pi 3 and wasn’t very responsive. I’ve now got an old Intel i7-based laptop which i’ve installed Proxmon on and i’ve got Hass.io running as a VM in there.

It’s much more responsive now. But alas the camera issue still persists.

Can you try enabling motion detection, waiting a moment, and then manually trigger motion detection (all while home assistant is up and running normally)? After you trigger the motion detection, run the blink.update service. And then do these things:

  1. Check if the binary_sensor.motion_detected state switches to “on”
  2. Check if the “video” property of your camera’s state has changed
  3. Attempt to call the save_video service and see if it works or if you get the same error

Sorry for the delay Kevin. I’ll check this tonight and let you know the outcome.

Thanks for your help so far.

Same problem here. I always get: “No saved video exist for Camera garage.
12:25 /usr/local/lib/python3.7/site-packages/blinkpy/camera.py (ERROR)”

Did you solve someway? Thanks

@fronzbot

I was trying to save the video. But in the developer told the video attribute is blank. Even when it is saving on the blink module.

Any pointers?

Thanks I’m advance