If I do a http://raspberry:8083/ZAutomation/api/v1/devices/11 the response is "Device 11 doesn't exist". I double checked with the apiary documentation which states that the id should be an integer. (Outdated documentation perhaps?)
If I use a virtual device name instead (e.g. "ZWayVDev_11:0:49:1", I do get output:
Code: Select all
{"data":{"id":"ZWayVDev_11:0:49:1","metrics":{"probeTitle":"Temperature","scaleTitle":"°C","level":21,"icon":"temperature","title":"Sensor 11:0:49:1"},"tags":[],"location":null,"deviceType":"sensorMultilevel","updateTime":1412667537},"code":200,"message":"200 OK","error":null}
side note: a more clumsy solution on the openremote side would be to parse the whole json blurp using the Drools engine with Java code.