Why is there no ZWaveAPI description ?
Posted: 24 Mar 2013 01:16
I have been playing around with the RaZberry now for a while considering it for an actual project with the Aeon Labs HEM and the NorthQ Power Meter. But the lack of useful documentation is driving me crazy. There is no description of the ZWaveAPI that is of any use. I am about to give up on the whole project and start to suspect that the whole Z-Wave thing is not all it is cracked up to be.
With much trial and error I finally managed to get the Aeon Labs HEM to cough up its sensor values with commands like:
http://192.168.1.15:8083/ZWaveAPI/Run/d ... valueOf(0)
REMARK: This gets you the wattage on the Aeon Labs HEM Clamp 3.
However, I had to suck it out of my fingers how to do that and read between the lines in several different documents.
Now, I am trying to read the meter value of the NorthQ, but it is impossible as there is no description of the CommandClass[0x32] (Meter) to be found anywhere. If I try with http://192.168.1.15:8083/ZWaveAPI/Data/0 to get the data structure out of the controller, I get the following for the NorthQ CommandClass[0x32]:
"0": {
"name": "0",
"value": null,
"type": "NoneType",
"sensorType": {
"name": "sensorType",
"value": 1,
"type": "int",
"invalidateTime": 1363996799,
"updateTime": 1363996800
},
"sensorTypeString": {
"name": "sensorTypeString",
"value": "Electric ",
"type": "str",
"invalidateTime": 1363996799,
"updateTime": 1363996800
},
"val": {
"name": "val",
"value": 7.25,
"type": "float",
"invalidateTime": 1363996799,
"updateTime": 1364055449
I can access "data" and "name" of CommandClass[0x32] , but how to I get the data holder "val" out of this "0" structure?
Does anybody know how to do this ?
Is there any documentation forthcoming that actually allows for some useful work with the RaZberry?
Some simple but complete examples would be really useful or a simple (but complete) Python script that shows how the read a value from a sensor or a meter would be really heplful.
Of course even better would be an actual complete API description.
danilo
With much trial and error I finally managed to get the Aeon Labs HEM to cough up its sensor values with commands like:
http://192.168.1.15:8083/ZWaveAPI/Run/d ... valueOf(0)
REMARK: This gets you the wattage on the Aeon Labs HEM Clamp 3.
However, I had to suck it out of my fingers how to do that and read between the lines in several different documents.
Now, I am trying to read the meter value of the NorthQ, but it is impossible as there is no description of the CommandClass[0x32] (Meter) to be found anywhere. If I try with http://192.168.1.15:8083/ZWaveAPI/Data/0 to get the data structure out of the controller, I get the following for the NorthQ CommandClass[0x32]:
"0": {
"name": "0",
"value": null,
"type": "NoneType",
"sensorType": {
"name": "sensorType",
"value": 1,
"type": "int",
"invalidateTime": 1363996799,
"updateTime": 1363996800
},
"sensorTypeString": {
"name": "sensorTypeString",
"value": "Electric ",
"type": "str",
"invalidateTime": 1363996799,
"updateTime": 1363996800
},
"val": {
"name": "val",
"value": 7.25,
"type": "float",
"invalidateTime": 1363996799,
"updateTime": 1364055449
I can access "data" and "name" of CommandClass[0x32] , but how to I get the data holder "val" out of this "0" structure?
Does anybody know how to do this ?
Is there any documentation forthcoming that actually allows for some useful work with the RaZberry?
Some simple but complete examples would be really useful or a simple (but complete) Python script that shows how the read a value from a sensor or a meter would be really heplful.
Of course even better would be an actual complete API description.
danilo