Skip to main content

Hello, 

 

I try to build a small side project, to manage the speakers in my house.

I want to be able to create a new group of speakers.

to do so i want to use 

createGroup (sonos.com)

{protocol}://api.ws.sonos.com/control/api/{version}/households/{householdId}/groups/createGroup

 

This endpoints take the playerIds and householdId, and is working fine…

But i would like to have my music "follow” the group, and if i understand correctly i have to give the

musicContextGroupId

But i can't find this field anywhere inside of the /getGroups endpoints…
 

u
{
"_objectType": "group",
"id": "RINCON_48A6B83C422401400:1745150303",
"name": "TV Room",
"coordinatorId": "RINCON_48A6B83C467401400",
"playbackState": "PLAYBACK_STATE_IDLE",
"playerIds": l
"RINCON_48A6B822467401400"
]
},
{
"_objectType": "group",
"id": "RINCON_48A6B8EA189801400:1322091760",
"name": "Bathroom",
"coordinatorId": "RINCON_48A622EA189801400",
"playbackState": "PLAYBACK_STATE_IDLE",
"playerIds": l
"RINCON_48A6B8E2289801400"
]
},
{
"_objectType": "group",
"id": "RINCON_542A1BC5225401400:3022722830",
"name": "Dining Room Front + 2",
"coordinatorId": "RINCON_542A1225A65401400",
"playbackState": "PLAYBACK_STATE_PAUSED",
"playerIds": l
"RINCON_542A1BC22E3201400",
"RINCON_542A1BC221A201400",
"RINCON_542A1BC2265401400"
]
}
]
  • without the musicContextGroupId the endpoint wokrs fine
  • i tried to replace the musicContextGroupId with 
    • id
    • coordinatorId

but nothing seems to work…

 

What am i doing wrong ? 

Be the first to reply!

Reply