Skip to content
Show multiple entity states on entity rows in Home Assistant's Lovelace UI
Branch: master
Clone or download
Latest commit f9db72a May 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Apr 1, 2019
README.md Update README.md May 4, 2019
example.png Reduce example image size Apr 3, 2019
multiple-entity-row.js Show more-info dialog on click on additional entities May 3, 2019
tracker.json Update version (1.1.0) May 3, 2019

README.md

multiple-entity-row

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

GH-release GH-last-commit GH-code-size

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.1.0
    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.githubusercontent.com/benct/lovelace-multiple-entity-row/master/tracker.json

Options

Name Type Default Description
type string Required custom:multiple-entity-row
entity string Required domain.my_entity_id
name string Override entity friendly_name
unit string Override entity unit_of_measurement
icon string Override entity icon
toggle bool false Display a toogle instead of state
hide_state bool false Hide the entity state
primary object see below Primary additional entity object
secondary object see below Secondary additional entity object

Primary/secondary object

Name Type Default Description
entity string Required A valid entity_id
name string/bool Override entity friendly_name (set to false to hide)
unit string Override entity unit_of_measurement
attribute string  A valid attribute key for the specified entity

Example

multiple-entity-row

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

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

  - 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 | github-entity-row | multiple-entity-row | attribute-entity-row

BMC

You can’t perform that action at this time.