Page 1 of 1

Precision of distance sensor (hc-sr04)

Posted: 26 May 2017, 16:38
by yellowsky
Hi everyone.
Did i make something wrong?

In my esp i try to read distance with a hc-sr04
In the log the value is rounded with two decimal.
But once this value is sent to domoticz, the value is rounded at the unit.

I try to update manually the device in domoticz and the precision is one decimal.

Why does espeasy round too much the value?

Thank you

Re: Precision of distance sensor (hc-sr04)

Posted: 26 May 2017, 20:02
by grovkillen
Please publish a screen shoot of your device settings page.

Re: Precision of distance sensor (hc-sr04)

Posted: 27 May 2017, 05:55
by yellowsky
Here is
Image

Re: Precision of distance sensor (hc-sr04)

Posted: 27 May 2017, 14:59
by grovkillen
I can confirm this. This plugin should be redesigned to let the user set the rounding.

This is now added as an issue.