Installed Alexa Media Player through HACS. Everything installed and configured just fine. I can see all my amazon devices in the intergration screen. When I try and test any of the examples absolutely nothing happens, no sound from my devices, no errors, nothing. I have tried all the samples through the SERVICE in the Developer tools. Is there something additional I need to do, or some way to figure out whats happening. I do not see anything in the logs in the way of errors when I run each of the examples through services. Any help would be appreciated.
2FA is now required.
They’ll need to reimplement it from scratch assuming the official API allows the same visibility as the unofficial one we’re leveraging in this component but yes that is the long term solution unless Amazon opens up OAUTH for standard Alexa use. I don’t look at the WTH forums so have no idea.
Check the FAQ.
I have gone through all the documentation, several times and went through all the topics in the FAQ one by one and nothing in there resolves my issue. Per the log the commands are executing without error yet my echo does absolutely nothing.
If you don’t provide logs then no one can help you. The FAQ explains how to enable debug logs down to the API levels. You also aren’t providing enough details. If you play music using a voice command on the devices is it updating? What are the media player states? If they are not showing any changes, then you may have the wrong region. If announce doesn’t work, you may not have enabled Communications. Again, we’re all guessing blindly based off what you’ve identified.
I will provide log data shortly. Communications is enabled, when playing music on a specific device it shows its status is STANDBY.
Ok, I figured out the problem, and due to embarrassment I am not going to explain other than saying plain ignorance and all is working.
I have been using this component successfully since its first version but it stopped working. I noticed the URL update and then my devices started working again, but would not detect any new echos. I decided to manually upgrade because I did not see the component in HACS even though I have a fresh new install of HA.
I just went through 2FA and got my number from amazon, but the logs are still showing this…
alexalogin.login((<alexapy.alexalogin.AlexaLogin object at 0x7f4a6d79d4f0>,), {'cookies': {}, 'data': OrderedDict([('email', 'n***a@n**************m'), ('password', 'REDACTED 8 CHARS'), ('url', 'https://alexa.amazon.com'), ('debug', False), ('scan_interval', 60), ('include_devices', ''), ('exclude_devices', ''), ('securitycode', '********')])}): A connection error occured: An exception of type ClientConnectorError occurred. Arguments: (ConnectionKey(host='alexa.https', port=443, is_ssl=True, ssl=<ssl.SSLContext object at 0x7f4a6bbcb840>, proxy=None, proxy_auth=None,
Everytime I resubmit it, I get this…
I am probably doing something really dumb, but this thread is really long and its very confusing to follow.
`
I replaced my security code with asterisks so people wont get distracted by that and lecture me.
I’m glad you got it working, but you did mention you went through all the documentation. If there is some way to improve the documentation that would have helped your case, it could help someone else. Please consider making updates to the Wiki.
Your domain is wrong. It needs to be amazon.com
or whatever your region is. You entered https
which is not a valid Amazon.com domain.
thanks! I think it was reading my config from the old code. I removed the URL and now its working.
I don’t think so, in my case I have 4 amazon echos in my house and while testing I was sending specifically to my OFFICE echo, which turns out had gotten switched around with my BEDROOM echo and I was sending messages to the echo in my bedroom(office). Finally figured it out when I played some music on my office echo and the logs showed (BEDROOM) was playing. So I swapped them out and found out it had been working all along, just couldn’t hear it.
Please vote for this #WTH to integrate the alexa mediaplayer direct into HA
I have no idea if this is related to my problem but I will ask. This morning I did a restart on my PI 4 Home Assistant. After everything came back a request to log back into Alex Media Player appeared which it does often. While attempting this Amazon made me jump through several hoops such as changing my password and sending 6 digit code to my email to enter and entering the captcha over and over again. I have done all of these things several times and am still not able to connect Alexa Media Player to Home Assistant. Any help would be appreciated!!
I am using 2FA yet I still get a failure to connect. I have my region set to “amazon.com” should that be a different url? It always worked before as just amazon.com (I am in the US).
Ok so after entering my 2FA a half dozen times and the captcha I must have finally gotten the combo just right. I wonder if there was a clock drift on my 2FA causing the failures.
Just a note on my problem. I did not enable 2FA because being concerned of making things worse. What I did do was delete alexa_media directory under custom_components then reinstalling alexa_media using HACS. Everything worked the first time. Thanks for the help.
Is there any solution for Alexa 2FA, I am seeing two entries in my integration, one showing entities and other on discovered? The one which is showing discovered is not giving any option to ignore or delete, I tried multiple attempts with my password & captcha but no luck. Integration stopped working, any suggestion?
The discovered happened to me once I updated to new version of alexa media player hac. I went through the configure process for the discovered version. Added the 2FA. Alexa media player will show 2 accounts. I deleted the account that had 2 extra devices.
This is how HA does a relogin unfortunately. Once you successfully configure the Discovered instance it will disappear and everything will work.
I cannot login anymore, can someone help me?
Login
E-Mail
PW
2FA enabled
Test: 2FA from other Browser login, without 2FA Code, with Google Auth Code, 2FA Code after PW
reinstalled, no captcha