To avoid visual issues like the one mentioned in the following thread: Dashboard - arrondi
I suggest adding an option like this next to the data we display on the dashboard →
Checkbox: should decimals be rounded?
Numeric textbox enabled if the checkbox above is checked: how many digits after the decimal point?
For my part, I would, for example, like to display 3 digits after the decimal point for my instantaneous consumption or production in kWh. Maybe others will only want 2… At least it would provide some flexibility and the user would decide.
I feel that the workload is greater when trying to « standardize » every feature.
My opinion remains the same as at the start: it’s more pleasant to be able to choose the display yourself (number of decimal places if you check the box; otherwise let all digits be displayed), just as with the unit you want to display, as is currently the case…
I deliberately chose to display kWh for the information I was sending from Node-RED.
Of course, I’m not imposing anything, I’m just giving my opinion
@prohand in your specific case, I think the question is more about being able to round directly in the scene action that performs the calculations
For info, we use Math.js for the calculation part (https://mathjs.org/), and they have a rounding function — I just think it’s not enabled in Gladys but it should be possible to add. I’d welcome a feature request!