battery-state-card icon indicating copy to clipboard operation
battery-state-card copied to clipboard

Wrong display with space separated thousands

Open Gonioul opened this issue 11 months ago • 1 comments

Describe the bug Display is wrong with space separated thousands, ex: "1 024 W" is trucated to "1 W"

YAML configuration

              - type: custom:battery-state-card
                title: Plugs
                unit: W
                icon: mdi:power-plug
                sort:
                  by: state
                  desc: true
                colors:
                  steps:
                    - value: 0
                      color: var(--label-badge-grey)
                    - value: 25
                      color: var(--label-badge-blue)
                    - value: 50
                      color: var(--label-badge-green)
                    - value: 75
                      color: var(--label-badge-yellow)
                    - value: 100
                      color: var(--label-badge-red)
                collapse: 10
                tap_action: more-info
                filter:
                  include:
                    - name: attributes.device_class
                      operator: '='
                      value: power
                  exclude:
                    - name: entity_id
                      operator: matches
                      value: /.*(battery|_electric_w_value).*/
                bulk_rename:
                  - from: / Puissance$/
                  - from: /_power_power$/

Screenshots image

Version v3.2.1

Gonioul avatar Mar 02 '24 15:03 Gonioul

No progress?

Gonioul avatar Jul 31 '24 18:07 Gonioul