Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rounding of values #19

Open
zonak opened this issue Nov 14, 2013 · 0 comments
Open

Rounding of values #19

zonak opened this issue Nov 14, 2013 · 0 comments

Comments

@zonak
Copy link

zonak commented Nov 14, 2013

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant