Hardware Setup
Philip Light HTTP Requests
http://10.0.2.16/api/newdeveloper/lights
Get Lights JSON
{ "1": { "state": { "on": true, "bri": 144, "hue": 13088, "sat": 212, "effect": "none", "xy": [ 0.5128, 0.4147 ], "ct": 467, "alert": "none", "colormode": "hs", "reachable": true }, "type": "Extended color light", "name": "Hue Lamp 1", "modelid": "LCT001", "uniqueid": "00:17:88:01:00:b6:c6:f0-0b", "swversion": "66009663", "pointsymbol": { "1": "none", "2": "none", "3": "none", "4": "none", "5": "none", "6": "none", "7": "none", "8": "none" } }, "2": { "state": { "on": true, "bri": 144, "hue": 13088, "sat": 212, "effect": "none", "xy": [ 0.5128, 0.4147 ], "ct": 467, "alert": "none", "colormode": "ct", "reachable": true }, "type": "Extended color light", "name": "Hue Lamp 2", "modelid": "LCT001", "uniqueid": "00:17:88:01:00:b9:38:7c-0b", "swversion": "66009663", "pointsymbol": { "1": "none", "2": "none", "3": "none", "4": "none", "5": "none", "6": "none", "7": "none", "8": "none" } }, "3": { "state": { "on": true, "bri": 144, "hue": 13088, "sat": 212, "effect": "none", "xy": [ 0.5128, 0.4147 ], "ct": 467, "alert": "none", "colormode": "hs", "reachable": true }, "type": "Extended color light", "name": "Hue Lamp 3", "modelid": "LCT001", "uniqueid": "00:17:88:01:00:b9:38:5c-0b", "swversion": "66009663", "pointsymbol": { "1": "none", "2": "none", "3": "none", "4": "none", "5": "none", "6": "none", "7": "none", "8": "none" } } }
http://10.0.2.16/api/newdeveloper/lights/1/state
Get Lights JSON
{"on":true}
Queries
Find Lights
<Query> <Find format="all"> <PhilipLightModel> <LightNumber eq="1"/> </PhilipLightModel> </Find> </Query>
GetLightManager
<Query> <Find format="All"> <PhilipLightManagerModel> <ManagerId ne=""/> </PhilipLightManagerModel> </Find> </Query>
InitManager
<Query> <DeleteAll> <PhilipLightManagerModel> <ManagerId ne=""/> </PhilipLightManagerModel> </DeleteAll> <Create> <PhilipLightManagerModel> <LoadLights> True </LoadLights> </PhilipLightManagerModel> </Create> </Query>
ToggleLight
<Query> <Find format="All"> <PhilipLightModel> <LightNumber eq="1"/> </PhilipLightModel> </Find> <SetResponseData> <Key> Message.Value.Find.Result.PhilipLightModel.state.On </Key> <Value> false </Value> </SetResponseData> <Update> <From> Result </From> <Include> $Response.Message.Value.Find </Include> </Update> </Query>