Music Assistant 2.0: Your Music, Your Players

You know there was a weird thing when I turned tabs off with “track”. I had to click it twice in the menu to get it to disappear from the enabled list. The rest disabled normally. I didn’t think at the time to report a bug, but maybe there is one.

That said, it’s not showing on your enabled list. Maybe try enabling, then disabling again and make sure that it comes off the lists as the others do?

Once complete clear cache on app?

Hi,

I am trying to trigger the play of a random album via music assistant. The URI for the built-in is reported as “random_album” by the “Provider Details” So I tried

        tap_action:
          action: call-service
          service: mass.play_media
          target:
            entity_id: media_player.piano_speaker_2
          data:
            media_type: playlist
            media_id: random_album

But I get an error about not being able to " render random_album to a playable item".

What media id should I use? .

TIA

Ok looking at the screenshots you have supplied I think you misunderstand what the setting does. It removes those options from the MENU not the HOME SCREEN. The title of the setting is Enabled Menu Items

Use the actual playlist name “Random Album (from library)”

You might also be interested in this Play Random Album from Specific Genre? · music-assistant · Discussion #1637 · GitHub

Thank you for clearing that up. Which menu are you referring to? Along the bottom it only shows home, search and library.

Thank you.

I also had to click some of those checkboxes a couple of times before they disappeared, it does seem like a bug but I didn’t mention it as the issue for me was that it didn’t seem to be functional.

@OzGav I get it now. It was confusing me because on the phone app in HA, it only has the three buttons on the bottom, the far right being Library. Selecting Library takes you to the others.

On the desktop through HA, it has 7 or 8 (depending on which checkboxes), no library button as there is room for everything.

So my bad, but there is still a weird thing sometimes when selecting checkboxes as someone else mentioned.

Safari is a problem in that it doesn’t seem to automatically refresh after a setting change so it could just be that.

I was able to get this up and running with Spotify and Google Cast devices (Home Mini, and Nest Mini) but the play button never allowed me to pause or stop.

Also, if I wanted to play to a dedicated Raspberry Pi, what is the most reliable way to configure the pi?

I am not sure what causes this, but some files are missing / not correct in Music Assistant, vs in Plex, from the same filesystem.

Plex:

Music Assitant:
image

Here it is in Tag&Rename.

I suspect that it will be called out that the Folder does not match the Album Name, and that its missing Album Artist.

I will counter with… Sure, but its missing track 1,2 and 6. If its not going to work because its missing album artist, than none of it should work . And you can see in Plex this is not an issue.

If would be good if you can come to Discord or a GitHub and we can explore the pause button issue further.

As for your Raspberry Pi use PiCorePlayer

I just discovered MA today. I’m having beginner issues accessing file system/remote share:

Music Assistant has support for SMB (also known as samba or CIFS) shares and DFS. Select the music provider “Filesystem (remote share)” and configure the (fqdn) hostname (or alternatively the IP address) to your server, the name of the share and optionally any subfolders.

I’ve tried different syntaxes for hostname/share name/IP address on my local Windows network NAS for file system/remote share (HA running raspberry pi), but keep getting errors like ‘Unable to resolve → xx.xxx.xxx.xxx, make sure address is resolvable’.

How should I be phrasing this?

I have been successful after several tries accessing Plex on my NAS.

As above this thread is not suitable for extensive help so you need to visit Discord or GitHub. However, you are correct that MA requires correct tagging or there will be problems. You could check the logs for errors

Sounds like a network problem. Please review the troubleshooting docs

I used the IP address of my server and had no issues.

Edit: filed this as an issue as I appear to be the first one to run into this.

I can’t get this add-on to work at all in my HAOS installation. The Music assistant server is installed, but does not start. There is no indication as to why. The only thing I see in the log is this :

2024-05-17 18:37:09.475 INFO (MainThread) [music_assistant] Starting Music Assistant Server (d7c9bea7bb33494ab022e38713a33496) version 2.0.4 - HA add-on: True - Safe mode: False
2024-05-17 18:37:09.479 INFO (MainThread) [music_assistant.cache] Initializing cache controller...
2024-05-17 18:37:09.546 INFO (MainThread) [music_assistant.music] Using a sync interval of 180 minutes.
2024-05-17 18:37:09.684 INFO (MainThread) [music_assistant.streams] Detected ffmpeg version 6.0.1 with libsoxr support
2024-05-17 18:37:09.684 INFO (MainThread) [music_assistant.streams] Starting server on  0.0.0.0:8097 - base url: http://192.168.100.150:8097
2024-05-17 18:37:09.689 INFO (MainThread) [music_assistant.webserver] Starting server on  172.30.32.1:8095 - base url: http://172.30.32.1:8095
2024-05-17 18:37:09.765 INFO (MainThread) [music_assistant] Loaded music provider Music Assistant
2024-05-17 18:37:09.765 INFO (MainThread) [music_assistant] Loaded metadata provider TheAudioDB Metadata provider
2024-05-17 18:37:09.765 INFO (MainThread) [music_assistant] Loaded metadata provider MusicBrainz Metadata provider
2024-05-17 18:37:09.765 INFO (MainThread) [music_assistant] Loaded metadata provider fanart.tv Metadata provider
2024-05-17 18:37:09.799 INFO (MainThread) [music_assistant.music] Sync task for Music Assistant completed

The above was actually logged prior to rebooting HAOS. The reboot didn’t make a difference. Nothing was logged afterwards even when I tried to start it manually.

