Hi Again,
example of how to make Loxone to play a radio station on Sonos (in this example Magic Radio):
Using a Virtual Output for the player you want set the following paramters:
Command for ON: /MediaRenderer/AVTransport/Control
HTTP extensions for On: SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"
HTTP Post command for ON: <s:Envelope xmlns:s="
http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><CurrentURI>x-sonosapi-stream:s8213?sid=254&flags=32</CurrentURI><CurrentURIMetaData><DIDL-Lite xmlns:dc="
http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="R:0/0/3" parentID="R:0/0" restricted="true"><dc:title>Magic 105.4</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON65031_</desc></item></DIDL-Lite></CurrentURIMetaData></u:SetAVTransportURI></s:Body></s:Envelope>
HPPT method for ON: POST
This will set up the radio station in a paused mode - you then need to issue a play command - use the Loxone examples (or press play on the Sonos controller!)
To play a Sonos Playlist has more steps as you need to choose the playlist, then add to the queue, then play. All can be done.
It would be good if Loxone added some simpler functionality to these commands for Sonos, and or the ability to chain commands. Also the ability to see any errors that occur in sending commands.
Cheers Daivd