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

Sonos S2 and S1 in the same network, #783

Closed
moikorg opened this issue Dec 2, 2020 · 6 comments
Closed

Sonos S2 and S1 in the same network, #783

moikorg opened this issue Dec 2, 2020 · 6 comments

Comments

@moikorg
Copy link

moikorg commented Dec 2, 2020

Hi everybody

I have some "new" Sonos (S2) components (Amp, Playbar, Sub, P1) and have also one old Player:5 (S1) component, both on the same local network.

Now I have the node-sonos-http-api server (running in a Docker) discovers sometimes the new environment (S2), but also sometimes the old one (S1). Is there a configuration or trick to select S1 or S2?

Thank you very much for any help
Mike

@jishi
Copy link
Owner

jishi commented Dec 2, 2020

You can specify a household identifier in settings.json to force it to only associate with a specific system. See more here: #396

That endpoint mentioned to find the household ID no longer exists, but you can use http://ip_of_player:1400/status/zp to find it, the last entry (HouseholdControlID) is the string that you want.

It is also documented here: https://github.com/jishi/node-sonos-http-api#settingsjson

@jishi jishi closed this as completed Dec 2, 2020
@moikorg
Copy link
Author

moikorg commented Dec 2, 2020

Okay, thanks, it worked, once I removed everything after the dot:
HHID_<abc>.<xyz>

only the part HHID_<abc> must be used. <xyz> must be removed

@mochi-co
Copy link

mochi-co commented Jan 5, 2021

Just to clarify this for anyone who comes here with this problem, I was struggling with this too, and setting household didn't work for me until I noticed @moikorg 's comment and removed the value following the last . in the HouseholdControlID. For example:

If you have Sonos_xeABCDEFGHIJKA.124sdfsdfsgss, use Sonos_xeABCDEFGHIJKA as your household. value.

@Sjekke
Copy link

Sjekke commented Nov 12, 2021

Just to clarify this for anyone who comes here with this problem, I was struggling with this too, and setting household didn't work for me until I noticed @moikorg 's comment and removed the value following the last . in the HouseholdControlID. For example:

If you have Sonos_xeABCDEFGHIJKA.124sdfsdfsgss, use Sonos_xeABCDEFGHIJKA as your household. value.

Do you run 2 configs?

@killthekid
Copy link

Can you please post a sample where you put in in the settings.js file?

@rolfsorensen
Copy link

Can you please post a sample where you put in in the settings.js file?

Here's a sample:

{
"players": [
{
"roomName": "Kontorbord",
"volume": 10
}
],
"playMode": {
"shuffle": false,
"repeat": "all",
"crossfade": false
},
"pauseOthers": false,
"household": "Sonos_SDpeoA1EXXXXXXXXtJLAa2h6D"
}

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

No branches or pull requests

6 participants