alexa_media_player: Looks like I requested too many OTPs

IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.

I was logging in successfully but not seeing any devices. I have tried several time each time requiring a login. Currently, after I submit my login credentials, I get options on how I want to get my otp. When I pick one, I am immediately ask for my email address. Consequently, amazon will not text an opt to my cell phone number. When I login into amazon I need to use the authentication app.

To Reproduce

I really don’t know how to reproduce this. I am guessing login some amount of times. I can show you the behavior.

Expected behavior

Screenshots

https://github.com/user-attachments/assets/cecfecee-8421-41d8-8b40-4533dbf72532

System details

  • Home Assistant version:
  • alexa_media version (from const.py or HA startup log):
  • alexapy version (from `pip sh image image

ow alexapy` in homeasssistant container or HA startup log):

  • Is Amazon 2FA/2SV enabled <!—We will not debug login issues if unanswered—> (y/n):
  • Amazon Domain:

Debug Logs (alexa_media & alexapy) Please provide logs.

Additional context

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 27

Most upvoted comments

… and the fix was just to delete the “deps” folder in my container “/configuration/deps”. The dependencies are then automatically installed or re-deployed when the integration is started or setup the first time

AMP cannot use that sequencing of windows to log into your account. It can only handle a first window with email+password on same screen followed by the OTP window with its app generated OTP prefilled. Your sequence has an additional options window to select the type of OTP and that will never work with the AMP proxy login as it will return to AMP after that window with a login failed result code and AMP then sends you back to the beginning page again. You need to change your Amazon account to only use OTP via app