[PROJECT] Driver for Blink API

Yeah that’s where I got lost.

I get no reply on Authorize. Blink API says ‘executing Auth’ in logs but the device says ‘STEP3 exception status=401’, Status

|

STEP6 RefreshToken missing

image

Is that a comms issue?

It means that when it tried to submit your email and password, the Blink servers returned an “Unauthorized” response.

The multiple steps in there are not related to the user’s steps, but the steps the code has to take to get the authorization token. Blink made it much more difficult to use the API than it used to be but thankfully @Bloodtick_Jones figured out the code for it to work again in December. Hopefully this is not another breaking change they have made.

Can you set the parent to Trace logging and message me (DO NOT POST) the logs from when you attempt to authorize again? You can replace the email/password entries in it with XXXX or something.

Thanks. I figured detail logs were required.

I even changed the password in Blink and logged in again with 2FA to confirm the password.

All good now.

Had to hit Homescreen twice before anything showed up, just a bit of sweat. :melting_face:

1 Like

Sometimes GetHomescreen can be a bit delayed the first time because it has a lot of data. It can also be useful to do “GetInfo” on specific cameras or such you will use right away (to make sure they have a NetworkID).

I am glad to hear this solved it!

Updated Version(s):

  • BlinkAPI.groovy = 0.7.5

Change(s):

  • Removed an invalid unschedule (it was attempting to unschedule something that never existed) from the authorization code.
  • Tweaks to logging within the authorization code.
  • Additional data handling from API changes.
1 Like