lovelace-multiple-entity-row icon indicating copy to clipboard operation
lovelace-multiple-entity-row copied to clipboard

The sensor is displayed with a decimal part that should not be there

Open man55 opened this issue 1 year ago • 3 comments

I have sensors that are specified to display as an integer. In the standard HOME card they are displayed correctly as an integer. But when I use the lovelace-multiple-entity-row, these sensors are displayed with a decimal place, which is very annoying. I tried changing regional settings, but it has no effect.

type: entities
entities:
 .....
      - entity: sensor.xxxxxxxx_fanrpm_combine
        name: fanrpm
        styles:
          width: 74px
          text-align: center
Screenshot 2024-02-22 183250 Screenshot 2024-02-22 183224 Screenshot 2024-02-22 183217

man55 avatar Feb 22 '24 16:02 man55

Why not using a documented native formatting option? https://github.com/benct/lovelace-multiple-entity-row?tab=readme-ov-file#formatting

ildar170975 avatar Feb 22 '24 22:02 ildar170975

Thanks, it worked.

Only now I need to add several dozen extra lines to the code :((. And so I don’t understand why by default the mod can’t use the format that is defined in the sensor, why add a decimal to it?

man55 avatar Feb 23 '24 15:02 man55

And some other users do not understand why to reduce an initial accuracy of sensors in frontend globally. Like me: there is NONE of sensors in my setup with changed accuracy; if I do not need some extra digits in a particular card - I change this in this particular card.

ildar170975 avatar Feb 23 '24 15:02 ildar170975