Homewizard get sensors json output
From TD-er's Wiki
Jump to navigationJump to search
As example a json output dump of the get-sensors via: http://<ip-address>/<passwd>/get-sensors
It is pre-formatted via [[1]] N.B. I removed the passwords and IP-addresses, which were stored in plain text.
{
"status": "ok",
"version": "3.372",
"request": {
"route": "/get-sensors"
},
"response": {
"preset": 0,
"time": "2016-11-23 00:21",
"switches": [
{
"id": 0,
"name": "Printer",
"type": "switch",
"status": "off",
"favorite": "yes"
},
{
"id": 1,
"name": "Licht slaap GW",
"type": "switch",
"status": "off",
"favorite": "no"
},
{
"id": 2,
"name": "Wasruimte",
"type": "switch",
"status": "off",
"favorite": "no"
},
{
"id": 3,
"name": "BuitenlichtVoor",
"type": "switch",
"status": "off",
"favorite": "no"
},
{
"id": 4,
"name": "Licht hal",
"type": "switch",
"status": "on",
"favorite": "no"
},
{
"id": 5,
"name": "Overloop",
"type": "switch",
"status": "off",
"favorite": "no"
},
{
"id": 6,
"name": "Slaapkamer hoek",
"type": "switch",
"status": "off",
"favorite": "no"
},
{
"id": 7,
"name": "Zolder",
"type": "switch",
"status": "off",
"favorite": "no"
},
{
"id": 8,
"name": "Dummy",
"type": "dimmer",
"status": "on",
"dimlevel": 2,
"favorite": "no"
},
{
"id": 9,
"name": "Kruimeldief",
"type": "switch",
"status": "off",
"favorite": "no"
},
{
"id": 10,
"name": "Muggen gang",
"type": "switch",
"status": "on",
"favorite": "no"
},
{
"id": 11,
"name": "LED strip",
"type": "dimmer",
"status": "off",
"dimlevel": 0,
"favorite": "yes"
},
{
"id": 12,
"name": "Huiskamer LED",
"type": "switch",
"status": "on",
"favorite": "no"
},
{
"id": 13,
"name": "Trap LED",
"type": "dimmer",
"status": "off",
"dimlevel": 0,
"favorite": "no"
},
{
"id": 14,
"name": "Temp",
"type": "switch",
"status": "off",
"favorite": "no"
},
{
"id": 15,
"name": "TL schuur buite",
"type": "switch",
"status": "off",
"favorite": "no"
},
{
"id": 16,
"name": "MuggenHuiskamer",
"type": "switch",
"status": "off",
"favorite": "no"
},
{
"id": 17,
"name": "Kerst keuken",
"type": "switch",
"status": "off",
"favorite": "no"
},
{
"id": 18,
"name": "Tuinverlichting",
"type": "switch",
"status": "off",
"favorite": "no"
},
{
"id": 19,
"name": "Bank tuin LR",
"type": "switch",
"status": "off",
"favorite": "no"
},
{
"id": 20,
"name": "Bank tuin mid",
"type": "switch",
"status": "off",
"favorite": "no"
}
],
"uvmeters": [],
"windmeters": [],
"rainmeters": [],
"thermometers": [
{
"id": 0,
"name": "Huiskamer",
"channel": 1,
"model": 0,
"te": 21.6,
"hu": 51,
"te+": 21.6,
"te+t": "00:00",
"te-": 21.6,
"te-t": "00:00",
"hu+": 51,
"hu+t": "00:00",
"hu-": 51,
"hu-t": "00:00",
"outside": "no",
"favorite": "no"
},
{
"id": 1,
"name": "Zolder",
"channel": 2,
"model": 0,
"te": 16.4,
"hu": 63,
"te+": 16.4,
"te+t": "00:00",
"te-": 16.4,
"te-t": "00:00",
"hu+": 63,
"hu+t": "00:00",
"hu-": 63,
"hu-t": "00:00",
"outside": "no",
"favorite": "no"
},
{
"id": 2,
"name": "Tuin",
"channel": 3,
"model": 0,
"te": 8.3,
"hu": 82,
"te+": 8.5,
"te+t": "00:00",
"te-": 8.3,
"te-t": "00:19",
"hu+": 82,
"hu+t": "00:02",
"hu-": 81,
"hu-t": "00:00",
"outside": "yes",
"favorite": "no"
},
{
"id": 3,
"name": "Slaap GW",
"code": "2946185",
"model": 1,
"lowBattery": "yes",
"version": 2.31,
"te": 17.7,
"hu": 59,
"te+": 17.7,
"te+t": "23:59",
"te-": 17.7,
"te-t": "23:59",
"hu+": 59,
"hu+t": "23:59",
"hu-": 59,
"hu-t": "23:59",
"outside": "no",
"favorite": "no"
},
{
"id": 4,
"name": "Lilly",
"code": "1773267",
"model": 1,
"lowBattery": "yes",
"version": 2.31,
"te": 20,
"hu": 54,
"te+": 20,
"te+t": "00:00",
"te-": 20,
"te-t": "00:00",
"hu+": 54,
"hu+t": "00:00",
"hu-": 54,
"hu-t": "00:00",
"outside": "no",
"favorite": "no"
},
{
"id": 5,
"name": "Logeer",
"code": "12046820",
"model": 1,
"lowBattery": "yes",
"version": 2.31,
"te": 18,
"hu": 57,
"te+": 18,
"te+t": "00:00",
"te-": 18,
"te-t": "00:00",
"hu+": 57,
"hu+t": "00:00",
"hu-": 57,
"hu-t": "00:00",
"outside": "no",
"favorite": "no"
},
{
"id": 6,
"name": "GijsBoven",
"code": "1065135",
"model": 1,
"lowBattery": "yes",
"version": 2.31,
"te": 21,
"hu": 53,
"te+": 20.9,
"te+t": "00:10",
"te-": 20.7,
"te-t": "00:00",
"hu+": 54,
"hu+t": "00:00",
"hu-": 53,
"hu-t": "00:10",
"outside": "no",
"favorite": "no"
},
{
"id": 7,
"name": "Garage",
"code": "6089761",
"model": 1,
"lowBattery": "no",
"version": 2.31,
"te": 13.9,
"hu": 69,
"te+": 13.9,
"te+t": "00:00",
"te-": 13.9,
"te-t": "00:00",
"hu+": 69,
"hu+t": "00:00",
"hu-": 69,
"hu-t": "00:00",
"outside": "no",
"favorite": "no"
},
{
"id": 8,
"name": "Schuur buiten",
"code": "5667585",
"model": 1,
"lowBattery": "yes",
"version": 2.31,
"te": 8.5,
"hu": 80,
"te+": 8.7,
"te+t": "23:59",
"te-": 8.6,
"te-t": "00:05",
"hu+": 80,
"hu+t": "23:59",
"hu-": 80,
"hu-t": "23:59",
"outside": "no",
"favorite": "no"
}
],
"weatherdisplays": [],
"energymeters": [],
"energylinks": [
{
"id": 0,
"favorite": "no",
"name": "EnergyLink",
"code": "649922",
"t1": "none",
"c1": 0,
"t2": "solar",
"c2": 1000,
"tariff": 1,
"s1": null,
"s2": {
"po": 0,
"dayTotal": 0,
"po+": 0,
"po+t": "10:44",
"po-": 0,
"po-t": "00:01"
},
"aggregate": {
"po": 993,
"dayTotal": 0.42,
"po+": 2964,
"po+t": "00:15",
"po-": 909,
"po-t": "00:09"
},
"used": {
"po": 993,
"dayTotal": 0.43,
"po+": 2964,
"po+t": "00:15",
"po-": 909,
"po-t": "00:09"
},
"gas": {
"lastHour": 0.35,
"dayTotal": 0.35
},
"kwhindex": 0.89,
"wp": 3900
}
],
"heatlinks": [],
"hues": [],
"scenes": [
{
"id": 0,
"name": "Weg",
"favorite": "yes"
},
{
"id": 1,
"name": "Lichten uit",
"favorite": "yes"
},
{
"id": 2,
"name": "Traplicht",
"favorite": "no"
},
{
"id": 3,
"name": "Huiskamer",
"favorite": "no"
},
{
"id": 4,
"name": "Entree",
"favorite": "no",
"camera": {
"id": 0,
"preset": -1
}
},
{
"id": 5,
"name": "Lilly",
"favorite": "yes",
"camera": {
"id": 2,
"preset": -1
}
},
{
"id": 6,
"name": "Tuin",
"favorite": "no"
}
],
"kakusensors": [
{
"id": 0,
"name": "Rookmelder",
"status": null,
"type": "smoke",
"favorite": "no",
"timestamp": "00:00",
"cameraid": null
},
{
"id": 1,
"name": "Zolderdeur",
"status": "no",
"type": "contact",
"favorite": "no",
"timestamp": "15:37",
"cameraid": null
},
{
"id": 2,
"name": "Buiten voor",
"status": "no",
"type": "motion",
"favorite": "no",
"timestamp": "22:02",
"cameraid": 0
},
{
"id": 3,
"name": "Garagedeur",
"status": null,
"type": "contact",
"favorite": "no",
"timestamp": "00:00",
"cameraid": null
},
{
"id": 4,
"name": "Overloop",
"status": null,
"type": "motion",
"favorite": "no",
"timestamp": "00:00",
"cameraid": null
},
{
"id": 5,
"name": "Voordeur",
"status": "no",
"type": "contact",
"favorite": "no",
"timestamp": "22:03",
"cameraid": 0
},
{
"id": 6,
"name": "Voordeurbel",
"status": "no",
"type": "doorbell",
"favorite": "no",
"timestamp": "17:21",
"cameraid": 0
},
{
"id": 7,
"name": "Hal",
"status": null,
"type": "motion",
"favorite": "no",
"timestamp": "12:58",
"cameraid": null
},
{
"id": 8,
"name": "Overloop nw",
"status": "no",
"type": "motion",
"favorite": "no",
"timestamp": "22:41",
"cameraid": null
},
{
"id": 9,
"name": "Achterdeur",
"status": "no",
"type": "contact",
"favorite": "no",
"timestamp": "12:36",
"cameraid": null
}
],
"cameras": [
{
"id": 0,
"model": 27,
"name": "Voordeur",
"username": "admin",
"password": "passwd",
"ip": "ip-address",
"port": "60000",
"mode": 0,
"url": {
"path": "image/jpeg.cgi",
"query": "",
"auth": "authstring"
},
"presets": []
},
{
"id": 1,
"model": 27,
"name": "PV cam",
"username": "admin",
"password": "passwd",
"ip": "ip-address",
"port": "60001",
"mode": 0,
"url": {
"path": "image/jpeg.cgi",
"query": "",
"auth": "authstring"
},
"presets": []
},
{
"id": 2,
"model": 30,
"name": "LillyIR",
"username": "Gijs",
"password": "passwd",
"ip": "ip-address",
"port": "60002",
"mode": 0,
"url": {
"path": "snapshot.cgi",
"query": "user=Gijs&pwd=passwd",
"auth": ""
},
"presets": []
}
]
}
}