Closed simowilso closed 1 month ago
Why would you expect MA to open when you click on Browse Media from a HA media player card?
You should see the following and clicking on the Artist, Album, Tracks, Playlists or Radio Stations will show you the contents of the MA database
Sorry my description was misleading. I got that view but there were no artist/album/track etc. items. However, I've just checked again and it's working now, suspect there was some delay after re-scanning the resources.
I'm in the same situation and while I agree the behavior shouldn't be open a new webview on MA, I don't see Artists, Albums, Tracks, Playlists...
@Aterocana Then you are either not targeting an MA player or you dont have the integration installed
I've installed it through HACS and I see the integration in Integrations list under Settings:
Inside it I see all devices I can stream to (which are the Music Assistant associated devices).
In options I configured it like this:
Am I missing something?
Did your sources sync ok - do you see something similar to this in your log file?
2024-07-20 17:28:28.118 WARNING (MainThread) [music_assistant.music] Sync task for Plex Media Server Library completed with errors
I don't have Plex, I have only local files mounted as volumes in Music Assistant container. I correctly see them in MA web interface, but I can't see them in HA.
If I reload MA integration no logs are displayed and since the stream target devices are display (and I can control them) I assume it's working.
Here's the logs restarting MA container:
2024-07-24 07:54:18.700 WARNING (MainThread) [aiorun] Stopping the loop
2024-07-24 07:54:18.701 INFO (MainThread) [aiorun] Entering shutdown phase.
2024-07-24 07:54:18.701 INFO (MainThread) [aiorun] Executing provided shutdown_callback.
2024-07-24 07:54:18.701 INFO (MainThread) [root] shutdown requested!
2024-07-24 07:54:18.701 INFO (MainThread) [music_assistant] Stop called, cleaning up...
2024-07-24 07:54:22.199 ERROR (Thread-7) [pychromecast.socket_client] [XGIMI MoGo 2 Pro(192.168.68.24):8009] Failed to connect. No retries.
2024-07-24 07:54:32.244 INFO (MainThread) [music_assistant] Starting Music Assistant Server (41e1640aa85949989ee684bcc703e628) version 2.0.0rc1 - HA add-on: False - Safe mode: False
2024-07-24 07:54:32.268 INFO (MainThread) [music_assistant.cache] Initializing cache controller...
2024-07-24 07:54:32.386 INFO (MainThread) [music_assistant.music] Using a sync interval of 180 minutes.
2024-07-24 07:54:33.536 INFO (MainThread) [music_assistant.streams] Detected ffmpeg version 6.0.1 with libsoxr support
2024-07-24 07:54:33.536 INFO (MainThread) [music_assistant.streams] Starting server on 0.0.0.0:8097 - base url: http://192.168.68.17:8097
2024-07-24 07:54:33.550 INFO (MainThread) [music_assistant.webserver] Starting server on 0.0.0.0:8095 - base url: http://192.168.68.17:8095
2024-07-24 07:54:34.302 INFO (MainThread) [music_assistant] Loaded metadata provider fanart.tv Metadata provider
2024-07-24 07:54:34.303 INFO (MainThread) [music_assistant] Loaded metadata provider MusicBrainz Metadata provider
2024-07-24 07:54:34.304 INFO (MainThread) [music_assistant] Loaded metadata provider TheAudioDB Metadata provider
2024-07-24 07:54:34.306 INFO (MainThread) [music_assistant] Loaded music provider Music Assistant
2024-07-24 07:54:34.318 INFO (MainThread) [music_assistant] Loaded player provider Chromecast
2024-07-24 07:54:34.450 INFO (MainThread) [music_assistant] Loaded music provider Filesystem (local disk)
2024-07-24 07:54:34.454 INFO (MainThread) [music_assistant] Loaded plugin provider Home Assistant
2024-07-24 07:54:34.460 INFO (MainThread) [music_assistant.providers.snapcast] Started connection to Snapserver 192.168.68.55:1705
2024-07-24 07:54:34.461 INFO (MainThread) [music_assistant] Loaded player provider Snapcast
2024-07-24 07:54:34.463 INFO (MainThread) [music_assistant.players] Player registered: b8:27:eb:7b:bf:2d/snapcast
2024-07-24 07:54:34.464 INFO (MainThread) [music_assistant.players] Player registered: 0b2649d0-0975-4661-9141-92b328021d6d/Snapweb client
2024-07-24 07:54:34.465 INFO (MainThread) [music_assistant.players] Player registered: 841c9e5e-4a44-408e-b66e-cb7abd376ef7/M2007J3SG
2024-07-24 07:54:34.655 INFO (MainThread) [music_assistant.music] Sync task for Music Assistant completed
2024-07-24 07:55:13.715 INFO (MainThread) [music_assistant.music] Sync task for Filesystem (local disk) completed
2024-07-24 07:56:00.012 INFO (MainThread) [music_assistant.players] Player registered: c1675b1d-9165-c9b7-d008-bdcc788956a0/Chromecast Open Space
Not sure then - this is exactly the same problem as I was having, I don't know how it fixed itself...
Thanks for the help anyway, let's see if @OzGav has some suggestion.
Firstly (and this is unrelated to the browse problem) it appears you haven't setup the Integration correctly. The conversation agent should be a special one you have setup to use Voice with MA otherwise it should be blank. See the docs for this.
You need to make sure that the medai player card you are using is targetting the MA media player, that is, one of the 5 that are listed under the Integration. If you target the HA equivalent you won't see anything.
Well, thanks for the help but as soon as I set None under Conversation Agent it is automatically set back to Home Assistant. Anyway I don't use a conversation Agent.
I updated Music Assistant and Home Assistant docker images and it seems it's now working, I can see media from MA, thanks a lot for your help! Have a nice day.
Well I spoke too soon because I've lost all the albums/tracks/artists etc. again.
Any hints what to check please @OzGav ? I've restarted both MA and HA
You are targeting a HA player. Look at the header it has SONOS
D'oh, what an idiot I am. Thanks.
What version of Music Assistant has the issue?
2.1.0rc3
What version of the Home Assistant Integration have you got installed?
2024.7.1.b0
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?
The problem
After re-installing/restarting several times, I can no longer browse MA media from within HA
How to reproduce
Open a media player in Home Assistant dashboard
Click the "Browse Media" button.
Expected result: Music Assistant media browser view is opened Actual result: Home Assistant media browser is shown
Music Providers
I only use Plex, it work previously
Player Providers
Sonos, not grouped
Full log output
music-assistant.log
Additional information
No response
What version of Home Assistant Core are your running
2024.6.4
What type of installation are you running?
Home Assistant Container
On what type of hardware are you running?
Raspberry Pi