Buggy Entity Filter

When I put < [any number above 1], it shows 100% as a match. I want to show low batteries, not 100% battery states. I found a similar post here, but I’m not putting %.

Help would be appreciated, thanks.

It’s not technically a bug, it’s just an annoying fact of using mathematical comparisons on strings.

In the meantime, try this instead: GitHub - maxwroc/battery-state-card: Battery state card for Home Assistant.

Or auto-entities.

1 Like

Btw, have you tested with

value: 15

?

1 Like

Thanks, that did it. I turned it into a string. I’ll check out the other solutions too.