Page 1 of 1

HTTP API Read status of device

Posted: 02 Aug 2016 22:03
by kamlipin
Hello.

In another question i asked about how can i send command to device.

Know i have got something like this:

http://192.168.0.103:8083/ZAutomation/a ... command/on

But i want also read status of this device. I can request:
http://192.168.0.103:8083/ZAutomation/a ... way_3-0-37
and in response i have json array
like this:
{
"data": {
"creationTime": 1469135445,
"creatorId": 1,
"deviceType": "switchBinary",
"h": 1107079066,
"hasHistory": false,
"id": "ZWayVDev_zway_3-0-37",
"location": 2,
"metrics": {
"icon": "switch",
"title": "Everspring Switch (3.0)",
"level": "off"
},
"permanently_hidden": false,
"probeType": "",
"tags": [],
"visibility": true,
"updateTime": 1470164373
},
"code": 200,
"message": "200 OK",
"error": null
}

and now How can i read this status and display on my visualization.

Please help

Re: HTTP API Read status of device

Posted: 02 Aug 2016 22:04
by kamlipin
If I click button on this device (hardware) than status of device in this ^^^ response dont change. :(