alandtse / alexa_media_player

This is a custom component to allow control of Amazon Alexa devices in Home Assistant using the unofficial Alexa API.
Apache License 2.0
1.53k stars 290 forks source link

Login Loop — Cannot Authorize App #2666

Open expozeur opened 3 weeks ago

expozeur commented 3 weeks ago

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.

Describe the bug

To Reproduce

  1. Go to 'Integrations'
  2. Click on 'Alexa Media Player'
  3. Fill out information (username, password, OTP code generated by Amazon app)
  4. Get redirected to an Amazon login page
  5. Enter email
  6. Enter password
  7. Get sent back to Step 5 - Enter email.

Expected behavior

Authorization of the app and a reloading of the HA tab.

System details

Debug Logs (alexa_media & alexapy) Please provide logs.

danielbrunt57 commented 3 weeks ago

On the first Alexa login window (which is the Create account New to Amazon? window), email & password is prefilled. You then select Sign in Already a customer? which opens the Welcome with Sign in Already a Customer? selected and email & password prefilled. Clicking SIGN IN transfers you to the OTP window with the OTP code prefilled.

danielbrunt57 commented 3 weeks ago

If the above sequence is NOT what you're seeing, then you don't have the correct version of alexapy, which you failed to include above: alexapy version (from pip show alexapy in homeasssistant container or HA startup log):

b24home commented 3 weeks ago

If the above sequence is NOT what you're seeing, then you don't have the correct version of alexapy, which you failed to include above: alexapy version (from pip show alexapy in homeasssistant container or HA startup log):

Indeed, I did fail. Looks like I’m on v4.13.7.

danielbrunt57 commented 3 weeks ago

Indeed, I did fail. Looks like I’m on v4.13.7.

What version of alexapy is HA core executing?

b24home commented 2 weeks ago

Tried again today. Now, no loop. Says login successful. However, nothing happens on HA’s side. Currently on 2024.10.4.

danielbrunt57 commented 2 weeks ago

However, nothing happens on HA’s side.

Can you explain what that means? Does the HA page just sit and spin? Does it still say Open Website? ?