Sonos manufacturers a popular line of wireless speakers and also amplifiers. They support many of the popular streaming content services. The myServer 6 driver fully supports the publishes Sonos integration API. With the driver, you can send Transport Controls functions to the Sonos hardware like Stop / Start / FFwd / Rwd.
Unfortunately Sonos does not publish the means to select which streaming service to be used or which channel to select like Denon HEOS competing line of Smart speakers and amps.
Suggested macro (from myServer 5) as example:
Create a Macro called ZoneControl.Sonos. The contents look like:
Macro|
SetVariable|zone_volumevar_{{clientname}}~av_<P1>_volume!
SetVariable|zone_volumecmd_{{clientname}}~AV{{symbol_pipe}}<P>{{symbol_tilde}}Volume!
SetVariable|zone_mutevar_{{clientname}}~av_<P1>_mute!
SetVariable|zone_mutecmd_{{clientname}}~AV{{symbol_pipe}}<P1>{{symbol_tilde}}Mute!
SetVariable|zone_powervar_{{clientname}}~av_<P1>_state!
SetVariable|zone_powercmd_{{clientname}}~AV{{symbol_pipe}}<P1>{{symbol_tilde}}Power
Then on the Sonos Players dropdown change the command to:
Macro|
SetVariable|av_activesonos_{{clientname}}~{{value}}!
ZoneControl.Sonos|{{av_activesonos_{{clientname}}}}!
WebCmd|{{clientname}}~Loadscene|Sonos
Device type should be "Audio".
The Sonos api does not provide a mechanism for browsing sources and then navigating them. The best the api lets you do is save a Pandora station as Sonos favorite. The Sonos api does allow for browsing their favorites. You can then launch the pandora station from there.