Music Assistant 2.0: Your Music, Your Players

Ok I won’t bother responding to you in the future.

2 Likes

I’m trying to add Spotify as a music provider, but when I’m adding the Client ID and then click on the authentication button I get the error message: INVALID_CLIENT: Invalid redirect URI

I’ve added these two to Redirect URIs to Spotify Developer Dashboard suggested from this post Spotify wont configure :: Invaid redirect URI - #6 by RichardU

https://my.home-assistant.io/redirect/oauth http://homeassistant.local:8123/auth/external/callback

I tried default_config_disabler and use it to disable the my plugin, suggested from this post Spotify error INVALID_CLIENT: Invalid redirect URI - #15 by jankynuke , doesn’t work

I also found this post Spotify error INVALID_CLIENT: Invalid redirect URI to Link to OAuth2 Authorize Callback](Link to OAuth2 Authorize Callback – My Home Assistant) but I can’t get my head over how to use it and what to chose in the list and then how to apply the link to get it to work. I’ve tried searching but I can’t find a solution i understand

I had no problem with the beta, but i started clean ha and now i get this problem. No change in Spotify Developer Dashboard

Can anyone point me in the right direction?

@Keellan have a look at the docs for the correct callback URL Spotify - Music Assistant

1 Like

As a quick update on getting my Sonos speaker to work with Airplay, it appears that it actually does support Airplay 1. It just wasn’t being discovered (in MA or HA). In HA, I was able to manually add it by its IP address, but MA can’t do that.
To get it working, I went to the speaker’s web controls http://<ip>:1400/tools and did a manual mDNS announce. It was immediately discovered in MA, and works great! So I do still think there is a case to allow manual setup by IP address, but this mDNS announce might be good enough.

1 Like

@mwaterbu Thanks. Ill add that info to the issue. It seems odd that the device isn’t automatically doing an announce but will see what, if anything, can be done.

ICYMI. MA 2.4.0 beta 8 contains some awesome new features!

  • Support for iBroadcast
  • A Configurable DSP with Parametric Equalizer. Available in the settings for the player
  • New options when opening the MA UI
  • Native media controls added (includes cool lockscreen controls on mobile devices)

4 Likes

How does one get this new feature? Opening 2.4.0b8 in Edge on my Pixel phone doesn’t seem to show any lock screen controls.

Awesome Release. :tada:

Already waited for the player links, and the Lockscreen Controls are handy too (had to kill the PWA and start it again, then they showed up @mterry63

Thanks. I had to play with it a bit but finally got it to work. I’m not getting album art however, although I get it in the web page. At least I see the controls now.

I have this issue, and I think it is very simple but can’t find it. I have a Sonos Arc, added to my TV and a Nokia 8010 streaming device connected to the TV too.

When I try to start Spotify from MA2.0 (beta8 currently) it says External Source Active. I do believe that’s correct, but with the normal spotify app on my phone it starts the stream. I’d like to overrule the active source.

Spotify does start to my Five and my One, so MA , spotify and HA are configured correctly.

That just means that some other app is streaming to that device. When you try and play from MA it should take over. Check the logs if it doesn’t

Hi, when I group my Sonos speakers, there is a state attribute called group_members.

For the master speaker, it displays the grouped speakers, with the master speaker on top.

For instance:

media_player.bathroom_sonos

group_members:
  - media_player.bathroom_sonos
  - media_player.bedroom_sonos
  - media_player.office_sonos

For the other speakers, the value is empty, which is a different behaviour from regular Home Assistant Sonos integration.

media_player.office_sonos

group_members: []

I am using it for a template sensor for conditional cards so they are not shown for speakers that are controlled by other speakers.

Is this the expected behaviour, or an omission?

I installed this yesterday and so far am VERY impressed.
I have 3x Plex music libraries on my NAS (208, 614 & 198 GB).

Is there a way to change the Artist tag being used? For me, using AlbumArtist is more useful than TrackArtist. Having so many albums in my collection, if I have every single track artist, it blows out to a crazy amount of artists due to some artists only having 1-2 tracks on a compilation for example.
This is how Plex handles Artists.

How my plex looks:

Vs how my MA looks:

If under the settings I could switch the main Artist tag being used that would be incredible.

1 Like

There is a filter button at the top to toggle between all and only album artists. The one with the red dot.

I think that is what you are looking for?

image

2 Likes

Sorry i see it’s answered above

MA is crashing when browsing belgium radio… anyone has the same problem ?

@Michel Ah! Thank you! I went from 8,426 artists down to 1,314 … and it looks exactly how I like it.

@OzGav you’ve done an amazing job.

I’m trying to set my Sonos so that no matter what was previously queued, when my wife presses the physical button on the Sonos on Sunday morning, it plays the radio station she always wants to hear on Sunday mornings. Prior to MA, I accomplished this with a klunky but functional automation: at 0400 Sunday, set volume to 0, play the radio station for 10 seconds, stop the radio station, set volume to 50.

After installing MA, I edited the automation to change the media player actions to music assistant play media actions. The automation ran as scheduled, but when I pressed the physical button, nothing happened on the speaker.

I just discovered the Automatically play (resume on power on) setting for the Sonos in MA. I am trying to test that to see if it starts up the last played station when the physical button is pressed.

I’m also wondering instead of quietly playing the radio station for 10 seconds to make it active, can I use the Enqueue - Add to Queue option (or one of the others) to have the radio station play the next time the speaker is turned on?

Were you able to do this with MA easily? Thanks!

I don’t use Sonos but I wouldn’t expect that would work as the queue is stored in MA not the device. You would need a button that triggers an event in HA