Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A custom Lovelace component for displaying battery levels for battery entities

License

NotificationsYou must be signed in to change notification settings

cbulock/lovelace-battery-entity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A customLovelace card for displaying battery levels for battery entities forHome Assistant.

Install

Simple install

  1. Download and copybattery-entity.js into yourconfig/www directory.

  2. Add a reference tobattery-entity.js inside yourui-lovelace.yaml.

resources:  -url:/local/battery-entity.js?v=0.1type:module

Installation using Git

Clone this repository into yourconfig/www folder using git.

$git clone https://github.com/cbulock/lovelace-battery-entity.git

Add a reference to the card in yourui-lovelace.yaml.

resources:  -url:/local/lovelace-battery-entity/battery-entity.js?v=1type:module

Updating

  1. Find yourbattery-entity.js file inconfig/www or wherever you ended up storing it.

  2. Replace the local file with the latest one attached in the here:battery-entity.js.

  3. Add the new version number to the end of the cards reference url in yourui-lovelace.yaml like 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.

Using the card

Options

Card options

NameTypeDefaultSinceDefaultDescription
typestringrequiredv0.1custom:battery-entity
entitystringrequiredv0.1An entity_id that has a percentage as a state.
namestringoptionalv0.1friendly_nameOverride the entities friendly name.
warningintegeroptionalv0.135Sets the level at which the battery icon will be shown as yellow.
criticalintegeroptionalv0.115Sets the level at which the battery icon will be shown as red.

Example usage

-type:custom:battery-entityentity:sensor.front_door_lock_battery

License

This project is under the Apache License 2.0.

About

A custom Lovelace component for displaying battery levels for battery entities

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp