Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem selecting and adding sonos speakers to a group #2991

Closed
1 task done
harryfine opened this issue Sep 30, 2024 · 27 comments
Closed
1 task done

Problem selecting and adding sonos speakers to a group #2991

harryfine opened this issue Sep 30, 2024 · 27 comments

Comments

@harryfine
Copy link

harryfine commented Sep 30, 2024

What version of Music Assistant has the issue?

2.3.ob28

What version of the Home Assistant Integration have you got installed?

2024.9.1

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

  • Yes

The problem

I don't understand the logic of adding speakers, and I find I'm often stuck, unable to create the grouping that I want. I've attached below five pictures as an example.

In the example, I have the Guest Bedroom plus 6. I try to add Master Bedroom Pair, but get the error shown in the picture labelled Error Message. The speaker does not add.

In the picture, the Master Bedroom pair, showing as playing, and shows it's paired with Guest Bedroom. Of course that's impossible, as the Guest Bedroom Pair is the host to the other 6 speakers. I can't imagine you could have two different groups with overlaping speakers.

I've tried re-booting Home Assistant. Tried reloading the Sonos speakers in the settings. I still can't add the Master Bedroom Pair to the Guest Bedroom Plus 6 group.

In picture 4, you see that when I expand the Master Bedroom Pair, it shows the terrace (not an issue for this example) and the Guest Bedroom are available to add to form a group. Just for fun, I tried adding the Guest Bedroom to the Master Bedroom Pair. Of course I don't know how that makes sense when the Master Bedroom Pair is hosting the other 6. When I do try, I get the error "Command failed".

I'm sure removing the Sonos speakers from MA and re-adding will solve the problem, but that's not a solution and I would have to set up the speakers again with areas and labels and re-create the helper speaker group each time.

2
3
4
One
Error_Message

How to reproduce

Hard to know how to reproduce because always using different speakers, starting with different devices etc.

Music Providers

Radio browser, Tidal, local NAS and TuneIn radio

Player Providers

Sonos

Full log output

Logfile.txt

Additional information

I'm happy to try and troubleshoot if you give me scenarios to see if it can be reproduced.

What version of Home Assistant Core are your running

2024.9.3

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)

@OzGav
Copy link
Contributor

OzGav commented Sep 30, 2024

Why do you say

Of course I don't know how that makes sense when the Master Bedroom Pair is hosting the other 6

I see the GUEST BR is the master for the other six?

Edit: Also how are you grouping these? Are you doing it all through the player list or are you creating a sync group in the settings?

@harryfine
Copy link
Author

harryfine commented Oct 1, 2024 via email

@OzGav
Copy link
Contributor

OzGav commented Oct 1, 2024

Why don't you just ungroup them and start again? How are you grouping them, through the player list or are you creating a sync group in the settings?

@harryfine
Copy link
Author

harryfine commented Oct 1, 2024 via email

@OzGav
Copy link
Contributor

OzGav commented Oct 1, 2024

Does it work if you try and add terrace instead of master bedroom pair?

@OzGav
Copy link
Contributor

OzGav commented Oct 1, 2024

Hang on what do you mean you are grouping them using the HA SETTINGS?

@OzGav
Copy link
Contributor

OzGav commented Oct 1, 2024

With MA you have three options to group players https://music-assistant.io/ui/#grouping-players

@harryfine
Copy link
Author

harryfine commented Oct 1, 2024 via email

@harryfine
Copy link
Author

harryfine commented Oct 1, 2024 via email

@OzGav
Copy link
Contributor

OzGav commented Oct 1, 2024

OK so you are creating a SYNC GROUP initially which is method 2 in the docs. Then you are trying to group that using method 1. That is not supported.

@harryfine
Copy link
Author

harryfine commented Oct 1, 2024 via email

@OzGav
Copy link
Contributor

OzGav commented Oct 1, 2024

The problem here is you aren't using the correct terminology so that is why it is confusing. You said

I'm setting them through the MA settings using the paper clip.

You are now saying you are setting them via the Player List (and it is a chain icon). I can't see what you are doing I can only go on what you are saying.

You also haven't answered the question as to whether this happens if you try and add the terrace? I am wondering if it is a problem with the "pair" which I assume is actually two physical devices which have been grouped somehow else.

@OzGav
Copy link
Contributor

OzGav commented Oct 1, 2024

Also what do you mean by this

re-create the helper speaker group

@OzGav OzGav added the More info label Oct 1, 2024
@marcelveldt
Copy link
Member

