-
Notifications
You must be signed in to change notification settings - Fork 5
Modules: Battery
github-actions[bot] edited this page Aug 19, 2025
·
2 revisions
Name: battery
You can override the default settings defined in Module Styling by setting them in this section: module:battery.
| Option | Description | Data type | Default |
|---|---|---|---|
| format | The format of this module | String | {{capacity}}%{{time_remaining}} |
| format_time | The format of the remaining battery time left (to full or to empty) | String | ({{hours}}h {{minutes}}min left) |
You can override the default settings defined in Popup Styling by setting them in this section: module_popup:battery.
| Option | Description | Data type | Default |
|---|---|---|---|
| format | The format of the popup text | String | {{name}}: {{state}}\n\t{{icon}} {{capacity}}% ({{energy}} Wh)\n\thealth: {{health}}%{{time_remaining}}\n\tmodel: {{model}} |
| format_time | The format of the remaining battery time left (to full or to empty) | String | \n\t{{hours}}h {{minutes}}min remaining |
format supports:
-
name(The name of the battery) -
state(The charging state of the battery) -
icon(The icon of the battery) -
capacity(The capacity of the battery) -
energy(The energy of the battery, inWh) -
health(The health of the battery: energy_full / energy_full_design) -
time_remaining(The remaining battery time left (to full or to empty))- Control this by setting a custom format for
format_time - This will be empty when the remaining time cannot be calculated
- Control this by setting a custom format for
-
model(The battery model)
format_time supports:
hoursminutes