alexa_media_player: Upgrading HA from 2025.6.3 to 2025.7.1 causes AMP errors

Describe the bug

Since upgrading HA from 2025.6.3 to 2025.7.1 AMP errors are in the HA log on each restart, although there doesn’t seem to be impact to any functionality. EDIT: voice notifications from Alexa are no longer working, I’m using Sonos speakers.

This error originated from a custom integration.

Logger: custom_components.alexa_media Source: helpers/update_coordinator.py:414 integration: Alexa Media Player (documentation, issues) First occurred: 10:40:43 AM (1 occurrence) Last logged: 10:40:43 AM

Error fetching alexa_media data: Error communicating with API: ‘NoneType’ object is not subscriptable

Upgrade HA from 2025.6.3 to 2025.7.1 (presumably 2025.7.0 is also affected but I skipped that version), check logs for errors.

Expected behavior

No errors 😃

Screenshots

n/a

System details

  • Home Assistant version: 2025.7.1
  • alexa_media version (from const.py or HA startup log): v5.7.2
  • alexapy version (from pip show alexapy in homeasssistant container or HA startup log): can’t find this
  • Is Amazon [2SV via Authenticator App] enabled? Yes

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 39
  • Comments: 107 (2 by maintainers)

Commits related to this issue

Most upvoted comments

Wow great job and so fast. Updated to 5.7.3 and restart HA… everything is back! //Keep up the good work!

heads up everyone, here’s the link to the api server, https://api.amazonalexa.com/ you can check there to see if they finished maintence. We should probably wait until it comes back to see if there is still an issue.

I restored an even older 2025.7.0 backup but the same thing. The alexa devices appear in the list but are unavailable. Trying a 2025.6.3 now.

It is not related to the HA version. I restored a Proxmox backup of HA, and AMP no longer works there either. This appears to be an issue on Amazon’s side.

I am see the same error too.

I would be great stopping the insight that the API of Amazon is broken and NOT the version of HA oder the addon. I seems that people are not reading what has be posted before.

No issue here with 2025.7.1 No errors, notifications are working.

You must be the only one in the world where it is still working. Are you using hacs or HA integration for Amazon alexa

This is an excellent time for Home Assistant Voice Preview to improve the quality of input/output audio. If it means switching from Alexa to Home Assistant Voice, I’d make that deal.

I found some information

Change Impact on Alexa Media Player Amazon Docs Link
AVS Device Registration Deprecated (Jan 2024) No virtual deviceToken – login fails. Deprecated Features
OAuth 2.0 + PKCE Required Scraping flows without PKCE are rejected. Authorization Code Grant
Implicit Grant Flow Deprecated Legacy implicit-token flows shut down for new clients. LWA FAQ – Implicit Grant (Deprecated)
CAPTCHA + 2-Step Verification Enforcement Headless retail logins now trigger CAPTCHA/MFA, blocking alexapy. Account Linking Tips – CAPTCHA flow

2 hours ago i was on 2025.6.1 and it was working. i thought time to update to 2025.7.1 after that AMP was brocken. First i moved back to 6.1 but still broken. deinstall AMP reinstall and it wasn’t even able to fecht the devices. same procedure with 7.1 and no devices. logs same like in this post.

just a thing to think about maybe there is a file which was changed which does not change back if you go back to an older Version. because before i startet the update everything was fine and AMP was working ?

I don’t think so. I restored a backup outside of HA, and the issue still persists. It is highly likely that the problem originates on Amazon’s side.

I was so excited about the release of version 2025.7.0, but version 2025.7.1 disappointed me. But maybe, just maybe, it’s a problem with the plug-in or Amazon itself.

Image

A rollback to 2025.7.0 does Not change anything. All Alexa devices are unavailable

Sadly, the https://api.amazonalexa.com website has been showing that message for ages. Way Back Machine shows it showing that message back in 2024. I don’t think that message has any connection with what’s happening here.

Image

have the same issue. it’s looks like amazon rest api website is down

Image

I would be great stopping the insight that the API of Amazon is broken and NOT the version of HA oder the addon. I seems that people are not reading what has be posted before.