I am looking into all grouping/syncing related issues at the moment. I will test this one as well while at it and fix anything that pops up. Also I have noticed that the Sonos speakers themselves are flaky since all their recent updates. Speakers randomly dropping from the synced players etc. so that also doesn't help.

@335iguy
Copy link

335iguy commented Oct 3, 2024

Have you tried using HomeAssistant Media Player as the provider? If you have the Sonos integration in HomeAssistant, you can choose the sonos speakers you want to add to MA.

I've been able to do this on S1 devices across my house. The Sonos/Sonos S1 provider doesn't work for me due to vlan issues (and in general Sonos hates vlans).

One thing to note is that you'll need to use queue flow mode to continuously play songs. This also has to be done across every sonos device (at this time).

Settings > Players > Choose player > Generic Settings > Enable Queue Flow Mode

I've had no issues grouping mine in MA with these settings. Although, YMMV.

@OzGav Perhaps we could add something like this to the Sonos troubleshooting section of the site if this seems to be the fix? I'm happy to make an edit request, but I'm not too keen on Github.

@OzGav
Copy link
Contributor

OzGav commented Oct 3, 2024

@335iguy actually it is not a fix. Using HA players is a fallback when the native players do not exist. If there are bugs in the native players they need to be fixed.

@tylerlucas
Copy link

I'm new to MA and have also struggled with player grouping. I find it to not be super intuitive and want to share a few thoughts since you're working on it @marcelveldt.

Three grouping options: https://music-assistant.io/ui/#grouping-players

  • Having three options is not intuitive. As a new user, how do I figure out which option is right for me?
  • Giving names to each option and clearly calling it out in the documentation could help. I suspect that some of the jargon issues in this thread would have been avoided if each option was given more distinct identification.
  • "As shown in the previous section players can be linked via the icon in the player list". This needs to be tweaked/removed from the documentation. Many people are landing directly on the grouping-players page and lack context on what the previous page had. Additionally, "via the icon" is confusing, because are icons everywhere.

Anyway, I would consider just rewriting this page to clarify, simplify, then link to an alternate page with additional detail for power users. Something like this:

Music Assistant gives users flexibility to play music to multiple speakers at the same time -- called "Player Grouping". This works even when the speakers are different types.

There are three methods of Player Grouping:

  1. Dynamic Player Link (recommended): Open the player list and click the chainlink icon on the right side of a player -- this starts a new dynamic link. Then, add as many players as you want. This is the quickest and easiest way to link speakers together on the fly.
  2. Permanent Player Group: Go to Settings, then click on the Speaker icon at the top to enter Player Settings. Permanent Groups will always appear in your Player list and are great for Player combinations that you enjoy most.
  3. Universal Groups: Go to X, Y, then do Z. This option is great for X, but not great for Y.

To learn more about each of Music Assistant's Player Grouping options, including other benefits, click here .

@OzGav
Copy link
Contributor

OzGav commented Oct 9, 2024

Groups are being reworked and the docs will be updated accordingly when that is released

@tylerlucas
Copy link

That’s good to hear! Thanks

@OzGav
Copy link
Contributor

OzGav commented Oct 19, 2024

Beta 30 has been released. Confirm this has been fixed

@tylerlucas
Copy link

Beta 30 has been released. Confirm this has been fixed

I just installed it but seem to be having an issue. I typically play music with a Sync group (3 sonos speakers in total). After installing b30, I'm unable to play music with the Sync group (hitting play doesn't do anything). When I go into the sync group player settings, it correctly shows "Living Room" (this is 2x ERA100), but the other speaker (a Move2) shows an odd name ("RINCON"). Screenshot attached. Happy to provide logs.
Screenshot 2024-10-18 at 8 48 49 PM

@OzGav
Copy link
Contributor

OzGav commented Oct 19, 2024

Was the player available when MA started? Is living room a stereo pair?

@harryfine
Copy link
Author

harryfine commented Oct 19, 2024 via email

@harryfine
Copy link
Author

harryfine commented Oct 19, 2024 via email

@OzGav
Copy link
Contributor

OzGav commented Oct 19, 2024

Thanks. A fair bit of effort went into testing and refining this. If you are satisified your intial issue is resolved please close this

@harryfine
Copy link
Author

harryfine commented Oct 19, 2024 via email

@tylerlucas
Copy link

Was the player available when MA started? Is living room a stereo pair?

Looks like it wasn't available when MA started last time. Works now. Thanks - nice work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants