maxwroc / battery-state-card

Battery state card for Home Assistant
MIT License
852 stars 38 forks source link

sort by stat doesn't work when the value is higher than 1000 #659

Closed vejvik closed 8 months ago

vejvik commented 8 months ago

I wanted to use the card to sort the consumption of individual appliances, but as soon as the consumption is higher than 1000W, when there is a gap between 1 and 0, the card does not sort this value

type: custom:battery-state-card sort: desc: true by: state collapse: 5 icon: mdi:lightning-bolt unit: W round: 0 entities:

paste your card configuration here



**Screenshot**
`https://i.postimg.cc/T2kDbbtH/Sn-mek-obrazovky-2024-01-19-151224.png`
maxwroc commented 8 months ago

I see that the recent support for HA default formatting is causing a lot of trouble.

You can mitigate the problem by adding the following to your config:

default_state_formatting: false

The fix will be covered via this issue: #657