Quite. The only post people need to read is visaodeempresa’s about the amazon change which deliberately blocks alexapy: -

https://github.com/alandtse/alexa_media_player/issues/2932#issuecomment-3038343878

And this is why we can never trust these corpos,

I just went and brought a couple of extra Dots as well. @#$@ lol

Cant wait to ditch this garbage

I’m in EU (Spain) and without updating HA (I’m on 2025.6) Alexa stopped working a few hours ago.

This is an excellent time for Home Assistant Voice Preview to improve the quality of input/output audio. If it means switching from Alexa to Home Assistant Voice, I’d make that deal.

Seriously! If Voice had a decent speaker attached to it, I’d turn my Alexa ecosystem into a heaping pile of e-waste

Smart Air Quality Monitor doesn’t seems to be recognized with this update. This object is well connected to an echo

Also for me this works again just the connected devices like smart air sensor do not work. Is there an alternative to add those without the get_network_details?

I found some information Change Impact on Alexa Media Player Amazon Docs Link AVS Device Registration Deprecated (Jan 2024) No virtual deviceToken – login fails. Deprecated Features OAuth 2.0 + PKCE Required Scraping flows without PKCE are rejected. Authorization Code Grant Implicit Grant Flow Deprecated Legacy implicit-token flows shut down for new clients. LWA FAQ – Implicit Grant (Deprecated) CAPTCHA + 2-Step Verification Enforcement Headless retail logins now trigger CAPTCHA/MFA, blocking alexapy. Account Linking Tips – CAPTCHA flow

From the last bit, it looks like the party is over for alexapy. Even if a workaround is found they (amazon) will presumably block it again.

My second HA project has been running smoothly for two days with 2025.7.0. Since this morning, no Alexa devices have been working there either (I haven’t done any manual updates).

Same issue with 2025.6.3

I have this problem too.

All automations with “notify.alexa_mexia_xxxxx” no longer work because this action no longer exists. Downgrading HA core doesn’t help. This has been the most serious limitation of my smart home system since it was set up more than four years ago.

Same here, after the update, Alexa Media Player is broken, and all my devices are unavailable. Soook is telling me my automations have unknown commands. Hope this can be fixed because it’s a magnificent piece of work to allow us to integrate Alexa into HA

In version 2025.7.0 Alexa Media Player worked flawlessly. In version 2025.7.1 no firetv is connected anymore.

I am receiving the same error as kingp0dd.

Smart Air Quality Monitor doesn’t seems to be recognized with this update. This object is well connected to an echo

Same issue.

Are you sure you read the changelog before updating? https://github.com/alandtse/alexa_media_player/pull/2943

HINT

https://www.buymeacoffee.com/alandtse

😉

All, while I appreciate all the donations, I just merged the fix. @alams154 did the fix so please thank them.

Thanks a million for the excellent work. So fast, and everything is back working. Major respect and thanks.

Thank you!!

Thank you so much for the speedy fix!

There is already an update available via HACS.

As @avigrinberg reported, the API server is down. It just happened to coincide with an HA update, but it doesn’t seem to be caused by HA. We’ll wait for the API server to come back up.

Other people were saying that Amazon killed AlexaPy, does the API being temporarily down supersede that theory. Should we expect normal function to return soon?

While I wouldn’t expect amazon to create a maintence mode page if they were tearing it out completely, that’s not exactly out of the question. Right now there is not really an expectation that it will return, just being hopeful it will :S

Alexa Media Player 5.7.2 only stopped working for me after updating Home Assistant Core to 1.7.25. Currently in the progress of restoring the VM backup of Home Assistant which was taken prior to upgrading Home Assistant Core. Alexa Media Player was working fine prior to updating Core.

Read the rest of the thread, that wont work. AlexaPy is down or depreciated all together. No need to rollback.

As @avigrinberg reported, the API server is down. It just happened to coincide with an HA update, but it doesn’t seem to be caused by HA. We’ll wait for the API server to come back up.

Yup, same error.

