Echo Devices (Alexa) as Media Player - Testers Needed

Remove and readd under integrations. Make sure you don’t have the old password in configuration.yaml. No, the integration entity_ids will not change so as long as you didn’t manually change them so it shouldn’t impact any automations or scripts.

We are literally passing the information from Amazon back to you so Amazon doesn’t agree with you. You’re welcome to enable alexapy debug logs and you can verify what we are passing back to Amazon and you can also see Amazon’s response page. Please note that if you use an Authenticator app for the 2FA, it will change every 30 seconds. If you don’t like logging in through the component, it also allows you to use cookie importing from your browser (so you can log in using the webapp (fix the domain) first and just import the cookies).

On your question about Amazon invalidating your session every 3 weeks, you’ll need to complain to Amazon as we don’t control that. While I’m not keeping track, I’m going about 2-3 months before a revalidation request. You can always try lowering your scan_interval in options so the component connects to Amazon less but I have no idea if that will help. I’m debating whether I set up some analytics so we can get some real data from people on this, but until then it’s anecdotal.

Are you using 2FA and providing the 2FA code at the beginning? Assuming you are and it still goes to the Forget Password page, you can turn on logging and submit an issue. It’s possible Amazon changed something yet again.

Not possible for now; we can only add what the app or webapp allow. Please review the documentation.

1 Like

I am using 2FA and I was submitting a code. I enabled Advanced Debugging, but nothing was getting logged as per the Wiki.

In the end, I uninstalled the integration, restarted HA, reinstalled the integration, restarted again and was able to configure it without issue.

There was definitely an issue with my account as I had to change my Amazon password when logging into my account normally.

I can confirm that I just reloaded the integration 10 minutes ago…entered my userid and pw and received the forgot password page. I then went to amazon.com and signed in with that exact same password. I have 2FA activated, made sure there was no pickle file. Exactly the same problem others are having…first it didn’t like the capture and finally when it did, I was told that I was on the forgot password page.

same issue here

is there any fix yet? this is driving me nuts.

What is an “authentication app” ? I have to reauthenticate with Amazon about every 2-3 weeks. This is the 3rd time. I removed 2fa this time but that’s not a great solution and I don’t even know if it will help…

I believe the option comes up when your are on Amazon’s 2FA page towards the bottom (sorry don’t really remember)…but once you find that you can just download an Authenticator app by searching in your App Store/Google Play Store… I happened to pick the Microsoft one but I believe Google has one and there may be a few others…
when I get back to my laptop I’ll try to find the page as I’m on mobile right now and can’t get to the page on Amazon’s site.

Arg. This re-authentication pop up is driving me nuts too.

f… it, I sell now my echo, and take the HomePod mini.

I switched to 2FA using the Microsoft Authenticator app. I’m regularly having to re-authenticate into Amazon Media Player… it seems like it happens after each Home Assistant update or Alexa Media Player update. Is there any way to reduce the number of times I have to authenticate? Things used to work much better in the past when I didn’t have to use 2FA.

Also, I just got prompted with “Aborted The Forgot Password page was detected. This normally is the result of too may failed logins. Amazon may require action before a relogin can be attempted.” After I enter my 2FA code, I get prompted with this message again shortly afterwards. What’s the proper way to deal with this? Am I supposed to wait xx number of hours before trying to authenticate for it to work?

When I received that message a few days ago, Amazon had locked my out of my account and I had to reset password to get back in (Amazon wouldn’t let me use my old password).

Even after a password reset, I was still getting that message from the integration. In the end, the following worked for me:

  • Uninstall in the integration
  • Reboot HA
  • Reinstall the integration
  • Reboot HA
  • Configure the integration

When I re-configured it, I accidently didn’t check “Enable 2FA”. This responded with the predicted “Invalid Email / Password” message. Once I checked on this, the integration configured perfectly and it’s been stable since.

@WhimsySpoon (or anyone). I don’t have any issues accessing my Amazon account from any regular web browser (from all locations). However, I’m still getting the Aborted The Forgot Password page was detected. This normally is the result of too may failed logins. Amazon may require action before a relogin can be attempted. message when I try to enter the 2FA code in the Alexa Media Player Integration.

Do I still need to change my Amazon password? I really don’t want to have to change my Amazon password again; since I would have to reauthenticate with 2FA and use the new password to every single web browser and mobile device in my family.

PS: I just opened Github issue #999 for Alexa Media Player. Hopefully, there’s a better way to handle this problem.

When I first received that message, I couldn’t sign in to amazon via a browser without first resetting my password, so I think it was legitimately locked.

That being said, after I reset it, the message persisted. You could try my steps listed in my previous post (without the password reset) and see how you get on.

I appreciate the quick reply back. I’ll try the steps you mentioned without changing my Amazon password… hopefully, that will resolve the issue.

It looks like the same thing happened to me. When I tried to login to Amazon via web browser, it asks for OTP code. After I enter the OTP code, it asks me to change my password.

No need to do integration reset. Simply go to alexa.amazon.com and reset your password.
Then open your configuration.yaml and update the new password for alexa media player. Save & Restart HA. Upon restart,you will be able to authorize it successfully.

Presumably that only works if you have the integration setup using configuration.yaml?

Did you have any luck getting things to work after this?

This is issue is caused by the fact the the translations folder is a link to a folder and not a real folder. So to fix this issue, you need to rename the existing translations folder to something like translations_old and create a folder called translations. Then you need to move all files from translations_old to the translations folder. You can now delete the translations_old folder.
You don’t need to restart. All you need to do is, add the integration again and it will work. Hope this helps.

Thanks. Where is the translations folder located?