system-flow-card icon indicating copy to clipboard operation
system-flow-card copied to clipboard

Rounding of values is incorrect

Open getget1980 opened this issue 1 year ago • 2 comments

Hello, first thanks for your work.

Should add a way to set elements values in kW or W as input, and kW or W to display (and calculate).

Some of my sensors are in W (no problem), but others are in kW, and values are rounded to the closest integer.

As a result, power calculation is not good and values are unreadable.

Also, if using an extra, should be able to determine also how to round the value (see atached image, for the dishwasher and washing machine), or at least set a trigger value to display not null values.

image

Here the result is incorrect.

Compare to my other flow (values are good on this one) image

Solar shows 0, because value is 0.2kW, rounded to 0. Grid shows 1kW because value is 0.640kW

Center value should display 2180w

getget1980 avatar May 09 '23 20:05 getget1980