Don't understand why battery levels under critical are blue and not red?

I have this card, and it works ok, it lists the devices that has low battery level, but when it’s very low (critical) then it is shown as blue and not red?

type: 'custom:auto-entities'
card:
  type: entities
sort:
  method: state
  numeric: true
critical: 25
warning: 40
filter:
  exclude:
    - entity_id: '*mobil*'
    - entity_id: '*h8*'
    - entity_id: '*life360*'
    - entity_id: '*netatmo*'
    - state: '> 50'
  include:
    - entity_id: '*_battery'
      options:
        type: 'custom:battery-entity-row'
    - entity_id: '*_battery_level'
      options:
        type: 'custom:battery-entity-row'
    - entity_id: '*_batteriniveau'
      options:
        type: 'custom:battery-entity-row'
    - entity_id: '*_battery_charge'
      options:
        type: 'custom:battery-entity-row'

What does it look like in a normal entities card?

1 Like

Don‘t know about this custom card, but with the regular gauge card, the values for red, yellow, green are lower thresholds.

So, this should mark values between 0 and 25 as critical:

critical: 0
warning: 25

1 Like

Hmmm, can’t make it react like I want, I wonder where I got this from, because the statements are not in the documentation, have to dig a bit into this in the weekend.

I finally got a condition with all three states:

The yaml looks like this:

type: 'custom:auto-entities'
card:
  type: entities
sort:
  method: state
  numeric: true
critical: 25
warning: 40
filter:
  exclude:
    - entity_id: '*mobil*'
    - entity_id: '*h8*'
    - entity_id: '*life360*'
    - entity_id: '*netatmo*'
    - entity_id: binary_sensor.*
    - state: '> 50'
  include:
    - entity_id: '*_battery'
      options:
        type: 'custom:battery-entity-row'
    - entity_id: '*_battery_level'
      options:
        type: 'custom:battery-entity-row'
    - entity_id: '*_batteriniveau'
      options:
        type: 'custom:battery-entity-row'
    - entity_id: '*_battery_charge'
      options:
        type: 'custom:battery-entity-row'

I didn’t see an effect from chaning them like @m0wlheld suggested.
And @tom_l, the standard entities card shows it like this:
image

That’s a basic card, it’ll never show other colors than the active icon color.

Edit: nevermind ignore my response. It’s wrong

1 Like

Ok, got it sorted, it’s the template that’s wrong.