alandtse / alexa_media_player

This is a custom component to allow control of Amazon Alexa devices in Home Assistant using the unofficial Alexa API.
Apache License 2.0
1.52k stars 289 forks source link

Cannot install/reauthenticate Alexa Integration #2675

Open oywino opened 5 days ago

oywino commented 5 days ago

IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.

Describe the bug

After upgrading HA fram 2024.10.3 to 2024.11.1 I got a log error message saying that the Alexa Integration could not be loaded (see below). So I tried to re-install the integration which eventually required also deleting and re-creating the 2FA with a new key. Now, when completing the installation, I get a success message which tells me to ignore the "Aborted message" from HA. But there is no "Aborted message" anywhere! When I click "close" on the success message, there's no integration added, and no new messages at all in the log. When I restart HA, I get the below error message in the log all over again.

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

System details

Debug Logs (alexa_media & alexapy) Please provide logs.

Additional context

Logger: homeassistant.setup Source: setup.py:416 First occurred: 8:20:11 PM (1 occurrences) Last logged: 8:20:11 PM

Error during setup of component alexa_media Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component result = await task ^^^^^^^^^^ File "/config/custom_components/alexa_media/init.py", line 159, in async_setup CONF_PUBLIC_URL: account[CONF_PUBLIC_URL],


KeyError: 'public_url'
sihartley commented 4 days ago

Exact Same Issue here after HA upgrade to 2024.11.1 Config will not accept Public URL, even if hardcoded into init.py line 190

duquedaniel commented 4 days ago

Same error here, after upgrading alexa integration.

Logger: homeassistant.setup Source: setup.py:416 First occurred: 08:59:38 (1 occurrences) Last logged: 08:59:38

Error during setup of component alexa_media Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component result = await task ^^^^^^^^^^ File "/config/custom_components/alexa_media/init.py", line 159, in async_setup CONF_PUBLIC_URL: account[CONF_PUBLIC_URL],


KeyError: 'public_url'
eabraga69 commented 3 days ago

Mesmo problema por aqui. Integração Amazon alexa 4.13.8 não carrega após atualização do HA para a nova versão 2024.11.1 .

VolkerLaude commented 3 days ago

Exactly the same problem here:

File "/config/custom_components/alexa_media/init.py", line 159, in async_setup CONF_PUBLIC_URL: account[CONF_PUBLIC_URL],

thearchitectuk commented 2 days ago

I am also getting the same now :-( Not sure how to remediate it either.

image

mesut3000 commented 2 days ago

Same error here :

Logger: homeassistant.setup Source: setup.py:416 First occurred: 12:19:43 (1 occurrences) Last logged: 12:19:43

Error during setup of component alexa_media Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component result = await task ^^^^^^^^^^ File "/config/custom_components/alexa_media/init.py", line 159, in async_setup CONF_PUBLIC_URL: account[CONF_PUBLIC_URL],


KeyError: 'public_url'
danielbrunt57 commented 2 days ago

Do not install 4.13.8! Revert to AMP 4.13.7 and wait for 4.13.9 to come out. If HA renotifies you about 4.13.8, select skip to make it go away.

thearchitectuk commented 2 days ago

Does anyone know how I go about downgrading this integration? It's not something I've ever done before! Thanks

danielbrunt57 commented 2 days ago

After download, restart HA to effect change.

thearchitectuk commented 2 days ago
  • HACS (HA sidebar)
  • search "alexa"
  • Alexa Media Player
  • Overflow menu (3 vertical dots)
  • Redownload
  • Need a different version?
  • expand Release
  • Select v4.13.7

After download, restart HA to effect change.

That was easy! Thanks, that's fixed it for now :)

heftved commented 1 day ago

Same fix as above, moved back to 4.13.7 Ironically the 4.13.8 update says it fixes the "Missing Public URL" issue! Clearly it did not!

danielbrunt57 commented 20 hours ago

Same fix as above, moved back to 4.13.7 Ironically the 4.13.8 update says it fixes the "Missing Public URL" issue! Clearly it did not!

No, it made things worse. It is being reverted to 4.13.7 while I examine the whole mess surrounding public_url which actually dates back to when it became a configurable option (Aug/Sept?). Legacy YAML was never considered then as it was planned to be deprecated. 4.13.8 tried to fix things for YAML for its last few days but UI config became messed up. The plan now is announce it will be deprecated as of 4.14.0 and with no fixes for it between now and then.