-
Notifications
You must be signed in to change notification settings - Fork 464
Open
Labels
Description
I can understand if you don't want to do this as it's possible via presets, but I would like the option.
The way I would go about it is:
Get Zone info from
POST /DeviceProperties/Control HTTP/1.1
HOST: SONOS-IP:1400
SOAPACTION: "urn:schemas-upnp-org:service:DeviceProperties:1#GetZoneInfo"
CONTENT-TYPE: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<u:GetZoneInfo xmlns:u="urn:schemas-upnp-org:service:DeviceProperties:1" />
</s:Body>
</s:Envelope>
From the output get XX:XX:XX:XX:XX:XX remove all ":"
Then combine it with "x-sonos-htastream:RINCON_" + MACAddress + "01400:spdif"
<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-sonos-htastream:RINCON_XXXXXXXXXXXX01400:spdif
</CurrentURI>
<CurrentURIMetaData>
</CurrentURIMetaData>
</u:SetAVTransportURI>
</s:Body>
</s:Envelope>
Thanks for reading.