alexa_media_player: Alexa authentication bug, url is wrong, Cannot load Integration

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 Unlike others, I’ll provide as much info as I possibly can. If you need something else, pls be very specific on how to get it for you.

The problem lies in the automated url generation for authorization The :0 shouldn’t be there. If you remove it, you get a lot further, but it still won’t authenticate

To Reproduce

just try and add the Alexa Media Player

Expected behavior Add the integration

Authorize with a VALID url. Screenshots


System details

  • Home-assistant (version): 2023.5.0

  • alexa_media (version from or HA startup): From HACS 4.6.2

  • alexapy (version from pip show alexapy or HA startup): There is no way to tell. Integration isn’t available on startup.

  • Amazon 2FA is enabled (y/n)yes


Logs no way to provide logs if you can’t even load the integration. Please provide logs.

Additional context

About this issue

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

Most upvoted comments

SUCCESS. If I use a web browser (NOT the IOS ha app), AND I change the ha access URL to local from the default Nabucasa url, I’m able to authenticate and add the integration.


again, I’m happy to test further to help isolate the bug. 2C89FE71-F965-4E38-97F5-D9FC73D0C707