Alexa Media Player - Custom Integration - On Life Support - Help wanted

Alexa Media Player exposes Alexa devices to home assistant to be controlled (and i some minor cases the things directly connected to those Echos.

The integratjon/Nabu Casa things you’re thinking of work the other way - exposing HA to Amazon.

1 Like

FYI, if you run dev container, it’s pretty easy.

Just make a json file in the root directory named library_test.json with the following contents filled out:

{
    "country": "xx",
    "email": "[email protected]",
    "password": "xxxx"
}

You can even add your otp_code in there if you want but the debug launch will also ask for it.

I make heavy use of this integration in my Home Assistant configuration, to play alert sounds and speak notifications on multiple Alexa devices around the house. This all stopped working after I updated to HA Core 2024.5.5 last night. I came to these forums to request help, and saw this post - so I guess there are bigger problems. :frowning_face:

There is an update available which I will try - I’m still using 4.9.0 which is several versions out of date.

However, given how incredibly useful I find Alexa Media player, if the original developer is no-longer able to maintain it I wonder whether the Home Assistant team could consider promoting it to an official integration. There must be a lot of Home Assistant users with Alexas who would benefit from this.

2 Likes

While I would love this, I believe the founder once mentioned how difficult it was to keep this integration alive due to constant changes, I assume, on Amazon’s side.

Given all we use our dozen+ echos is for timers, announcements and above all home control via HA, I am looking forward to a good looking, well built/packaged HA Assist solution. Just like I de-applefied my household years ago, I will also de-amazon my house as well.

5 Likes

Confirmed working with --country CA and using \$ rather than S in my password.
OTP came from Bitwarden.
Also tested library_test.json (which does need the $ in the password escaped).

python library_test.py --configfile library_test.json

In case it might be helpful to anyone else, this comment has a fix that got Alexa Media Player working for me again with HA 2024.8.0.

To recap the fix:

  1. First, using Visual Studio Code (or any other file editor of your choice), open this file:
    /homeassistant/custom_components/alexa_media/manifest.json

  2. Then, locate the line within that file that says requirements: and change that line to this:
    "requirements": ["alexapy>=1.28.2", "packaging>=20.3", "wrapt>=1.14.0"],

  3. Then reboot Home Assistant.

PS Full credit to sca075 within that issue thread for this fix. :raised_hands:t2:

7 Likes

handcoding - your fix worked for me … Thanks!

2 Likes

I only see one temporary solution and that is to go back to the July OS version. The problem is to see if someone can offer that version for downgrade.

Doesn’t the latest version just work? I’m using 4.12.8 and it works on 2024.8.2 just fine for me.

4 Likes

+1 from me.

2024.8.2 AMP version 4.12.10 just works!

I still have to do at least one reload and/or reconfigure and then it works.

Thank you so much, now my AMP is working again.

1 Like

Is there any way to make Alexa devices work with MQTT or matter as a way to break away from the Amazon API madness described here ?

1 Like

Hi,
i have HO version 2024.9.2 and Alexa version 4.13.1 installed.
When i try to add the integration, i’m forwarded to the Alexa webpage for login, but every time i log in it refreshes the site and nothing happens.


Does anyone have this issue and does anyone have a solution?
P.S. i had the integration working for a couple of months and it stopped working, so i tried to reconfigure it.
Thanks

Does this work for you ?

1 Like

Yes, thanks a lot. This worked for me. :+1:

just found this post, and tried as above and it went back to home assistant with a failed message.!

@petro Make it sence that someone create a PR with the “Open source compliance” from 2024.9 so we dont need the old creater? Or i miss understand the function from that?

Are there more specific how to get involved instructions? @petro just posted a link to the github repo, which is a good start. But I guess I’m looking for a planning thread or something. Who’s working on what, what’s needed, what are the biggest issues, what’s the long term direction, etc.

5 Likes