dstanley Posted September 19, 2016 Posted September 19, 2016 jmw, Please look at my post #5 in this thread for some discussion on grouping the SONOS players: http://forum.universal-devices.com/topic/8121-sonos-on-a-keypadlinc/?p=64718 Hopefully this is enough to get you going!? Let us know ... Dwight
jmw Posted September 21, 2016 Posted September 21, 2016 dstanley...thanks for pointing me in the right direction!...worked great. jmw
gefosterjr Posted January 16, 2017 Posted January 16, 2017 Finally got my Sonos and ISY working together. Many thanks to all that contributed to this. One issue I haven't see yet that I'm experiencing is my Sonos Playbar does double duty for my TV and music. So when I try to use my keypadlinc to control my music, I must first use my phone or PC to stop the TV from playing, then start the music using the phone or PC and only after this can I control the music with the keypadlinc. As long as I don't watch TV again, it works well with the keypadlinc. If I start watching TV again and later want to listen to music, I have to go through this process again. Can someone help me write a new program, or add to Play/Pause program, that stops the TV input, switches to the queue and start the music playing when I hit the Play/Pause button on the keypadlinc?
peekay Posted March 18, 2017 Posted March 18, 2017 Does the SOAPACTION for SetRelativeVolume still work? I can't seem to force my system to change volume relatively, only to absolute levels. It makes for a bit of a pain without feedback about current status until 5.x I currently only get actions like the following: X-SONOS-TARGET-UDN: uuid:RINCON_5CAAFD187A9501400 SOAPACTION: "urn:schemas-upnp-org:service:RenderingControl:1#SetVolume" <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:SetVolume xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"> <InstanceID>0</InstanceID> <Channel>Master</Channel> <DesiredVolume>16</DesiredVolume> </u:SetVolume> </s:Body> </s:Envelope>
KeviNH Posted March 18, 2017 Posted March 18, 2017 Question: are you using static IP addresses for your Sonos devices, or is there a program to figure out each IP address? A Network Resource needs a hostname or a specific IP address to send to, so you definitely want to set static IP addresses in any device you intend to address from a Network Resource. If you have a higher-end Internet router, you may be able to configure it with "DHCP reservations" to the same end result -- the living room sonos always has the same IP all the time.
RLSinRFV Posted September 24, 2017 Posted September 24, 2017 First, like others have said, this is AMAZING and incredibly valuable. As a devoted member of the Isy/Insteon/Sonos family, this makes the platform better, more useful and an incredibly valuable investment. Based on the excellent original instructions and subsequent posts, I had this all up and running in about 10 minutes. I recently moved to Western Colorado after building a new home in Stilwell, KS and living in it only 3.5 short years (yup, there's a story there). Regardless, when I built the Stilwell, KS house, I went Full-Insteon and had it tightly integrated into my Elk M1Gold security panel. After moving, I started to explore ideas of using my Isy994i as the basis of my DIY security system. Door and motion sensors tied into my lighting and sending email/txt messages going to all the right recipients. Insteon has a siren but you can't yet control it via the Isy994i, but I have Sonos integration now. So, I simply recorded a "You have violated my home security perimeter. The authorities have been contacted and surveillance video is now recording you..." audio file. I created a Sonos "Alarm" Playlist with that audio file, and EUREKA - I have a custom siren. Thanks for all the great work on this - Brilliant! RLS 1
RGKS Posted December 18, 2017 Posted December 18, 2017 I’ve sold my Russound system and switched to Sonos since this integration. I do have one question. Is there code or zip files available for switching to line-in & toggling favories. I’ve looked on different site and have found some code but haven’t been able to make it work.
RGKS Posted December 19, 2017 Posted December 19, 2017 (edited) So I was able to get the Line-In working but still haven't figured out how to toggle the favorites list. See code for Line-In below. Cheers. POST /MediaRenderer/AVTransport/Control HTTP/1.1Host: 192.168.2.227:1400 Connection: Close Content-Type: text/xml; charset="utf-8" Content-Length: 382 SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI" <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-rincon-stream:RINCON_5CAAFDE8144801400</CurrentURI><CurrentURIMetaData></CurrentURIMetaData></u:SetAVTransportURI></s:Body></s:Envelope> Edited December 19, 2017 by RGKS
dstanley Posted December 19, 2017 Posted December 19, 2017 (edited) RGKS There was at least one previous discussion of favorite and playlist selection - here is one thread that may help you a bit: https://forum.universal-devices.com/topic/14920-how-to-control-sonos-streaming-radio-stations/ I have sold my house (and automation) so I am sorry that i cannot be of any help anymore - I did however post my Sonos findings here for myself and others to find later. Good luck and please keep this forum informed of your progress! Dwight Edited December 25, 2017 by dstanley
Jason F Posted March 27, 2019 Posted March 27, 2019 Sorry to dig up an old thread... trying to get the sonos to play a playlist. The playlist is the first (and only) playlist on my amp. I'm using SD:1.... Is there a way to confirm the correct playlist number in the sonos amp? POST /MediaRenderer/AVTransport/Control HTTP/1.1 Host: 10.10.200.31:1400 Connection: Close Content-Type: text/xml; charset="utf-8" Content-Length: 802 SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#StartAutoplay" <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <u:StartAutoplay xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"> <InstanceID>0</InstanceID> <ProgramURI>file:///jffs/settings/savedqueues.rsq#2</ProgramURI> <ProgramMetaData><DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upup="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/"><itemid="SD:1" parentID="SD"</ProgramMetaData> <Volume>50</Volume> <IncludeLinkedZones>0</IncludeLinkedZones> <ResetVolumeAfter>1</ResetVolumeAfter> </u:StartAutoplay> </s:Body> </s:Envelope>
dstanley Posted March 27, 2019 Posted March 27, 2019 (edited) Jason, It is possible that it is NOT SD:1 and you could just try the next sequence of numbers - Renaming the Playlist item(s) does not change this reference so I am thinking that you 'may' have had an SD:1 and deleted it so now your actual playlist is SD:2 even though you only have one showing. To try to find the exact entry ID you might have to use a Sonos Controller and then use a computer program like DEVICE SPY in the Intel Tools for UPnP Technology package to actually send requests to the Sonos for that type of information. Each persons Sonos Library could be setup differently. You may be able to read some more info from the following site - it helped me to learn the small bit that I know: http://travelmarx.blogspot.ca/2010/06/exploring-sonos-via-upnp.html Trail and error with SD:#'s with a controller open might be the easiest solution! Dwight My older findings on the autoplay and Sonos is here: Edited March 27, 2019 by dstanley Added old forum posting 1
Jason F Posted March 28, 2019 Posted March 28, 2019 So I have figured out that my playlist number was 0, using devicespy. My code is as follows. It is successfully clearing the current queue, also setting the volume correctly, it just is not triggering the playlist. What am I doing wrong? Also, is it possible to trigger the sonos to switch to "Line In"? POST /MediaRenderer/AVTransport/Control HTTP/1.1 Host: 10.10.200.31:1400 Connection: Close Content-Type: text/xml; charset="utf-8" Content-Length: 802 SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#StartAutoplay" <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <u:StartAutoplay xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"> <InstanceID>0</InstanceID> <ProgramURI>file:///jffs/settings/savedqueues.rsq#2</ProgramURI> <ProgramMetaData><DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upup="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/"><itemid="SD:0" parentID="SD"</ProgramMetaData> <Volume>50</Volume> <IncludeLinkedZones>0</IncludeLinkedZones> <ResetVolumeAfter>1</ResetVolumeAfter> </u:StartAutoplay> </s:Body> </s:Envelope> 2
Recommended Posts