jperkin / node-openzwave

node.js interface to libopenzwave
Other
110 stars 55 forks source link

Rounding of values #19

Open zonak opened 10 years ago

zonak commented 10 years ago

During some testing with a Smart Energy Switch from Aeon Labs, I noticed that the values passed to the event listeners are rounded. I will try to illustrate with an example.

Here's a value we can see in the zcfg.xml file:

<Value type="decimal" genre="user" instance="1" index="0" label="Energy" units="kWh" read_only="true" write_only="false" verify_changes="true" poll_intensity="0" min="0" max="0" value="0.011" />

But the reported value in the value changed listener or any other is 0.

Is it possible to avoid the rounding and get the real values?