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

Battery State is not displaying when device is charging

Open ID-Ant opened this issue 10 months ago • 0 comments

Describe what is wrong When the device is Charging, the icon and secondary_info_text is not changing

YAML configuration


type: custom:battery-state-card
secondary_info: "{last_updated}"
sort:
  by: state
entities:
  - entity: sensor.id_hotspot_battery_level
    name: Ant iPhone
    secondary_info: null
  - entity: sensor.id_ipad_battery_state
  - entity: sensor.id_ipad_battery_level
    name: iPad Kiosk
    secondary_info: "{charging}" # only appears when charging is detected
    charging_state:
      attribute:
      - name: "Battery State"
        value: "Charging"
      secondary_info_text: "Charging in progress" # override for "Charging" text
      color: yellow
      icon: mdi:battery-charging


Screenshot Screenshot 2024-12-16 at 10 32 11

Version release: v3.2.1

ID-Ant avatar Dec 16 '24 10:12 ID-Ant