maxwroc/battery-state-card

After Upgrade to 3.1.1 no values by attributes

CrazyUs3r opened this issue · 4 comments

Moin seit dem update funktioniert keine attribute mehr.

Hier nur ein Beispiel was nicht mehr läuft. Zeigt nichts an

type: custom:battery-state-card
title: Luftfeuchtigkeit
secondary_info: '{last_changed}'
icon: mdi:water-percent
filter:
include:
- name: attributes.device_class
value: humidity
sort:
by: state
collapse: 8
value_override: '{state|abs()}'
colors:
steps:
- color: '#00ff00'
value: 30
- color: '#ffff00'
value: 50
- color: '#ff0000'
value: 80
gradient: true

same for me no results with 👍

type: custom:battery-state-card
secondary_info: "{last_changed}"
filter:
include:
- name: "attributes.device_class"
value: "battery"
sort:
by: "state"
collapse: 8
bulk_rename:

  • from: " Battery"
  • from: " level"
    colors:
    steps:
    • '#ff0000'
    • '#ffff00'
    • '#00ff00'
      gradient: true

ok with entities

Duplicate of #623 (same root cause / core issue)

yah with 3.11 this fails to show anything.

type: custom:battery-state-card
title: Battery charge remaining
secondary_info: "{last_changed}"
filter:
  include:
    - name: attributes.device_class
      value: battery
  exclude:
    - name: entity_id
      value: '*_battery_low'
    - name: entity_id
      value: sensor.oneplus*battery_level
    - name: entity_id
      value: sensor.pixel*battery_level
sort:
  by: state
collapse: 6
colors:
  steps:
    - '#d9ead3'
    - '#b6d7a8'
    - '#93c47d'
    - '#6aa84f'
  gradient: true

I try Tomorrow or i go back to 3.1.0