Also, from the docs, it’s not obvious how one would use the add-on if it started. Some messages are referring to a tab on the left - there is none of that for me.

Edit: even safe mode does not start. Nothing gets logged at all.

Edit2: after uninstall/reinstalling the add-on, there is something logged in safe mode :

2024-05-17 19:07:39.114 DEBUG (MainThread) [music_assistant.server.controllers.config] Started with empty storage: No persistent storage file found.
2024-05-17 19:07:39.114 DEBUG (MainThread) [music_assistant.server.controllers.config] Started.
2024-05-17 19:07:39.114 INFO (MainThread) [music_assistant] Starting Music Assistant Server (67642f9c4d2c48a2a24061c5070c113a) version 2.0.4 - HA add-on: True - Safe mode: True
2024-05-17 19:07:39.119 INFO (MainThread) [music_assistant.cache] Initializing cache controller...
2024-05-17 19:07:39.133 DEBUG (MainThread) [music_assistant.cache] Running automatic cleanup...
2024-05-17 19:07:39.134 DEBUG (MainThread) [music_assistant.cache] Automatic cleanup finished (cleaned up 0 records)
2024-05-17 19:07:39.202 DEBUG (MainThread) [music_assistant.music] Compacting database...
2024-05-17 19:07:39.206 DEBUG (MainThread) [music_assistant.music] Compacting database done
2024-05-17 19:07:39.207 INFO (MainThread) [music_assistant.music] Using a sync interval of 180 minutes.
2024-05-17 19:07:39.352 INFO (MainThread) [music_assistant.streams] Detected ffmpeg version 6.0.1 with libsoxr support
2024-05-17 19:07:39.353 INFO (MainThread) [music_assistant.streams] Starting server on  0.0.0.0:8097 - base url: http://192.168.100.150:8097
2024-05-17 19:07:39.360 INFO (MainThread) [music_assistant.webserver] Starting server on  172.30.32.1:8095 - base url: http://172.30.32.1:8095
2024-05-17 19:07:39.387 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Jellyfin Media Server Library
2024-05-17 19:07:39.392 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Tune-In Radio
2024-05-17 19:07:39.394 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Universal Group Player
2024-05-17 19:07:39.399 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Music Assistant
2024-05-17 19:07:39.400 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Filesystem (remote share)
2024-05-17 19:07:39.405 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Soundcloud
2024-05-17 19:07:39.406 DEBUG (MainThread) [music_assistant] Loaded manifest for provider TheAudioDB Metadata provider
2024-05-17 19:07:39.414 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Chromecast
2024-05-17 19:07:39.430 DEBUG (MainThread) [music_assistant] Loaded manifest for provider UPnP/DLNA Player provider
2024-05-17 19:07:39.441 DEBUG (MainThread) [music_assistant] Loaded manifest for provider SONOS
2024-05-17 19:07:39.442 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Filesystem (local disk)
2024-05-17 19:07:39.448 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Deezer
2024-05-17 19:07:39.453 DEBUG (MainThread) [music_assistant] Loaded manifest for provider MusicBrainz Metadata provider
2024-05-17 19:07:39.466 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Spotify
2024-05-17 19:07:39.474 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Airplay
2024-05-17 19:07:39.479 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Home Assistant
2024-05-17 19:07:39.485 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Home Assistant MediaPlayers
2024-05-17 19:07:39.490 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Tidal
2024-05-17 19:07:39.491 DEBUG (MainThread) [music_assistant] Loaded manifest for provider RadioBrowser
2024-05-17 19:07:39.496 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Snapcast
2024-05-17 19:07:39.502 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Plex Media Server Library
2024-05-17 19:07:39.507 DEBUG (MainThread) [music_assistant] Loaded manifest for provider fanart.tv Metadata provider
2024-05-17 19:07:39.509 DEBUG (MainThread) [music_assistant] Loaded manifest for provider YouTube Music
2024-05-17 19:07:39.510 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Fully Kiosk Browser
2024-05-17 19:07:39.517 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Qobuz
2024-05-17 19:07:39.519 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Slimproto (Squeezebox players)
2024-05-17 19:07:39.519 DEBUG (MainThread) [music_assistant] Loaded manifest for provider Open Subsonic Media Server Library
2024-05-17 19:07:39.523 DEBUG (MainThread) [music_assistant] Starting Zeroconf broadcast...
2024-05-17 19:07:44.118 DEBUG (MainThread) [music_assistant.server.controllers.config] Saved data to persistent storage

It does look like the MA server is starting.

On my setup, it is the HA integration that does not loads since the recent core update.

To check that the MA server is running, you could ssh into your HA box and run

curl 172.30.32.1:8095

You should get some output ending in

  <body>
    <noscript>
      <strong
        >We're sorry but musicassistant-frontend doesn't work properly without
        JavaScript enabled. Please enable it to continue.</strong
      >
    </noscript>
    <div id="app"></div>
    
  </body>
</html>

This should show that the server is running.

Update: I restarted HA and the integration loaded (also pyscript)

François , I didn’t even have the integration installed when I ran into the issue. Only the add-on. The “Music assistant” tab says the add-on is not running. I’ll run the curl command later as I’m now having dinner outside, and my home VPN server certificate expired.
Pretty sure it’s going to show that it’s running, but hanged.

Best to continue in the github issue.

I love this! Have moved a bunch of things away and use this instead. Really great.
One thing driving me nuts though I’m hoping someone can help with, is there a way to pick a default speaker/output?

I’m getting really frustrated every time I open the app to have to select the speaker on which I play 99 % of my music.

Maybe I should make a feature request?