Logger: alexapy.helpers
Source: runner.py:154
First occurred: 09:53:24 (196 occurrences)
Last logged: 15:44:09

alexaapi.get_guard_details((<alexapy.alexalogin.AlexaLogin object at 0x7f613a5fd0>,), {}): An error occurred accessing AlexaAPI: An exception of type TypeError occurred. Arguments: ("'NoneType' object is not subscriptable",)
alexaapi.get_network_details((<alexapy.alexalogin.AlexaLogin object at 0x7f613a5fd0>,), {}): An error occurred accessing AlexaAPI: An exception of type TypeError occurred. Arguments: ("'NoneType' object is not subscriptable",)

And for all automations with an Alexa notification:

The automation “<automation name>” (automation.<name>) has an unknown action: notify.alexa_media

Same

No issue here with 2025.7.1 No errors, notifications are working.

You must be the only one in the world where it is still working. Are you using hacs or HA integration for Amazon alexa

AMP from HACS. No issues as you can see in the screenshots Notifications in automations and scripts are working

Here it looks the same until you open 1 of the pull down menus… Everything Unavailable…

Same problem !

I restored an even older 2025.7.0 backup but the same thing. The alexa devices appear in the list but are unavailable. Trying a 2025.6.3 now.

Yip, didn’t update just restarted my 2025.7.0 and ran into the issue as well. So it must be Amazon.

Amazon side- im still on 2025.6 and have this issue from this morning

Also got the same issue. Tried removing completely, including from HACS, downloaded again and tried to setup but get “ Invalid Authenticator App key for Amazon 2SV” even though I know the 2 factor key is correct (by logging into both amazon and alexa app)

Definitely something has changed Amazon side

Without a doubt, something has changed on Amazon’s side.

What if we look for some documentation on Amazon’s developer portal? Maybe we’ll find what we need to do that good old fork and adjust it while the official plugin doesn’t adjust! 🤔

Same issue with 2025.6.3

You did not upgrade to 2025.7 but still get the same error?

Yes

Also got the same issue. Tried removing completely, including from HACS, downloaded again and tried to setup but get “ Invalid Authenticator App key for Amazon 2SV” even though I know the 2 factor key is correct (by logging into both amazon and alexa app)

Definitely something has changed Amazon side

Same problem here

Logs

Registrador: alexapy.helpers Fonte: runner.py:154 Ocorreu pela primeira vez: 03:22:05 (2 ocorrências ) Último registro: 03:22:05

alexaapi.get_guard_details((<alexapy.alexalogin.AlexaLogin object at 0x7f6e8a5e80>,), {}): An error occurred accessing AlexaAPI: An exception of type TypeError occurred. Arguments: (“‘NoneType’ object is not subscriptable”,) alexaapi.get_network_details((<alexapy.alexalogin.AlexaLogin object at 0x7f6e8a5e80>,), {}): An error occurred accessing AlexaAPI: An exception of type TypeError occurred. Arguments: (“‘NoneType’ object is not subscriptable”,)

Este erro originou-se de uma integração personalizada.

Registrador: custom_components.alexa_media Fonte: helpers/update_coordinator.py:414 integração: Alexa Media Player (documentação, problemas) Ocorreu pela primeira vez: 03:22:05 (1 ocorrência ) Último registro: 03:22:05

Error fetching alexa_media data: Error communicating with API: ‘NoneType’ object is not subscriptable

Same issue for me. I upgraded from 6.3 to 7.1 and now this integration has stopped working. Get this error when trying to use it: “Action notify.alexa_media not found.”

I tried rolling back to 2025.6.3 but it still doesnt seem to work

I will try Reboot System now instead of Restart HA

EDIT:

Reboot System didn’t change anything too. I downgraded through ha core update --version, I’m using HASSOS.

I tried Reloading the AMP integration as well after downgrading, but I still get the same error

Same here, I skipped 7.0 and on installing 7.1 am seeing this issue, and error message

I did the same, I skipped 2025.7.0 and upgraded this morning to 2025.7.1.

Error fetching alexa_media data: Error communicating with API: 'NoneType' object is not subscriptable