- Notifications
You must be signed in to change notification settings - Fork24
A custom Lovelace component for displaying battery levels for battery entities
License
cbulock/lovelace-battery-entity
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A customLovelace card for displaying battery levels for battery entities forHome Assistant.
Download and copybattery-entity.js into your
config/wwwdirectory.Add a reference to
battery-entity.jsinside yourui-lovelace.yaml.
resources: -url:/local/battery-entity.js?v=0.1type:module
Clone this repository into yourconfig/www folder using git.
$git clone https://github.com/cbulock/lovelace-battery-entity.gitAdd a reference to the card in yourui-lovelace.yaml.
resources: -url:/local/lovelace-battery-entity/battery-entity.js?v=1type:module
Find your
battery-entity.jsfile inconfig/wwwor wherever you ended up storing it.Replace the local file with the latest one attached in the here:battery-entity.js.
Add the new version number to the end of the cards reference url in your
ui-lovelace.yamllike below.
resources: -url:/local/battery-entity.js?v=0.2type:module
You may need to empty the browsers cache if you have problems loading the updated card.
| Name | Type | Default | Since | Default | Description |
|---|---|---|---|---|---|
| type | string | required | v0.1 | custom:battery-entity | |
| entity | string | required | v0.1 | An entity_id that has a percentage as a state. | |
| name | string | optional | v0.1 | friendly_name | Override the entities friendly name. |
| warning | integer | optional | v0.1 | 35 | Sets the level at which the battery icon will be shown as yellow. |
| critical | integer | optional | v0.1 | 15 | Sets the level at which the battery icon will be shown as red. |
-type:custom:battery-entityentity:sensor.front_door_lock_battery
This project is under the Apache License 2.0.
About
A custom Lovelace component for displaying battery levels for battery entities
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
