Page 1 of 1

Sonos Commands

Posted: Mon Jul 16, 2012 7:18 pm
by member_c837
Commands for a Sonos system. The line in command needs changing for every system. Use port 1400, command suffix \x0D\x0A, don't tick UDP, click 'disconnect after each command'

Re: Sonos Commands

Posted: Mon Jul 30, 2012 9:55 pm
by WiredSound
Great work, which line in command needs changing?

Re: Sonos Commands

Posted: Tue Jul 31, 2012 8:13 am
by DemoPad
The LINE IN command has a reference in it to stream:RINCON_xxxxxxxxxxxxxx - this should be changed to the local ID of the sonos zone player which has the line-in connected. This can be found by browsing to http://xxx.xxx.xxx.xxx:1400/status/zp (where xxx.xxx.xxx.xxx is the IP address of the zone player).

Re: Sonos Commands

Posted: Mon Oct 22, 2012 7:38 pm
by kasmonkey
Hi just a little new to getting this to work with my sonos.

Do I need to set the port to anything specific?
Do I need to set the Command Suffix?
and the UDP on or off ?
and if I have two Sonos players (one hard wired and the other Wireless) does it matter which IP I use?


many thanks

Re: Sonos Commands

Posted: Tue Oct 23, 2012 10:39 am
by DemoPad
port 1400, command suffix \x0D\x0A, don't tick UDP, click 'disconnect after each command'. The IP address you specify is the one to which commands are sent, so if you have 2 zones, you'll need 2 devices.

Re: Sonos Commands

Posted: Tue Oct 23, 2012 11:45 am
by dansonamission
Is there any feedback for a sonos zone, such as the volume?

Re: Sonos Commands

Posted: Fri Oct 26, 2012 12:07 pm
by kasmonkey
DemoPad wrote:port 1400, command suffix \x0D\x0A, don't tick UDP, click 'disconnect after each command'. The IP address you specify is the one to which commands are sent, so if you have 2 zones, you'll need 2 devices.

It works! many thanks. soooo much easier when someone tells you how to do it :)

Re: Sonos Commands

Posted: Fri Oct 26, 2012 12:09 pm
by kasmonkey
dansonamission wrote:Is there any feedback for a sonos zone, such as the volume?
I think Sonos only allow a very limited amount of control but if you do find out if this is possible or not do share :)

Re: Sonos Commands

Posted: Sun Dec 08, 2013 10:24 pm
by Baljy74
Hi,

anyone know we can control the Sonos Playbar via demopad?

We can get the TV remote (Sony) to control the Playbar but we require demopad to control the volume as well.

Any advice appreciated.

regards,

Baljy.

Re: Sonos Commands

Posted: Tue Dec 10, 2013 10:42 am
by Baljy74
Hi,

i am trying to setup the volume cmd for the Playbar and i have the following cmd. Can someone confirm if thats correct? Is the IP address format correct?

POST /MediaRenderer/RenderingControl/Control HTTP/1.1\x0D\x0ACONNECTION: close HOST:192.168.1.11:1400\x0D\x0ACONTENT-LENGTH: 324\x0D\x0ACONTENT-TYPE: text/xml; charset="utf-8"\x0D\x0ASOAPACTION: "urn:schemas-upnp-org:service:RenderingControl:1#SetRelativeVolume"\x0D\x0A\x0D\x0A<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encodin ... tiveVolume xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><InstanceID>0</InstanceID><Channel>Master</Channel><Adjustment>10</Adjustment></u:SetRelativeVolume></s:Body></s:Envelope>\x0D\x0A

Thanks.

Re: Sonos Commands

Posted: Thu Sep 18, 2014 10:32 am
by Electronic Interiors
Hi Guys.

Can someone help me with either the "TV" Command or tell me whether I can manipulate the "line In" Command to switch Sonos Playbar input to "TV" everything else works except for this I have copied in the RINCON*****etc part of the string but it still doesn't work.(all though this is for the line in, not TV (optical) in. which is a different input judging by the input selection on the Sonos control app.

Thanks in advance :)

POST /MediaRenderer/AVTransport/Control HTTP/1.1\x0D\x0ASOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"\x0D\x0ACONTENT-TYPE: text/xml ; charset="utf-8"\x0D\x0AHOST: 1400\x0D\x0AContent-Length: 464\x0D\x0A\x0D\x0A<?xml version="1.0" encoding="utf-8"?>\x0D\x0A<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">\x0D\x0A <s:Body>\x0D\x0A <u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">\x0D\x0A <InstanceID>0</InstanceID>\x0D\x0A <CurrentURI>x-rincon-stream:RINCON_B8E93771E16101400</CurrentURI>\x0D\x0A <CurrentURIMetaData />\x0D\x0A </u:SetAVTransportURI>\x0D\x0A </s:Body>\x0D\x0A</s:Envelope> \x0D\x0A

Re: Sonos Commands

Posted: Tue Dec 06, 2016 11:28 am
by DemoPad
kasmonkey wrote:
dansonamission wrote:Is there any feedback for a sonos zone, such as the volume?
I think Sonos only allow a very limited amount of control but if you do find out if this is possible or not do share :)

See http://www.demopad.com/forum/viewtopic.php?f=10&t=6932