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

"invert", "kilo" & "posiition" formatters: precision is lost

Open ildar170975 opened this issue 1 year ago • 1 comments

There is an input_number entity: image

Consider this card:

  - type: entities
    entities:
      - entity: input_number.test_negative_1
        name: test value

      - type: custom:multiple-entity-row
        entity: sun.sun
        entities:
          - entity: input_number.test_negative_1
            name: unformatted
        show_state: false

      - type: custom:multiple-entity-row
        entity: sun.sun
        entities:
          - entity: input_number.test_negative_1
            name: invert
            format: invert
        show_state: false

image

The entity has ".xxxx" precision, the inverted value has ".xx" precision.


Example with a template sensor: image

type: entities
entities:
  - entity: sensor.test_value
    name: test value
  - type: custom:multiple-entity-row
    entity: sun.sun
    entities:
      - entity: sensor.test_value
        name: unformatted
    show_state: false
  - type: custom:multiple-entity-row
    entity: sun.sun
    entities:
      - entity: sensor.test_value
        name: invert
        format: invert
    show_state: false

image

Same - precision changed to ".xx".

ildar170975 avatar May 30 '23 23:05 ildar170975