Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
The SOAP command to create a Light Group on a Wemo Link ZigBee Bridge
<?xml version="1.0" encoding="UTF-8"?>
<CreateGroup>
<GroupID>1489757700</GroupID>
<GroupName>Lighting Group</GroupName>
<DeviceIDList>94103EA2B278030F,94103EA2B27803ED</DeviceIDList>
<GroupCapabilityIDs>10008,10006,30008,30009,3000A</GroupCapabilityIDs>
<GroupCapabilityValues>255:0,0,,,</GroupCapabilityValues>
</CreateGroup>
POST /upnp/control/bridge1 HTTP/1.0
Content-Type: text/xml; charset="utf-8"
HOST: 192.168.1.52
Content-Length: 747
SOAPACTION: "urn:Belkin:service:bridge:1#CreateGroup"
Connection: close
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:CreateGroup xmlns:u="urn:Belkin:service:bridge:1">
<ReqCreateGroup>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;CreateGroup&gt;&lt;GroupID&gt;1489757700&lt;/GroupID&gt;&lt;GroupName&gt;Lighting Group&lt;/GroupName&gt;&lt;DeviceIDList&gt;94103EA2B278030F,94103EA2B27803ED&lt;/DeviceIDList&gt;&lt;GroupCapabilityIDs&gt;10008,10006,30008,30009,3000A&lt;/GroupCapabilityIDs&gt;&lt;GroupCapabilityValues&gt;255:0,0,,,&lt;/GroupCapabilityValues&gt;&lt;/CreateGroup&gt;</ReqCreateGroup>
</u:CreateGroup>
</s:Body>
</s:Envelope>
HTTP/1.0 200 OK
CONTENT-LENGTH: 283
CONTENT-TYPE: text/xml; charset="utf-8"
DATE: Fri, 17 Mar 2017 13:35:16 GMT
EXT:
SERVER: Unspecified, UPnP/1.0, Unspecified
X-User-Agent: redsonic
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body>
<u:CreateGroupResponse xmlns:u="urn:Belkin:service:bridge:1">
<RespCreateGroup>2</RespCreateGroup>
</u:CreateGroupResponse>
</s:Body> </s:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment