Controlling the number of decimal places. #251
Replies: 3 comments 9 replies
-
I think the latest versions of HA allow you to change the precision used to display each entity. So even if it's 5DP from the sensor, you can show it at 2DP. |
Beta Was this translation helpful? Give feedback.
-
On reflection, I feel I didn’t explain myself properly… I meant that I’d prefer to see the totals increase incrementally by 0.01 kWh rather than by 0.1 kWh as it is currently. I had kept the old Riemann integrals (written into the config file) from before using this integration but recently, something has changed/broken which has changed their behaviour. They have now started to reset and show as unavailable when the source sensor is zero. Of course being able to control those sensors via the config file, I could choose how granular I needed it to be. Cheers lads! |
Beta Was this translation helpful? Give feedback.
-
Is there a way to choose the number of decimal places the integral sensors have ? Typically I would round to 2 decimal places.
I can deduce from some of the entity files that you pass an integer through for the rounding number but I don’t want to chance changing anything.
I realise this is a very stylistic idea, so I apologise in advance!
Beta Was this translation helpful? Give feedback.
All reactions