Automations with Music Assistant broken on 2.8.0

Yes. I did read the announcement.

Attention! This release contains a big change in the way we let you interact with players that support multiple protocols. These will be merged into one single player, greatly improving the UX. If you are using Home Assistant, this could result in entities being renamed that will break automations and/or dashboards.

Got it. Not a problem. I’ve only got three automations and a dashaboard. Not a big deal. For the dashboard it was a simple edit then re-select. Done.

The automations? I can not get them to work.

First thing, yes. I did update the automations. I edited the action in the web ui, then selected the device for the media player. Then I tested it. The triple-dot-menu → Run Action. Music plays as expected. All three automations updated. Good right? Nope!

What happens when the automation triggers it? This:

action: media_player.play_media
metadata: {}
data:
  media:
    media_content_id: library://track/8993
    media_content_type: music
    metadata:
      title: >-
        Bedtime Sleep Music
      thumbnail: null
      media_class: track
      children_media_class: null
      navigateIds:
        - {}
        - media_content_type: music_assistant
          media_content_id: playlists
        - media_content_type: music
          media_content_id: library://playlist/9
      browse_entity_id: media_player.squeezeplay_bedroom
  enqueue: replace
target:
  device_id: 174c1c92406a7ed7052b5c55f8a3506b

OK, yeah? So what? It played as it was supposed to, right? Nope. What actually happens is… nothing. AND! If I’m playing some other music at the time of the automation, that music stops, and then there’s nothing. The queue is completely empty.

But! If I go to the automation and run the action, it plays. So it isn’t the automation and I don’t have a typo in the song/playlist because the run action obviously works. Looking through the logs it looks like it is doing the right thing and playing music, but it’s not. There’s no sound at all. And nothing in the queue.

OK. So what if I go back to the action edit menu and I delete the entry again, add a new target, type in the name of the player, and this time instead of adding the “entity” entry, I select the “device” entry?

Nothing. That’s what happens. Same thing.

I’m running out of ideas and as far as I can tell the automations are just broken. But maybe it’s a squeezeplay problem (I only am using squeezeplay on RPi’s right now for all my music players)?

Anyone else have any suggestions on what to try next?

Thanks!

Maybe the automation didnt trigger.
Did you check the traces?

Yeah. Here’s tonight for the kids room where it changes to rain noise at 7:15.

And this is the timeline:

Notice that it didn’t play… it turned idle… And I was watching it! So I had the automation open and I hit “run action” :- worked right away.

I decided to go through the issues for Music Assistant. I found like a half dozen people having similar issues where some are already fixed and others are in progress. I’ll give it a week or so and see if there’s an update that fixes this. Otherwise I’ll just revert to the older version that worked.

Here’s but one that I found that’s similar:-