Same experience here. Pasting all the field values into an Internet Request on af Flic controlled by my phone works perfectly, but the exact same field values pasted into a Flic controlled by the hub does not work. And there is no indication of what went wrong.
(App version 3.1.0, hub firmware 1.2.0)

bambi2000
@bambi2000
Posts made by bambi2000
-
RE: Flic Hub - Http Request
-
RE: Controlling Sonos using HTTP requests?
@thomas204 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 A03H.mp3), but I didn't succeed.
-Dennis
-
RE: Controlling Sonos using HTTP requests?
@thomas204 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.
Then following example selects a specific radio stream (the rest of the fields are identical to those in my previous post):
Body:
<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-mp3radio://live-icy.gss.dr.dk/A/A03H.mp3.m3u</CurrentURI><CurrentURIMetaData /></u:SetAVTransportURI></s:Body></s:Envelope>
-Dennis
-
RE: Controlling Sonos using HTTP requests?
@thomas204 Sure, I havn't tried to group or ungroup players using requests, but here is the request that selects Line-In as input:
URL:
http://192.168.172.67:1400/MediaRenderer/AVTransport/Control
Method:
POST
Body:
<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_000E5887151E01400</CurrentURI><CurrentURIMetaData /></u:SetAVTransportURI></s:Body></s:Envelope>
Content type:
text/xml
Key:
SOAPACTION
Value:
"urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"
You will have to replace
192.168.172.67
with the IP address of your Sonos device, andRINCON_000E5887151E01400
with the identifier assigned to your Sonos device (I think the last part is the MAC address).-Dennis
-
RE: Controlling Sonos using HTTP requests?
@anton 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! :-)
-Dennis
-
RE: Controlling Sonos using HTTP requests?
@anton Thanks for the update!
-Dennis
-
RE: Controlling Sonos using HTTP requests?
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.
I thought I saw a post saying that custom headers for the Internet request was added recently, but apparently it isn't true. Is it in the works?
-Dennis
-
Controlling Sonos using HTTP requests?
You can control a Sonos device using the UPnP protocol over HTTP. Some examples can be found on:
http://forum.universal-devices.com/topic/11739-sonos-integration/But how do I send these kind of commands using the Internet request action in the Flic app for IOS? What goes in the URL field and what goes in the Body field when using POST mode? And does the content of the body have to be encoded or escaped?
If you have successfully programmed your Flic for controlling Sonos using UPnP commands, I would appreciate an example with the exact contents of your Internet request settings.
-Dennis