alexa_media_player: notify.alexa_media_last_called is not working any more

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

I have been using scripts for a long time that first force the last device used to update and then send a notification to that device. These scripts are triggered via a routine in the Alexa app, but now (since the last update) it tells me that notify.alexa_media_last_called was not found as soon as the script is triggered.

The service cannot be found in the developer tools either.

Expected behavior

Screenshots

System details

  • Home Assistant version: 2025.7.1
  • alexa_media version (from const.py or HA startup log): 5.7.3
  • alexapy version (from pip show alexapy in homeasssistant container or HA startup log):
  • Is Amazon 2SV via Authenticator App (not 2SV OTP via SMS) enabled? <!—We will not debug login issues if unanswered—> (y/n):
  • Amazon Domain: amazon.de

Debug Logs (alexa_media & alexapy) Please provide logs.

Additional context

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 4
  • Comments: 15 (2 by maintainers)

Most upvoted comments

This is caused by the rollout of the new customer-history-records-v2 endpoint, which requires an anti-CSRF token obtainable by visiting an amazon webpage using the cookies saved by alexapy. I’m working on a fix.

Opened a PR with the fix here, if you want to give some feedback you can patch the files manually and restart Home Assistant to test it

Opened a PR with the fix here, if you want to give some feedback you can patch the files manually and restart Home Assistant to test it

I was looking for the files to patch, but cant seem to locate them. I’m running HA on a virtualbox VM (VDI).

Hmm, interesting. I had 5.7.2 installed, and after updating to HA 2025.7.1 the notify.alexa_media_last_called started failing. I updated to 5.7.3 and it fixed it. If it matters, the region is US-East

Works after updating to Version 5.7.3

Same here on HA version 2025.7.1 the integration is not working at all.