<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Controlling Sonos using HTTP requests?]]></title><description><![CDATA[<p dir="auto">You can control a Sonos device using the UPnP protocol over HTTP. Some examples can be found on:<br />
<a href="http://forum.universal-devices.com/topic/11739-sonos-integration/" rel="nofollow ugc">http://forum.universal-devices.com/topic/11739-sonos-integration/</a></p>
<p dir="auto">But how do I send these kind of commands using the <strong>Internet request</strong> action in the Flic app for IOS? What goes in the <strong>URL</strong> field and what goes in the <strong>Body</strong> field when using POST mode? And does the content of the body have to be encoded or escaped?</p>
<p dir="auto">If you have successfully programmed your Flic for controlling Sonos using UPnP commands, I would appreciate an example with the exact contents of your <strong>Internet request</strong> settings.</p>
<p dir="auto">-Dennis</p>
]]></description><link>https://community.flic.io/topic/105/controlling-sonos-using-http-requests</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 08:15:29 GMT</lastBuildDate><atom:link href="https://community.flic.io/topic/105.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Sep 2016 20:35:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Mon, 13 Mar 2017 06:52:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/417">@bambi2000</a> Thanks. I did manage to get the basics working (as well as find the streams for P3 and P4 <img src="https://community.flic.io/assets/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=qo8gs0ne6uk" class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face" title=":-)" alt="🙂" /> ). I also managed to group players by setting CurrentURI of the "slave" IP to the UUID of the "master".</p>
<p dir="auto">&lt;s:Envelope xmlns:s="<a href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow ugc">http://schemas.xmlsoap.org/soap/envelope/</a>" s:encodingStyle="<a href="http://schemas.xmlsoap.org/soap/encoding/" rel="nofollow ugc">http://schemas.xmlsoap.org/soap/encoding/</a>"&gt;&lt;s:Body&gt;&lt;u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"&gt;&lt;InstanceID&gt;0&lt;/InstanceID&gt;&lt;CurrentURI&gt;x-rincon:RINCON_XXXXXXXXXXXX1400&lt;/CurrentURI&gt;&lt;CurrentURIMetaData /&gt;&lt;/u:SetAVTransportURI&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;</p>
<p dir="auto">Now I just wish Flic would create some sort of copy function to make it easier to reuse those commands:-) And that Sonos would open their official API for better integration and remote control.</p>
]]></description><link>https://community.flic.io/post/684</link><guid isPermaLink="true">https://community.flic.io/post/684</guid><dc:creator><![CDATA[thomas204]]></dc:creator><pubDate>Mon, 13 Mar 2017 06:52:25 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Sun, 12 Mar 2017 20:59:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/659">@thomas204</a> It's DR P1. Metadata is not needed to play the stream. I tried to use the metadata-tag to show the real name of the station rather than the file name (in this case <strong>A03H.mp3</strong>), but I didn't succeed.</p>
<p dir="auto">-Dennis</p>
]]></description><link>https://community.flic.io/post/683</link><guid isPermaLink="true">https://community.flic.io/post/683</guid><dc:creator><![CDATA[bambi2000]]></dc:creator><pubDate>Sun, 12 Mar 2017 20:59:26 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Sat, 04 Mar 2017 17:31:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/417">@bambi2000</a> er det P3? Den prøver jeg at kopiere <img src="https://community.flic.io/assets/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=qo8gs0ne6uk" class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face" title=":)" alt="🙂" /><br />
Doesn't it need metadata?</p>
]]></description><link>https://community.flic.io/post/681</link><guid isPermaLink="true">https://community.flic.io/post/681</guid><dc:creator><![CDATA[thomas204]]></dc:creator><pubDate>Sat, 04 Mar 2017 17:31:21 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Sat, 04 Mar 2017 12:52:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/659">@thomas204</a> I haven't tested case sensitivity, but I have got a lot of "internal server errors" too, while trying to get the commands working, so I have have just followed the examples I have come across literally. Also, in my setup the contents of the body field is one long string.</p>
<p dir="auto">Then following example selects a specific radio stream (the rest of the fields are identical to those in my previous post):</p>
<p dir="auto"><strong>Body:</strong> <code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;&lt;s:Body&gt;&lt;u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"&gt;&lt;InstanceID&gt;0&lt;/InstanceID&gt;&lt;CurrentURI&gt;x-rincon-mp3radio://live-icy.gss.dr.dk/A/A03H.mp3.m3u&lt;/CurrentURI&gt;&lt;CurrentURIMetaData /&gt;&lt;/u:SetAVTransportURI&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;</code></p>
<p dir="auto">-Dennis</p>
]]></description><link>https://community.flic.io/post/680</link><guid isPermaLink="true">https://community.flic.io/post/680</guid><dc:creator><![CDATA[bambi2000]]></dc:creator><pubDate>Sat, 04 Mar 2017 12:52:51 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Thu, 02 Mar 2017 09:16:42 GMT]]></title><description><![CDATA[<p dir="auto">Hmm. (minor) Progress. I managed to send a "play" command to one player but I am not able to tune it to a radio station or add a player to a group (I found a thread mentioning that setting currentURI to x-rincon:{UUID of master} should do the trick).<br />
Any attempt at setting currentURI returns error 500:-(</p>
<p dir="auto">/Thomas</p>
]]></description><link>https://community.flic.io/post/673</link><guid isPermaLink="true">https://community.flic.io/post/673</guid><dc:creator><![CDATA[thomas204]]></dc:creator><pubDate>Thu, 02 Mar 2017 09:16:42 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Tue, 28 Feb 2017 20:41:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/417">@bambi2000</a> thanks! Apparently this is over my capabilities:( All I get is an internal server error (500). And I also have a little trouble actually desciphering the command part of the code.<br />
How sensitive is the code to case? And should it all be one long string or are there any CR's (looks like there is one).</p>
<p dir="auto">/Thomas</p>
]]></description><link>https://community.flic.io/post/671</link><guid isPermaLink="true">https://community.flic.io/post/671</guid><dc:creator><![CDATA[thomas204]]></dc:creator><pubDate>Tue, 28 Feb 2017 20:41:18 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Sat, 25 Feb 2017 14:00:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/659">@thomas204</a> Sure, I havn't tried to group or ungroup players using requests, but here is the request that selects <strong>Line-In</strong> as input:</p>
<p dir="auto"><strong>URL:</strong> <code>http://192.168.172.67:1400/MediaRenderer/AVTransport/Control</code></p>
<p dir="auto"><strong>Method:</strong> <code>POST</code></p>
<p dir="auto"><strong>Body:</strong> <code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;&lt;s:Body&gt;&lt;u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"&gt;&lt;InstanceID&gt;0&lt;/InstanceID&gt;&lt;CurrentURI&gt;x-rincon-stream:RINCON_000E5887151E01400&lt;/CurrentURI&gt;&lt;CurrentURIMetaData /&gt;&lt;/u:SetAVTransportURI&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;</code></p>
<p dir="auto"><strong>Content type:</strong> <code>text/xml</code></p>
<p dir="auto"><strong>Key:</strong> <code>SOAPACTION</code></p>
<p dir="auto"><strong>Value:</strong> <code>"urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"</code></p>
<p dir="auto">You will have to replace <code>192.168.172.67</code> with the IP address of your Sonos device, and <code>RINCON_000E5887151E01400</code> with the identifier assigned to your Sonos device (I think the last part is the MAC address).</p>
<p dir="auto">-Dennis</p>
]]></description><link>https://community.flic.io/post/661</link><guid isPermaLink="true">https://community.flic.io/post/661</guid><dc:creator><![CDATA[bambi2000]]></dc:creator><pubDate>Sat, 25 Feb 2017 14:00:55 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Tue, 21 Feb 2017 13:54:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/417">@bambi2000</a> Any chance you could post an example with the exact contents of (one of) your internet request settings?</p>
<p dir="auto">I would like to have (for a start):</p>
<ul>
<li>A Flic button group 3 players, then start a specific radio station</li>
<li>Another button that ungroups if grouped and then starts playback of a different favorite on a single player<br />
Is that possible?</li>
</ul>
<p dir="auto">I am sure if I could get an example of the basic "framework" needed then i should be able to tweak the commands myself</p>
<p dir="auto">/Thomas</p>
]]></description><link>https://community.flic.io/post/660</link><guid isPermaLink="true">https://community.flic.io/post/660</guid><dc:creator><![CDATA[thomas204]]></dc:creator><pubDate>Tue, 21 Feb 2017 13:54:15 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Wed, 08 Feb 2017 09:11:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/55">@anton</a> Custom headers was implemented some time ago, and I have successfully created requests that allows me to toggle between playing from line in, the queue and radio stations -- my own preset button for Sonos! <img src="https://community.flic.io/assets/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=qo8gs0ne6uk" class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face" title=":-)" alt="🙂" /></p>
<p dir="auto">-Dennis</p>
]]></description><link>https://community.flic.io/post/640</link><guid isPermaLink="true">https://community.flic.io/post/640</guid><dc:creator><![CDATA[bambi2000]]></dc:creator><pubDate>Wed, 08 Feb 2017 09:11:58 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Fri, 25 Nov 2016 14:47:23 GMT]]></title><description><![CDATA[<p dir="auto">Anything happening here?</p>
]]></description><link>https://community.flic.io/post/585</link><guid isPermaLink="true">https://community.flic.io/post/585</guid><dc:creator><![CDATA[Jaap]]></dc:creator><pubDate>Fri, 25 Nov 2016 14:47:23 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Tue, 01 Nov 2016 08:37:20 GMT]]></title><description><![CDATA[<p dir="auto">Hi Anton,</p>
<p dir="auto">I'm jumping in on this topic.<br />
Since I have Sonos in multiple rooms I got myself 4 flic's but the options are not sufficient for what I thought would be possible.</p>
<p dir="auto">The scenario's I was thinking about;</p>
<ol>
<li>Leaving the house;<br />
I placed a Flic at our entrance. By pressing it, it should stop all Sonos players from playing. Some of them may be in a group, some stand alone.<br />
There is an option for "toggle" but that would start not-playing speakers.</li>
</ol>
<p dir="auto">The I thought of using "pause". Same problem here. When there's another sonos not playing, that one would start playing.</p>
<p dir="auto">It would be wonderfull to have an option like "Stop all playing speakers"</p>
<ol start="2">
<li>Turn on specific channel or spotify playlist on set-volume</li>
</ol>
<p dir="auto">In the morning we listen to a news radio station. I intended to put a button in the bathroom which, when clicked once, would a) remove the bathroom speaker from any groups (so music only plays there) b) select the desired radiostation c) set the speaker to a fixes volume.</p>
<p dir="auto">At the same time I would also like to be able to do the same for a Spotify playlist and have it play my "Starred" list on shuffle.</p>
<p dir="auto">I was thinking of solving it on my own by installing a Raspberry Pi and running something like <a href="https://github.com/SoCo/SoCo" rel="nofollow ugc">https://github.com/SoCo/SoCo</a> but seeing you're looking into this I was thinking it might help to share my ideas with you.</p>
<p dir="auto">Kind regards,</p>
<p dir="auto">Jaap</p>
]]></description><link>https://community.flic.io/post/551</link><guid isPermaLink="true">https://community.flic.io/post/551</guid><dc:creator><![CDATA[Jaap]]></dc:creator><pubDate>Tue, 01 Nov 2016 08:37:20 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Fri, 28 Oct 2016 15:37:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/502">@johan213</a> <a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/499">@mail174</a> Thanks for the suggestions! We are looking at it.</p>
]]></description><link>https://community.flic.io/post/543</link><guid isPermaLink="true">https://community.flic.io/post/543</guid><dc:creator><![CDATA[anton]]></dc:creator><pubDate>Fri, 28 Oct 2016 15:37:01 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Tue, 25 Oct 2016 23:56:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/55">@anton</a> I would love to see some more Sonos actions. These are the tasks I do everyday:</p>
<ul>
<li>With bedroom, Replace queue with Sonos playlist "good night Ebba"</li>
<li>With bedroom, Set Volume to 10</li>
<li>With Lukas, Replace queue with Sonos favorite "goodnight.mp3"</li>
<li>With Lukas, Set Volume to 15</li>
<li>With Lukas, Set Crossfade to On</li>
<li>With Lukas, Set Repeat On</li>
<li>With Lukas, Set sleep timer to 45 min</li>
</ul>
<p dir="auto">And on my wish list I also would like to have a toggle button for two different Volume levels for the Sonos playing my TV sound. Watching movies when the kids are asleep I always have to turn the volume up and down (slow) when there is loud music or car crashes or someone whispers. TV remotes miss the button "Semi mute" and having this option with the press of a button would be super awesome!</p>
]]></description><link>https://community.flic.io/post/536</link><guid isPermaLink="true">https://community.flic.io/post/536</guid><dc:creator><![CDATA[johan213]]></dc:creator><pubDate>Tue, 25 Oct 2016 23:56:58 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Tue, 25 Oct 2016 13:38:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/55">@anton</a> features request for Sonos integration:</p>
<ul>
<li>support grouping of speakers</li>
<li>allow to play saved favorites</li>
<li>support to set the volume level for playing favorites/playlist</li>
<li>set the max play duration (sleep timer)</li>
<li>let you inspire by features of <a href="https://play.google.com/store/apps/details?id=dk.youtec.android.macronos&amp;hl=de" rel="nofollow ugc">Macronos</a></li>
</ul>
]]></description><link>https://community.flic.io/post/534</link><guid isPermaLink="true">https://community.flic.io/post/534</guid><dc:creator><![CDATA[mail174]]></dc:creator><pubDate>Tue, 25 Oct 2016 13:38:35 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Thu, 06 Oct 2016 13:01:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/417">@bambi2000</a> Btw, are there any particular features that you are looking for when it comes to the Sonos integration? I am actually working on it at the moment, so if you have any suggestions (beyond those already mentioned) then let me know!</p>
]]></description><link>https://community.flic.io/post/474</link><guid isPermaLink="true">https://community.flic.io/post/474</guid><dc:creator><![CDATA[anton]]></dc:creator><pubDate>Thu, 06 Oct 2016 13:01:47 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Wed, 05 Oct 2016 16:50:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/55">@anton</a> Thanks for the update!</p>
<p dir="auto">-Dennis</p>
]]></description><link>https://community.flic.io/post/471</link><guid isPermaLink="true">https://community.flic.io/post/471</guid><dc:creator><![CDATA[bambi2000]]></dc:creator><pubDate>Wed, 05 Oct 2016 16:50:54 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Sat, 01 Oct 2016 09:50:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.flic.io/uid/417">@bambi2000</a> Improvement to the Internet Request action is in our roadmap, but I can not comment on when it will be released. Although custom headers it is a commonly requested feature so I hope we will be able to add it soon. We are currently also looking at making improvements to the Sonos action itself in order to extend the features there. For example to select songs and playlists.</p>
]]></description><link>https://community.flic.io/post/458</link><guid isPermaLink="true">https://community.flic.io/post/458</guid><dc:creator><![CDATA[anton]]></dc:creator><pubDate>Sat, 01 Oct 2016 09:50:40 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Thu, 29 Sep 2016 19:44:02 GMT]]></title><description><![CDATA[<p dir="auto">My Sonos devices already have a button for play/pause/next, so I would like to use my Flic to select what to play, like a predefined radio station, the line-in or the queue.</p>
<p dir="auto">I thought I saw a post saying that custom headers for the <strong>Internet request</strong> was added recently, but apparently it isn't true. Is it in the works?</p>
<p dir="auto">-Dennis</p>
]]></description><link>https://community.flic.io/post/456</link><guid isPermaLink="true">https://community.flic.io/post/456</guid><dc:creator><![CDATA[bambi2000]]></dc:creator><pubDate>Thu, 29 Sep 2016 19:44:02 GMT</pubDate></item><item><title><![CDATA[Reply to Controlling Sonos using HTTP requests? on Thu, 22 Sep 2016 07:22:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Although it should be possible to do this, the Internet Request action doesn't have support for adding custom request headers, which is needed for Sonos. It would also be a real pain to set Sonos up like this.</p>
<p dir="auto">May I ask why you are not using the Sonos action? Is it something you are missing?</p>
]]></description><link>https://community.flic.io/post/449</link><guid isPermaLink="true">https://community.flic.io/post/449</guid><dc:creator><![CDATA[oskar]]></dc:creator><pubDate>Thu, 22 Sep 2016 07:22:09 GMT</pubDate></item></channel></rss>