Start playing playlist using music assistant via automation

Following the docs on music assistant, I cannot Work out how to get music assistant to play a playlist or even a song via automation. My goal is to use node-red to call music assistant in certain scenarios, but first I want to get it working locally in an automation which I cannot do.

It seems pretty straightforward for media play, but I’m curious if anyone has got it going with an automation and can share it?

I have had success using the MA-specific play action like:

action: mass.play_media
target:
  entity_id: media_player.example
data:
  media_type: playlist
  media_id: My Favorites
  enqueue: play
1 Like

ok cool - i have MA installed and running but don’t see that as an action when seelction action type. odd

i must be missing a setting - looking! thank you

I added the player providers in the settings which was missing. I have reset home assistant, however mass does not come as an option under action at all. I’m obviously missing something else but it’s not entirely obvious what.

Are you sure you have installed the MA integration, not just the server/addon?

had to add it in after installing. whoops ! thank you