svrooij / node-sonos-ts

:speaker: Sonos control library, use this library in your own appliction.
https://sonos-ts.svrooij.io/
MIT License
84 stars 18 forks source link

Missing the "leave_group" #34

Closed Rolf-M closed 4 years ago

Rolf-M commented 4 years ago

Hi Sven, as supposed by you, I had a look at your typescript version. Up to now I think it's cool, as the better group handling with the manager instance is something I was looking for. But I'm missing the "leave_group" function. I think I can make the speaker leaving the group using the "group_management" service, but it would be nice to have a leave function. Could you add this? Thanks Rolf

svrooij commented 4 years ago

Does this help? https://svrooij.github.io/node-sonos-ts/classes/_services_av_transport_service_.avtransportservice.html#becomecoordinatorofstandalonegroup

All "Services" are created upon first access, so this command should work.

device.AVTransportService.BecomeCoordinatorOfStandaloneGroup()