Music Assistant 2.0: Your Music, Your Players

Thanks for the response, the intial get_library action pulls in all the providers succesfully but then the play_media action will queue all (instead of the limit I set) of the podcasts from only one of those providers, it queues a different provider each time so it is picking at random.

What I’m aiming for is that it will pull back a limited number of podcasts from all my providers, feels like I’m doing something wrong in the play_media action?

If you are seeing 20 podcasts returned by the getblibrary call then change your media_id to

{{ random_podcast[‘items’] | map(attribute=‘uri’) | list }}

1 Like

I cannot thank you enough for your help, that’s nailed it!

Here’s one that’s got me stumped. I’m using media_player_template with an MA media_player as the base to allow me to pick presets for radio stations. This works without issue if I start the underlying MA player with a stream from the GUI. After that I can change it without issue.

If I reboot the server I have to go through all this again to let me be able to pick from my presets OR resume what I was listening to.

Any ideas?

Image so you can see what I am doing

Sorted it myself - added a helper and fired the source to MA directly via the underlying MA player.

I have the same implementation for radiostations and created an automation that automatically updates my list if I add new radiostations in MA Radio Library.

Perhaps you can find use for it as well?

alias: "Radio Select: Update list"
description: ""
triggers:
  - trigger: time_pattern
    minutes: "9"
    enabled: true
  - trigger: homeassistant
    event: start
conditions: []
actions:
  - action: music_assistant.search
    data:
      library_only: true
      config_entry_id: <your MA ID>
      media_type:
        - radio
      name: "%"
      limit: 13
    response_variable: results
  - action: input_select.set_options
    metadata: {}
    data:
      options: >
        {% set radios = results['radio'] | map(attribute='name') | list %} {{
        ["Choose"] + (radios if radios else ["No Stations Found"]) }}
    target:
      entity_id: input_select.radio_station
mode: single
2 Likes

I have tried setting up music assistant, it seems to work fine, but i reach my speakers via DLNA (a dlna server setup with J river media center). Streaming music to the DLNA targets works fine via music assistant, and so does play and pause and so on. But i can’t control the volume. If i let a media player control the DLNA instance directly in HA i can control the volume, but not when used as a player in music assistant. Any tips on what can be wrong? Some setting somewhere possibly?

For anyone else experiencing this, the Github issue is here: Spotify premium not playing ... all else is playing ok. · music-assistant · Discussion #3849 · GitHub

I’m still having an issue with Audible audiobooks. In the main, it works okay. However, I have 400 books in my Audible library and MA has only sync’d 166 of them. Is there a limit to the number of audiobooks MA can sync or is something else going on?

The last sync produced this in the logs:

2025-04-17 11:45:03.670 INFO (MainThread) [music_assistant.audible] Audible: Successfully retrieved 413 audiobooks from library.
2025-04-17 11:45:03.673 INFO (MainThread) [music_assistant.music] Sync task for Audible completed

but the audiobook library does not list 413 books. If I search for a particular title that is not listed, it is not found.

I am also having issues with syncing - literally 12 synced out of a possible 30. Annoyingly it hasn’t synced the book I am listening to :frowning:

2025-04-17 12:15:46.702 INFO (MainThread) [music_assistant.audible] Audible: Successfully retrieved 30 audiobooks from library
2025-04-17 12:15:46.704 INFO (MainThread) [music_assistant.music] Sync task for Audible completed

Sorry, MA only goes up to 452 books. After that they get burnt.

Just wanted to chime in with huge appreciation for the work so far! As will all projects, there will be plenty of improvements and ehancements down the road, but this is truly an awesome additon to the HA ecosystem.

1 Like

@P6Dave @Neil_Brownlee You don’t say what version of MA or ABS you are using. Best you ask in Discord or on GitHub for assistance.

1 Like

DLNA is a flaky protocol. However,you can assign a HA entity to control the volume. Home Assistant Plugin Provider - Music Assistant

Thanks, sorry if i am a bit slow here, if i add the HA entity for control, i can do volume and player controls, but not send music via for example spotify to it. I tried going in to the settings for the “DLNA-player” in music assitant, where you can set what controls the volume, thinking i could set the HA entity to do that, but I can only choose between “native” and “none”?

Then it sounds like you haven’t done the first step on the page I linked and setup the plugin correctly.

Thanks, you where right, I had forgotten to add the volume control entities in the HA-plugin

ABS? What’s that?

Whoops sorry I was thinking Audio Bookshelf. Try the latest beta for the fix for Audible

Will do. This seems to be similar to closed issue #3518.

I’m currently on MA 2.5.1

It’s not a huge issue for me just now and I’m happy to wait for a fix in the main version.