Reading Sensor Value of Aeon Labs HEM - getting NULL
Posted: 10 Mar 2013 18:56
Hi there,
I am trying to read the sensor values (Watt) of the Aeon Labs HEM.
In the RaZberry UI I can see the wattage per Clamp. (But the Update function more often then not does not update the values).
Then I issue the following JSON calls:
http://IP_RAZBERRY:8083/ZWaveAPI/Run/devices[2].instances[0].commandClasses[0x31].Get()
followed by:
http://IP_RAZBERRY:8083/ZWaveAPI/Run/devices[2].instances[0].commandClasses[0x31].data.val.value
All I get as an answer is NULL. But that is the way I am supposed to get a Multisensor-Report, isn't it?
How can I get the Wattage per clamp with JSON? (3 clamps).
Somehow it would be useful to see the data model of the connected devices on RaZberry, so that I know which JSON call will get me the meter data. (or any other data I need to read).
Does anybody know how I can get the Wattage values from the Aeon Labs HEM?
Regards,
danilo
EDIT:
After much trial and and error I seem to get the clamp Wattage out with the following commands:
http://IP_RAZBERRY/ZWaveAPI/Run/devices[2].instances[2].commandClasses[0x31].data.val.valueOf(0)
Whereas the number in instances is the clamp number, i.e. instances[2] = clamp 2
However there is still a problem. Get() does not update the data . The value of val only changes after a manual update through the Demo UI.
Any ideas how i can get the data updated before reading it?
I am trying to read the sensor values (Watt) of the Aeon Labs HEM.
In the RaZberry UI I can see the wattage per Clamp. (But the Update function more often then not does not update the values).
Then I issue the following JSON calls:
http://IP_RAZBERRY:8083/ZWaveAPI/Run/devices[2].instances[0].commandClasses[0x31].Get()
followed by:
http://IP_RAZBERRY:8083/ZWaveAPI/Run/devices[2].instances[0].commandClasses[0x31].data.val.value
All I get as an answer is NULL. But that is the way I am supposed to get a Multisensor-Report, isn't it?
How can I get the Wattage per clamp with JSON? (3 clamps).
Somehow it would be useful to see the data model of the connected devices on RaZberry, so that I know which JSON call will get me the meter data. (or any other data I need to read).
Does anybody know how I can get the Wattage values from the Aeon Labs HEM?
Regards,
danilo
EDIT:
After much trial and and error I seem to get the clamp Wattage out with the following commands:
http://IP_RAZBERRY/ZWaveAPI/Run/devices[2].instances[2].commandClasses[0x31].data.val.valueOf(0)
Whereas the number in instances is the clamp number, i.e. instances[2] = clamp 2
However there is still a problem. Get() does not update the data . The value of val only changes after a manual update through the Demo UI.
Any ideas how i can get the data updated before reading it?