All Projects → benct → lovelace-battery-entity-row

benct / lovelace-battery-entity-row

Licence: MIT license
Show battery states or attributes with dynamic icon on entity rows in Home Assistant's Lovelace UI

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to lovelace-battery-entity-row

uptime-card
Minimalistic uptime card for Home Assistant Lovelace UI
Stars: ✭ 152 (+210.2%)
Mutual labels:  card, home-assistant, hacs, lovelace
bom-radar-card
A rain radar card using the new tiled images from the Australian BOM
Stars: ✭ 52 (+6.12%)
Mutual labels:  home-assistant, hacs, lovelace, lovelace-ui
Lovelace Multiple Entity Row
Show multiple entity states and attributes on entity rows in Home Assistant's Lovelace UI
Stars: ✭ 273 (+457.14%)
Mutual labels:  card, state, entity, home-assistant
numberbox-card
Replace input_number sliders with plus and minus buttons
Stars: ✭ 61 (+24.49%)
Mutual labels:  home-assistant, hacs, lovelace, lovelace-ui
lovelace-attribute-entity-row
Show attribute(s) on entity rows in Home Assistant's Lovelace UI
Stars: ✭ 21 (-57.14%)
Mutual labels:  attribute, lovelace, home-assistant-frontend, lovelace-ui
ha-card-weather-conditions
Weather condition card (Lovelace) for Home Assistant.
Stars: ✭ 101 (+106.12%)
Mutual labels:  card, home-assistant, lovelace
slider-button-card
A button card with integrated slider
Stars: ✭ 319 (+551.02%)
Mutual labels:  card, hacs, lovelace
purifier-card
Air Purifier card for Home Assistant Lovelace UI
Stars: ✭ 155 (+216.33%)
Mutual labels:  home-assistant, hacs, lovelace
Home-Assistant-Main
My Home Assistant Configuration Be sure to ⭐ my repo so you can keep up to date on the daily progress!
Stars: ✭ 54 (+10.2%)
Mutual labels:  home-assistant, lovelace, home-assistant-frontend
lovelace-climate-mode-entity-row
Climate mode entity for Lovelace
Stars: ✭ 49 (+0%)
Mutual labels:  card, home-assistant, lovelace
tesla-style-solar-power-card
Home assistant power card mimicking the one tesla provides for the powerwall app.
Stars: ✭ 103 (+110.2%)
Mutual labels:  battery, card, lovelace
entur-card
Home Assistant Lovelace card card for the Entur public transport component.
Stars: ✭ 38 (-22.45%)
Mutual labels:  home-assistant, hacs, lovelace
lovelace-roomba-vacuum-card
HA Lovelace Card for iRobot Roomba Vacuum Cleaner leveraging the rest980 Docker Image
Stars: ✭ 34 (-30.61%)
Mutual labels:  lovelace, home-assistant-frontend, lovelace-ui
lovelace-valetudo-map-card
Draws the map available from a Xiaomi Vacuum cleaner flashed with Valetudo in a Home Assistant Lovelace card
Stars: ✭ 149 (+204.08%)
Mutual labels:  home-assistant, hacs, lovelace
google home timers card
Card for Home Assistant Google Home integration.
Stars: ✭ 29 (-40.82%)
Mutual labels:  lovelace, home-assistant-frontend, lovelace-ui
atomic-calendar-revive
An advanced calendar card for Home Assistant Lovelace.
Stars: ✭ 218 (+344.9%)
Mutual labels:  card, hacs, lovelace
light-card
Lovelace light-card for home assistant
Stars: ✭ 18 (-63.27%)
Mutual labels:  home-assistant, lovelace, lovelace-ui
hass-shutter-card
Shutter card for Home Assistant Lovelace UI
Stars: ✭ 151 (+208.16%)
Mutual labels:  home-assistant, hacs, lovelace
tv-card
📺 TV Remote Card
Stars: ✭ 139 (+183.67%)
Mutual labels:  lovelace, home-assistant-frontend, lovelace-ui
MeteoalarmCard
Meteoalarm, Météo-France and DWD severe weather warnings card for Home Assistant Lovelace UI ⛈️
Stars: ✭ 48 (-2.04%)
Mutual labels:  hacs, lovelace, lovelace-ui

battery-entity-row

Show battery states or attributes with dynamic icon on entity rows in Home Assistant's Lovelace UI

GH-release GH-downloads GH-last-commit GH-code-size hacs_badge

Rewritten and improved version of cbulock's battery-entity card (deprecated/unmaintained).

NOTE: This is not a standalone lovelace card, but a row element for the entities card. If you need a standalone card or want a lot more customizability, check out maxwroc's battery-state-card.

Installation

Manually add battery-entity-row.js to your <config>/www/ folder and add the following to the configuration.yaml file:

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

OR install using HACS and add this (if in YAML mode):

lovelace:
  resources:
    - url: /hacsfiles/lovelace-battery-entity-row/battery-entity-row.js
      type: module

The above configuration can be managed directly in the Configuration -> Lovelace Dashboards -> Resources panel when not using YAML mode, or added by clicking the "Add to lovelace" button on the HACS dashboard after installing the plugin.

Configuration

This card produces an entity-row and must therefore be configured as an entity in an entities card.

The battery level value is fetched from the entity state, from the attribute battery or battery_level, or from a custom attribute defined with the attribute option. Numeric values (0-100) and some predefined string values (high, normal, low, etc..) are supported as a battery level value.

Name Type Default Description
type string Required custom:battery-entity-row
entity string Required domain.my_entity_id
attribute string battery_level Override battery level attribute
name string friendly_name Override entity friendly_name
secondary_info string last-changed, last-updated or an attribute of the entity.
unit string/bool % Override default unit, or hide with false
icon string Override dynamic battery icon
warning number 35 Level at which the icon will appear yellow
critical number 15 Level at which the icon will appear red
charging bool/object false Indicate charging based on entity state. See charging object for more options.

Currently limited support for secondary_info option with value last-changed.

Charging object

Name Type Default Description
entity string main entity Get charging state from another entity
attribute string Get charging state from an attribute
state string/list "on", "charging" Add values that indicate charging (case insensitive)

Examples

battery-entity-row

type: entities
entities:
  - type: custom:battery-entity-row
    entity: sensor.bedroom_temperature

  - type: custom:battery-entity-row
    entity: sensor.bedroom_temperature
    attribute: battery_percent
    name: Some battery
    unit: percent
    icon: mdi:battery-alert
    secondary_info: last-changed
    warning: 50
    critical: 25
    charging: true

  - type: custom:battery-entity-row
    entity: sensor.bedroom_temperature
    name: Charging battery
    charging:
      entity: binary_sensor.bedroom_temperature_charger
      attribute: charging
      state:
        - Enabled
        - is_charging

Usage in auto-entities card:

type: custom:auto-entities
card:
  type: entities
filter:
  include:
    - entity_id: sensor.battery*   # or use other matchers
      options:
        type: custom:battery-entity-row
        <battery-entity-row options>

My cards

xiaomi-vacuum-card | multiple-entity-row | github-entity-row | battery-entity-row | attribute-entity-row

BMC

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].