alexa_media_player: Broken Home Assistant Configuration in HAss Core 2024.8.0
Describe the bug
Devices unresponsive under any circumstance, HA asking to reconfigure the extension but nothing happens.
To Reproduce
- Update Home Assistant Core to version 2024.8.0.
- Check the settings under devices and settings.
- Click on Alexa Media Player, check that the integration is working (it’s not).
- See the error, Home Assistant asks to reconfigure the integration.
Expected behavior
The integration to properly work as it did before updating HAss Core to 2024.8.0. To show all my echo devices as well as Alexa linked ones.
Screenshots
The UI Error is shown below:
System details
- Home-assistant (version): 2024.8.0
- alexa_media (version from
const.pyor HA startup): 4.12.6 - alexapy (version from
pip show alexapyor HA startup): - Amazon [2FA is enabled]: Yes
Logs
Don’t know where to find them! Tried to take a look to the log files but nothing seems to be relevant…
Additional context
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 19
- Comments: 108
This worked, change the manifest.json.
we have a temp solution but it needs to be fixxed in future versions. I would not close the issue until the team has fixxed it in the final version 😃
@F5ancesco I’d hold off from closing this issue until this fix is baked in to an official update from Alexa Media Player.
modify this : /homeassistant/custom_components/alexa_media/manifest.json
Now it works for me for two days and without restarting AMP. I used it to announce sensor states via TTS, and after the update I had to restart AMP every few minutes.
Thank you everyone for the help, I came right.
Working 100% now.
I’ve set my system options like this which seems to eliminate the API error: Too many requests which shuts down AMP requiring a reload to restart:
@sca075 Correct. AMP is only scanning amazon for alexa media capable devices (like Echo) in Alexa. The Alexa Smart Home skill is unrelated to AMP and enables seeing HA entities in the cloud. Home Assistant Cloud (Nabu Casa) makes that skill automatically available versus having to do all of the steps of creating a skill manually.
I’m confused as to what your issue is now…
@danielbrunt57 @sca075
After some testing to solve problems related to AMP integration I found that the “alexa” and “alexa_auth” files contained in homeassistant/.storage/ (which perhaps not everyone has in their configuration) are related to the configuration of Amazon aws to expose HA devices on Alexa. In fact, by removing the “alexa_auth” file (which contains a token) the “alexa” file cannot be changed to true. So I came to the conclusion that they actually have nothing to do with the AMP integration that still doesn’t work for me if I upgrade to HA 2024.8.1.
@petrotti77 this is an “international” community (comprendo la frustrazione, Italiano lo capiscono solo gli Italiani, quindi se non ti dispiace traduco) understanding you are frustrated as I’m Italian please allow me to traslate.
Text Translated. “After the update to version 4.12.7 the problem was partially solved for me. I can login but the my automatons that are integrating the notifications via echo’s are not working and continue to give problems of re-authentications each day. In this moment “Alexa Media Player” is disabled in my system. I’m thinking to restore the backups before 2024.8.0 if, anyone has any Idea how to solve the problem?”
sca075 advices
Most of the the time the solution is something there under our noses, and I think this issue with the dependencies was managed really well from community point of view and also the authors of this integrations that here I thanks for the fast and prompt respose.
I had to delete the integration and reinstall it which fixed the announcements to work again!
I am using:
AMP version 4.12.7 Home Assistant Core: 2024.8.0 Home Assistant Supervisor: 2024.08.0 Frontend: 20240806.1
In the configuration of alexa media player:
The url of your Nabu Casa account or whatever you use to access Home Assistant from aboard. the manifest.json as above is in the config/custom_components/alexa_media/ folder
@sca075 Hugest of props—that worked perfectly! 🙌🏻
@sca075
It was the pulic URL! Thanks a lot!
@herden-system I use amazon.de too and work fine, 500 = “Internal Server Error” means that there is some issue on the configuration of your instance, . Probably just reconfigure it and if you did change the mainifest.json as above all should work as usual. Note that it looks it is now required an external (https) url of your home assistant in the config. Hope this can help 😃 Edit: “alexapy==1.28.2” HA will not load properly… don’t know if it was because I mistyped something.
Or simply use Studio Code Server from within HA 😉
Thank you @sca075, that worked - I use Alexa Media Player for so many announcements, playing music, etc, I was (temporarily) lost before you gave us a fix 👍
@Shaunpottie you need to SSH inside the machine that has HA installed and locate the data directory like /etc/homeassistant/custom_components/alexa_media/ and then modify that file using a Text Editor like nano