question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Invalid Built-In 2FA key' after Home Assistant update

See original GitHub issue

Describe the bug Upgraded Alexa Media Player in HACS (was perfectly working/authenticated via 2FA prior to upgrade), I am prompted to “reconfigure” the Integration. When I click on “Reconfigure” for Alexa Media Player Integration; and re-enter a new 2FA App Key provided by my officially registered Amazon 2FA app, I am prompted IMMEDIATELY with the error: Invalid Built-In 2FA key. It responds with that error so quickly; it doesn’t even appear to check anything online.

To Reproduce

  1. Go to Integrations
  2. Click on RECONFIGURE
  3. Enter valid 2FA Key (while still good)
  4. Prompted with “Invalid Built-in 2FA key” error

Expected behavior It should authenticate after entering a valid 2FA key

System details

  • Home-assistant (version): 2022.7.7
  • Hassio (Yes/No): Yes (VirtualBox VM on Windows 10 host)
  • alexa_media (version from const.py or HA startup): 4.1.0
  • alexapy (version from pip show alexapy or HA startup): Not sure
  • Amazon 2FA is enabled (y/n). Y

Logs HomeAssistant-Log-Alexa.log

Additional context I have already tried completely clearing all Web browser cache (cookies, files, images, etc.) before authenticating. I enabled advanced debugging for this Integration: Advanced_Debug.zip

Update: The second Integration below (with my amazon email account) changed from red to normal after rebooting Home Assistant: Alexa

It switches back to red after a subsequent reboot of Home Assistant: Error

It keeps switching back and forther after each subsequent reboot.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
mkanetcommented, Jul 27, 2022

That’s for the Built in 2FA key, not for your 6 digit OTP. Leave it blank unless you want the component to manage your 2FA.

OMG Thank you! I literally tried everything to make this work; except for leaving that field blank! I’m embarrassed to say how many hours I spent on this to make it work.

Is there any way you guys would please consider changing that field’s description to say something like: Optional: For special cases only!

It would prevent others from making the same mistake I did. Thank you for your help and consideration.

0reactions
Finty23commented, Oct 28, 2022

Hi guys, I have another problem, I don’t write anything on 2FA field, and I click on send, but web does nothing, neither open a amazon web nor accept the rest of fields, but I don’t receive any error.

So I have the same “error” that jhalak1984 said. Please help us

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alexa Media Player - 2 Factor - Verification Code not received
Go to amazon.com and navigate to Account --> Login & Security. At the bottom there should be an option that says “Two-Step Verification...
Read more >
Alexa Media Player 2FA Fail : r/homeassistant - Reddit
When I try to add it and log in, the 2FA fails every time. I get an error that says "Invalid Built-In 2FA...
Read more >
Unable to Login to Alexa Media Player stuck at integration ...
(Built in 2fa app key, username, and password are all corrent). ... have to restart hassio 2-3 times to load the latest version...
Read more >
Amazon Alexa re-authentication in Home Assistant setup.
How to simply re-authenticate your Alexa integration in Home Assistant. Using 2FA and the "Google Authentication" APP to generate codes.
Read more >
Two-Factor Authentication - Wyze Support
What is Two-Factor Authentication (2FA)? · Text message (SMS): Sends you a text containing the associated key or code. · Authenticator app: Pairs ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found