Good morning everyone,
I recently entered the world of Home Assistant and I’m trying to properly configure all the home automation.
As in a previous post, I had problems with the Ewelink integration, which fortunately were resolved very well.
Today, however, I am having repeated problems with the integration installed by HACS, “Alexa media player”.
Let me explain.
I made a first attempt without reading any documentation, as the integration was very clear to me in the configuration, I entered the email and password of my Amazon account,
in the “Amazon region domain” section I tried to enter both “amazon.it” and “amazon.com”, but neither was successful.
However, I left the 2FA section blank as I didn’t know what to put in it.
Once the brief setup in Home Assistant is complete, I’m sent back to an Amazon Alexa page that asks me to re-enter my email and password.
Once re-entered and done the short captcha, I always arrive at the same error page: “500 Internal Server Error
Server got itself in trouble”.
I tried several times to read the integration documentation on GitHub, but I found it unclear, so I turned to this forum and found a discussion between two users regarding this integration, in particular 2FA. LINK
I then followed the steps that I hoped would lead to a solution.
I then added an authenticator app (Microsoft authenticator) in the Two-Step Verification (2SV) Settings section of my amazon account successfully.
Once I returned to Home Assistant, however, I noticed something: the integration does not support 6-digit 2FA, while the authenticator app only supports 6-digit codes!
At this point I don’t know what to do anymore, but I think I’m going down the wrong path by following that discussion on 2FA, as in a test I did of Home Assistant a few years ago, I was able to add this integration without any problem.
Thanks in advance to anyone who will take part in this discussion.
I don’t know what the issue is, I’m traveling without access to look at my install, but I know for a FACT that AMP does support a six digit OTP from MS Authenticator. Because that’s EXACTLY how I’m setup.
After a HACS update, I had to re-install Alexa Media Player. I re-entered my credentials, the long token key, and then I was presented this dialog box asking to confirm the OTP. What am I supposed to do with this information? The number on the screen matched (at the time) the 2FA app on my phone. I checked the box and received an unknown error. Am I missing a step somewhere?
@deja4u Are you still having issues? What do your DEBUG logs show at that point?
AMP requires your Amazon account to be configured with 2FA/2SV using an Authenticator App.
You need to provide AMP with the 52 character secret so it can generate the 6 digit OTP code whenever it needs to authenticate/reauthenticate. You can use your primary Amazon 2SV Authenticator App “secret” or you can Add a new app and use that 52 character secret for AMP.
Also, make sure the local/internal URL is correct when adding the integration. It defaults to the HA internal URL, which is usually http://homeassistant.local:8123.
The latest version of AMP (v4.12.12) now removes the old cookiefile/.pickle file even without alexapy v1.29.0.
Delete the integration from HACS and re-add it (version should be 4.12.12).
Also make sure the /config/.storage/*.pickle file does not exist.
Restart HA and try re-adding the integration.
So I get to the pop up that I need to go to another web site to log in. I recall this being something that was sticky before. 2FA is all set, username/password is all good. Nuked a .pickle file.
It just keeps going back and forth from username to password to username etc.
Any thoughts on this?
The problem is the new three page login sequence with email, then password, then 2SV
AMP was programmed to do the callback after two pages (the way the Amazon login used to be) but gets an “unsuccessful” response after only two pages since the login sequence did not finish all three pages and AMP returns you to the previous (first) page to try again. So…
At this screen, select the first option
Enter “x x” for First and last name and click CREATE YOUR AMAZON ACCOUNT
Now you can select SIGN IN which then proceeds to the 2nd page which is Two-Step Verification
and the callback to HA will then occur where it will test if your email, password & OTP login was successful or not. If not, it sends you back to the first page in Amazon’s new 3 page sequence.