Jump to content

ISY944i, Sonos, IFTTT - Playing a favorite or queue (alarm recording)


RLSinRFV

Recommended Posts

I've recorded an MP3 audio file I'd like to play on my Sonos speakers based on a trigger (motion sensor for instance).  I've configured a Program Event in the ISY portal, have it working with IFTTT which calls a simple program that calls a Network Resourse.  I know the networking is working as when I run the ELSE loop, I can see my Sonos speaker volume change (to 75% as you'll see below) but I can't figure out how to determine the queue ID or how to identify a Sonos Favorite.

Any help would be much appreciated.  Below is what's defined as the Network Resourse my program calls.

POST /MediaRenderer/AVTransport/Control HTTP/1.1
Host: 192.168.1.215: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#1</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>75</Volume>
         <IncludeLinkedZones>0</IncludeLinkedZones>
         <ResetVolumeAfter>1</ResetVolumeAfter>
      </u:StartAutoplay>
   </s:Body>
</s:Envelope>

Edited by RLSinRFV
Link to comment
Guest
This topic is now closed to further replies.

×
×
  • Create New...