Skip to content

Show multiple entity states and attributes on entity rows in Home Assistant's Lovelace UI

License

NotificationsYou must be signed in to change notification settings

chriss158/lovelace-multiple-entity-row

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multiple-entity-row

Show multiple entity states or attributes on entity rows in Home Assistant's Lovelace UI

GH-releaseGH-last-commitGH-code-sizehacs_badge

Setup

Add multiple-entity-row.js to your <config>/www/ folder. Add the following to your ui-lovelace.yaml file:

resources:
  - url: /local/multiple-entity-row.js?v=1.4.1
    type: js

(Optional) Add to custom updater

  1. Make sure you have the custom_updater component installed and working.

  2. Add a new reference under card_urls in your custom_updater configuration in configuration.yaml.

custom_updater:
  card_urls:
    - https://raw.usercontent.com/benct/lovelace-multiple-entity-row/master/tracker.json

Options

NameTypeDefaultDescription
typestringRequiredcustom:multiple-entity-row
entitystringRequireddomain.my_entity_id
namestringOverride entity friendly_name
unitstringOverride entity unit_of_measurement
iconstringOverride entity icon
toggleboolfalseDisplay a toggle (if supported) instead of state
hide_stateboolfalseHide the entity state
name_statestringAdd name/header above the main entity state
primaryobjectsee belowPrimary additional entity object
secondaryobjectsee belowSecondary additional entity object (not to be confused with secondary_info)
tertiaryobjectsee belowTertiary additional entity object (make sure there is enough room)
infoobjectsee belowAdditional entity object as secondary_info

Entity objects (primary | secondary | tertiary | info*)

NameTypeDefaultDescription
entitystringRequiredA valid entity_id
namestring/boolOverride entity friendly_name (set to false to hide)
unitstringOverride entity unit_of_measurement
attributestringA valid attribute key for the specified entity
toggleboolfalseDisplay a toggle if supported by domain

* The info object does not support toggle

Example

multiple-entity-row

type: entities
title: multiple-entity-row
entities:
  - type: section
    label: Primary
  - entity: sensor.bedroom_temperature
    type: custom:multiple-entity-row
    primary:
      entity: sensor.bedroom_max_temp

  - type: section
    label: Primary + Secondary
  - entity: sensor.bedroom_temperature
    type: custom:multiple-entity-row
    primary:
      entity: sensor.bedroom_min_temp
    secondary:
      entity: sensor.bedroom_max_temp

  - type: section
    label: Info (secondary_info)
  - entity: sensor.bedroom_temperature
    type: custom:multiple-entity-row
    primary:
      entity: sensor.bedroom_min_temp
    secondary:
      entity: sensor.bedroom_max_temp
    info:
      entity: sensor.bedroom_temperature
      attribute: battery_level
      name: Battery
      unit: '%'

  - type: section
    label: Attributes
  - entity: vacuum.vacuum_cleaner
    type: custom:multiple-entity-row
    primary:
      entity: vacuum.vacuum_cleaner
      attribute: battery_level
      name: Battery
      unit: '%'
    secondary:
      entity: vacuum.vacuum_cleaner
      attribute: status
      name: Status

  - type: section
    label: Toggle
  - entity: switch.livingroom_tv
    type: custom:multiple-entity-row
    toggle: true
    primary:
      entity: sensor.livingroom_tv_power
    secondary:
      entity: sensor.livingroom_tv_power_total

  - type: section
    label: Hide state
  - entity: switch.livingroom_tv
    type: custom:multiple-entity-row
    hide_state: true
    primary:
      entity: sensor.livingroom_tv_power
    secondary:
      entity: sensor.livingroom_tv_power_2

  - type: section
    label: Hide name
  - entity: sensor.bedroom_temperature
    type: custom:multiple-entity-row
    primary:
      entity: sensor.bedroom_min_temp
      name: false
    secondary:
      entity: sensor.bedroom_max_temp
      name: false

  - type: section
    label: Customization
  - entity: sensor.bedroom_temperature
    type: custom:multiple-entity-row
    name: Custom Name
    icon: mdi:fire
    unit: °F
    secondary_info: last-changed
    primary:
      name: custom name
      entity: sensor.bedroom_max_temp
      unit: temp

My cards

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

BMC

About

Show multiple entity states and attributes on entity rows in Home Assistant's Lovelace UI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%