battery-state-card
battery-state-card copied to clipboard
Battery State is not displaying when device is charging
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
Version release: v3.2.1