π Material Battery Dialog β
NOTE
β¨ Available on π Pro & Ultimate Version Only
β¨ Overview β
The Battery Dialog provides a specialized view for monitoring battery levels. It features a circular progress card for a quick visual assessment of the remaining charge and lists other related entities from the same device, offering a comprehensive overview of your device's power status.
This dialog gives users a fast and elegant way to check the battery life of sensors, remotes, and other peripherals without leaving the main Lovelace dashboard.
β How to Open the Battery Dialog β
The dialog opens automatically. There is no need for manual configuration.
- If you do not define a
tap_action, the dialog will open automatically on tap.
Example: The dialog is automatic
yaml
type: custom:material-button-card
entity: sensor.phone_battery
# No tap_action needed!βΉοΈ Action trigger β
| Action Type | Card Type | Sensor (By Device Class) | Attributes |
|---|---|---|---|
tap_action | material-button-card | battery | unit_of_measurement = % |
βοΈ Supported Device Classes β
The Battery Dialog is designed specifically for sensors with the following device_class:
| Device Type | Description |
|---|---|
battery | Displays the battery level as a percentage, along with other entities from the same device. |
π¨ Dialog Features β
| Feature | Description |
|---|---|
| Circular Progress | Shows the battery percentage in a large, easy-to-read circular progress bar. |
| Dynamic Header | Shows the device name and area. |
| Related Entities Section | Lists all entities associated with the same device (e.g., temperature, signal strength). |
| History Button | Opens Home Assistantβs built-in history panel for the entity. |
| Dark/Light Theme Support | Automatically adapts to HA theme settings. |
| Responsive Layout | Adopts a fullscreen view on mobile and a centered dialog on desktop. |
π‘ Example Use Cases β
- Tap a remote control button card β view its exact battery percentage.
- Tap a door sensor card β check its battery level to see if it needs replacing soon.
- Tap any battery-powered sensor β get a full overview of the device's status.


