Jump to content

Insteon and Sonos with ISY-994i


jonathanud

Recommended Posts

  • 3 months later...
Posted

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?

  • 2 months later...
Posted

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>

Posted

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.

  • 6 months later...
Posted

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

  • Like 1
  • 2 months later...
Posted

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.

Posted (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 by RGKS
Posted (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 by dstanley
  • 1 year later...
Posted

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>&lt;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/"&gt;&lt;itemid="SD:1" parentID="SD"</ProgramMetaData>
         <Volume>50</Volume>
         <IncludeLinkedZones>0</IncludeLinkedZones>
         <ResetVolumeAfter>1</ResetVolumeAfter>
      </u:StartAutoplay>
   </s:Body>
</s:Envelope>

Posted (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 by dstanley
Added old forum posting
  • Thanks 1
Posted

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>&lt;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/"&gt;&lt;itemid="SD:0" parentID="SD"</ProgramMetaData>
         <Volume>50</Volume>
         <IncludeLinkedZones>0</IncludeLinkedZones>
         <ResetVolumeAfter>1</ResetVolumeAfter>
      </u:StartAutoplay>
   </s:Body>
</s:Envelope>

  • Like 2
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.4k
×
×
  • Create New...