Spotify and Sonos issues w/ playback

I’m on 2022.2.0 on Home Assistant OS 7.2

I have the Spotify integration setup, created an app and setup w/ the configuration.yaml. I also have the Sonos integration up and working.

I also added 2 Spotify accounts and that worked, I can see and browse both of their media in the Media Browser.

The issue is if I make a media_player for one of the spotify accounts, the “source” is only the phone, not the Sonos, even if it’s currently playing on a Sonos at that time, it doesn’t send that down as a source, so it’s hard to use HA to play on any device, I can play on a device from my phone and then control it from HA.

So then I move to the Sonos, and I browse there there. It picks the first Spotify in the list of the two, and I don’t see a way to select music from the second Spotify account. I don’t see a way to change the source on a media_player and it know I have 2 spotfiy accounts.

So if I can’t select it from the sonos media player and I get no sources from the spotify media player then I can’t really start music from HA.

I don’t see any real errors in the logs related to this

Any ideas?

I did learn how to add things in Sonos mobile app to “My Sonos” and then those will show up as sources in the media_player for the Sonos devices… For now I removed the second Spotify account, I think when you have two it just goes alphabetically? I’m not sure how that is supposed to work, but I can’t find a way to switch the two spotify accounts…

I also can’t figure out spotify source, seems flaky, I think the API just stops sending back a source after awhile, I read about that, but I can’t get it to show up things right when I play them

I think I’m also facing this issue - I have 3 Spotify accounts integrated and the same 3 setup on my Sonos accounts. In the media browser all 3 accounts show up as sources but when browsing a Sonos device it defaults to my personal Spotify account and can’t figure out how to change it. Would be great if there was a way to switch accounts on the player within the media browser or if not possible use a service call or something to change default account