Question about virtual/dummy devices
Posted: 31 Mar 2016 23:33
Hello to eveybody
I have created a new dummy device as binary switch and i use it as a trigger for scene ...
How can i check state status of this device from exteranl software like Node js?
From a browser i can see this:
http://myip:8083/ZAutomation/api/v1/dev ... yDevice_44
i get this:
{"data":{"creationTime":1459165644,"creatorId":44,"deviceType":"switchBinary","h":-1669838495,"hasHistory":false,"id":"DummyDevice_44","location":0,"metrics":{"level":"off","title":"Abilita allerta"},"permanently_hidden":false,"probeType":"","tags":[],"visibility":true,"updateTime":1459455031},"code":200,"message":"200 OK","error":null}
I want query level on/off from an external program.
How can i do it?
Thank you
rumcooler
I have created a new dummy device as binary switch and i use it as a trigger for scene ...
How can i check state status of this device from exteranl software like Node js?
From a browser i can see this:
http://myip:8083/ZAutomation/api/v1/dev ... yDevice_44
i get this:
{"data":{"creationTime":1459165644,"creatorId":44,"deviceType":"switchBinary","h":-1669838495,"hasHistory":false,"id":"DummyDevice_44","location":0,"metrics":{"level":"off","title":"Abilita allerta"},"permanently_hidden":false,"probeType":"","tags":[],"visibility":true,"updateTime":1459455031},"code":200,"message":"200 OK","error":null}
I want query level on/off from an external program.
How can i do it?
Thank you
rumcooler