node-openzwave icon indicating copy to clipboard operation
node-openzwave copied to clipboard

Rounding of values

Open zonak opened this issue 12 years ago • 0 comments

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?

zonak avatar Nov 14 '13 16:11 zonak