fronzbot/blinkpy

Not receiving PIN

Closed this issue · 7 comments

Ente commented

Describe the bug
I don't know if I did it wrong, but when I try to authenticate to Blink it asks me for the 2FA code, which has been sent to my email address. Unfortunately, I never recieve any of these codes.

To Reproduce
Steps to reproduce the behavior:

  1. Just start the script

Expected behavior
A clear and concise description of what you expected to happen.

Home Assistant version (if applicable):

**blinkpy version: 0.21.0

Log Output/Additional Information

Unable to access https://rest-e001.immedia-semi.com/api/v3/accounts/387066/homescreen after token refresh.
Enter code sent to xxx@xxx: 

Did you try entering nothing to see if it works? I've seen that happen where the API says you need to authenticate but then never sends a code. Usually entering nothing (just hit enter at the prompt) works. Worth a shot

Ente commented

Hi @fronzbot, sadly this is not a solution. It tells me that's an invalid PIN.

eZaY commented

@Ente you should get an SMS with the PIN

ugh, hate to slight hijack here... but no discussion button and its nowhere to be found in the docs or wiki:

regarding the pin.

how long does it stay alive for assuming we use the logged in session frequently enough (eg: once per hour)?

i am guessing the behavior will somewhat match the app, so that means as long as you are logging in at a fairly regular frequency, the pin should never expire?

Ente commented

By the way, I forgot to mention that the problem resolved by itself. I assume that the servers were not available at the moments I tried. I also did not recieve an SMS, I got an email. Do they handle that differently sometimes?

By the way, I forgot to mention that the problem resolved by itself. I assume that the servers were not available at the moments I tried. I also did not recieve an SMS, I got an email. Do they handle that differently sometimes?

I'll be honest, I have no idea how Blink handles things. When they first introduced forced 2FA, someone found the API endpoint to trigger a key and send a key so I implemented that. It seems to work for most cases, but hiccups like yours get reported from time to time so it's obviously not a robust solution but maybe good enough? It's one of those bugs that annoys me and I'd love to solve, but the impacts are so minor and sporadic that it's hard to justify sinking time into, you know?

There hasn't been any activity on this issue recently. Please make sure to update to the latest blinkpy version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.