homeassistant-minimalistic-area-card icon indicating copy to clipboard operation
homeassistant-minimalistic-area-card copied to clipboard

[Question]: Possibility to integrate the new (2023.3) Display precision

Open joakimjalden opened this issue 1 year ago • 7 comments

What happened?

Love the card and have used it since pretty much when I started using HA. If you have the possibility to integrate the new (2023.3) "Display precision" when displaying sensor values, that would make it even better.

I looked at the code for the mushroom cards (which included this recently in the v2.6.0 update), and it seems to be there as an attribute ( e.display_precision) for the entity object. My javascript knowledge is, however, too poor to help out with implementation. The precision is not, as far as I can tell, exposed as an entity attribute in the templating engine.

Card Version

1.1.8

HomeAssistant Version

2023.3

Relevant log output

No response

joakimjalden avatar Mar 05 '23 10:03 joakimjalden

+1 on both the thanks for the great card, and desire for display precision..

seanw18 avatar Apr 05 '23 02:04 seanw18

I'll take it into consideration

junalmeida avatar Apr 05 '23 14:04 junalmeida

Definitely much needed. My temperature is currently displaying with 5 decimal places and looks a bit mad.

Nurgus avatar May 16 '23 21:05 Nurgus

+1 for this FR, have the same issue with values taking up precious real estate with 5 decimals.

It's not the best workaround but if this is bugging you, you can always create a template sensor that trims the extra decimals.

aicarmic avatar May 28 '23 02:05 aicarmic

@junalmeida +1 here! Any chance to have proper display precision support implemented? It would grately help in cases like the following, where the precision of the temperature/humidity sensors is correctly set to 1 in entity settings but the card is displaying 2 or 3 decimals regardless. Thanks!

Screenshot_2023-08-06-16-11-32-58_c3a231c25ed346e59462e84656a70e50~2

MacrosorcH avatar Aug 06 '23 14:08 MacrosorcH

@junalmeida I love your card and am using it centrally to show and navigate the rooms in my house. We all understand you are busy, but the last release is from 11 months ago. Do you have time planned in the coming period to fix this and other minor issues maybe? Currently I do display (average) values on the card that show over 10 decimals due to this issue, so a fix for this would be greatly appreciated. Keep up the good work, and thanks for your efforts. Cheers!

FvanEgmond avatar Mar 14 '24 08:03 FvanEgmond

Yep I'm very busy but I will try to fix that as it seems its been a problem for many people.

junalmeida avatar May 02 '24 13:05 junalmeida

Forgot to close this, the release https://github.com/junalmeida/homeassistant-minimalistic-area-card/releases/tag/v1.2.0 went live on May 2.

junalmeida avatar Sep 06 '24 15:09 junalmeida