alexa_media_player: Media controls do not appear to work and return a 400 error

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

As of latest HA version 2023.05.0-2 Media controls no longer work. Volume still works

To Reproduce

Attempt to play/pause/turn off echo

Expected behavior

Device should respond to actions



System details

  • Home-assistant (version): 2023.05.0-2
  • alexa_media (version from or HA startup): 4.6.2
  • alexapy (version from pip show alexapy or HA startup):
  • Amazon 2FA is enabled (y/n). yes


2023-05-06 00:18:06.808 DEBUG (MainThread) [alexapy.alexaapi] ********************: POST: returned 400:Bad Request:application/json 2023-05-06 00:18:06.808 DEBUG (MainThread) [alexapy.alexaapi] Returning None due to status: 400

Additional context

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 20 (5 by maintainers)

Most upvoted comments

Tried the updated version and get this upon setup, both from cold-start and reload:

Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/”, line 387, in async_setup result = await component.async_setup_entry(hass, self) File “/config/custom_components/alexa_media/”, line 326, in async_setup_entry await login.login(cookies=await login.load_cookie()) File “/usr/local/lib/python3.10/site-packages/alexapy/”, line 347, in load_cookie return_cookies = self._get_cookies_from_session() File “/usr/local/lib/python3.10/site-packages/alexapy/”, line 554, in _get_cookies_from_session cookies = cookie_jar.filter_cookies(URL(f"https://{site}")) File “/usr/local/lib/python3.10/site-packages/aiohttp/”, line 239, in filter_cookies self._do_expiration() File “/usr/local/lib/python3.10/site-packages/aiohttp/”, line 150, in _do_expiration self.clear(lambda x: False) File “/usr/local/lib/python3.10/site-packages/aiohttp/”, line 115, in clear for (domain, path), cookie in self._cookies.items(): ValueError: not enough values to unpack (expected 2, got 0)

Actually, I just confirmed it on the US servers too.