Dashboard - rounding of displayed data

Hello,

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.

Have a good day :slight_smile:

I agree with the purpose :+1:

However, I’m not sure about the usefulness of the parameter; I’m not in favor of making everything a parameter :slight_smile:

I think we can do this intelligently, and set fixed limits depending on the value/feature.

For example, some users displayed in Gladys the value of Dogecoin which is 0.00000xx, so rounding doesn’t work — those values need to be excluded

Can we have a listing (as exhaustive as possible) of the features available in Gladys? So that we can think about what value / for which feature?

Something like:

Température -- 0,00
KWh -- 0.000
Luminosité (lux) -- 0
Humidité (%) -- 0,0
1 Like

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 :slight_smile:

Since your data comes from Node-RED, you can also, in the meantime, round it to the number of decimal places you want directly in Node-RED.

1 Like

Yes, I thought of that solution and I’ll put it in place in the meantime.
But if it can help other people who don’t want to get into Node-RED :slightly_smiling_face:

Go to the MQTT integration, and open the dropdown list of features, you have everything in there :slight_smile:

1 Like

Hello,

I’m following up on this topic.
It’s a real issue, especially for managing money and kWh to operate your washing machine, for example:

@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!

It’s done, thanks :slight_smile:

1 Like