All Projects → cbulock → Lovelace Battery Entity

cbulock / Lovelace Battery Entity

Licence: apache-2.0
A custom Lovelace component for displaying battery levels for battery entities

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Lovelace Battery Entity

Addon Aircast
AirCast - Home Assistant Community Add-ons
Stars: ✭ 100 (-19.35%)
Mutual labels:  home-assistant
Operating System
🔰 Home Assistant Operating System
Stars: ✭ 1,920 (+1448.39%)
Mutual labels:  home-assistant
Addon Ssh
SSH & Web Terminal - Home Assistant Community Add-ons
Stars: ✭ 114 (-8.06%)
Mutual labels:  home-assistant
Iphonedetect
A custom component for Home Assistant to detect iPhones connected to local LAN, even if the phone is in deep sleep.
Stars: ✭ 102 (-17.74%)
Mutual labels:  home-assistant
Synthwave Hass
Synthwave inspired theme for Home Assistant
Stars: ✭ 103 (-16.94%)
Mutual labels:  home-assistant
Home Assistant Config
🏠 My Home Assistant configuration and documentation. More info below.
Stars: ✭ 107 (-13.71%)
Mutual labels:  home-assistant
Frontend
🍭 Frontend for Home Assistant
Stars: ✭ 1,366 (+1001.61%)
Mutual labels:  home-assistant
Hassbian Scripts
Scripts used in the Hassbian image.
Stars: ✭ 121 (-2.42%)
Mutual labels:  home-assistant
Denonavr
Automation Library for Denon AVR receivers.
Stars: ✭ 104 (-16.13%)
Mutual labels:  home-assistant
Ha Shellies Discovery
Script that adds MQTT discovery support for Shellies devices
Stars: ✭ 113 (-8.87%)
Mutual labels:  home-assistant
Addon Grafana
Grafana - Home Assistant Community Add-ons
Stars: ✭ 102 (-17.74%)
Mutual labels:  home-assistant
Google dark theme
🎨 By JuanMTech -- A Home Assistant theme inspired on the Google app dark mode.
Stars: ✭ 103 (-16.94%)
Mutual labels:  home-assistant
Hass Data Detective
Explore and analyse your Home Assistant data
Stars: ✭ 109 (-12.1%)
Mutual labels:  home-assistant
Hasswp
Portable version of Home Assistant for Windows (no need to install)
Stars: ✭ 101 (-18.55%)
Mutual labels:  home-assistant
Itead sonoff
Alternative firmware for Itead Sonoff switches, based on the MQTT protocol and a TLS connection
Stars: ✭ 115 (-7.26%)
Mutual labels:  home-assistant
Mini Graph Card
Minimalistic graph card for Home Assistant Lovelace UI
Stars: ✭ 1,370 (+1004.84%)
Mutual labels:  home-assistant
Loadcelloccupany
Home automation occupancy sensor using load cells
Stars: ✭ 103 (-16.94%)
Mutual labels:  home-assistant
Addon Motioneye
motionEye - Home Assistant Community Add-ons
Stars: ✭ 122 (-1.61%)
Mutual labels:  home-assistant
Addon Pi Hole
Pi-hole - Home Assistant Community Add-ons
Stars: ✭ 120 (-3.23%)
Mutual labels:  home-assistant
Home Assistant Config
Home Assistant Config
Stars: ✭ 111 (-10.48%)
Mutual labels:  home-assistant

Lovelace Battery Entity

A custom Lovelace component for displaying battery levels for battery entities for Home Assistant.

Install

Simple install

  1. Download and copy battery-entity.js into your config/www directory.

  2. Add a reference to battery-entity.js inside your ui-lovelace.yaml.

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

Installation using Git

Clone this repository into your config/www folder using git.

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

Add a reference to the card in your ui-lovelace.yaml.

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

Updating

  1. Find your battery-entity.js file in config/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 your ui-lovelace.yaml like below.

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

You may need to empty the browsers cache if you have problems loading the updated card.

Using the card

Options

Card options

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.

Example usage

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

License

This project is under the Apache License 2.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].