Battery Card

The hc_battery_card is used to show battery percentages. It changes color based on the numeric state: green from 80 and higher, yellow from 20 to 79, and red below 20.

Usage

  - type: custom:button-card
    template: hc_battery_card
    entity: <your battery sensor>
    name: Front Door Sensor
    variables:
      on_icon: mdi:battery

Remember to take care of indentation

Variable / entry

Variable Default Required Example
entity   Yes sensor.front_door_battery
name friendly name No Front Door Sensor
on_icon mdi:battery No mdi:battery-70

Copyright © 2024-2025 Damian Eickhoff. Distributed by an MIT license.