Alexa Media Player Crashing

Every time that I have to restart HA I also have to delete and reinstall Alexa Media Player.
I am using v 4.12.10 of Alexa Media Player and 2024.8.2 of HA.
I have read through many posts and looked at the suggestions of changing items in the custom_components, but all the recommended changes seem to be there.
I do not know what else to do, any suggestions.

I don’t know the root cause but after each restart, in 5 minutes, I reload the integration and it goes back to normal healthy state.

alias: "Reload alexa integration after restart "
description: ""
trigger:
  - platform: homeassistant
    event: start
condition:
  - condition: state
    entity_id: media_player.bedroom_echo_dot
    state: unavailable
action:
  - delay:
      hours: 0
      minutes: 5
      seconds: 0
      milliseconds: 0
  - metadata: {}
    data: {}
    target:
      entity_id: media_player.bedroom_echo_dot
    action: homeassistant.reload_config_entry
mode: single

The integration reload after HA starts seems to be a viable workaround.

The issue relates to how cookie handling has evolved recently, most notably
Cookies Having Independent Partitioned State (CHIPS)

cookies.py in Python 3.12 does not deal with the “partitioned” key in the new cookies and the only solution I’ve found is to replace the cookies.py in HA’s Python 3.12 with the beta version I found which should be coming in Python 3.13 in October. It’s unknown at this point when HA will upgrade Core to Python 3.13 after the beta ends. I’m guessing maybe December, or later??

1 Like

I think a 5 minute delay is excessive and I realize there is a need to wait a bit. When I first tried that automation, 30 seconds seemed to work on my system 90% of the time so you might try 1 minute and see how that works.

1 Like