Lovelace: Multiple entity row

UPDATE: See Below

I have just discovered this card. WOW, this can help reduce the size of a lot of cards. Great work!!!

I’m just having one problem. I’ve set the card up, but nothing shows. I can’t work it out.

This is what I have:

type: entities
entities:
  - entity: sensor.abb_usage
    type: 'custom:multiple-entity-row'
    name: Usage
    primary:
      attribute: downloadedMb
      name: Download
      unit: Mb
    secondary:
      attribute: uploadedMb
      name: Upload
      unit: Mb
    tertiary:
      attribute: usedMb
      name: Total
      unit: Mb

I’m not seeing any errors. I get the main entity icon and name, but the primary, secondary & tertiary values are not showing.

This is the raw from the sensor:

usage: ''
usedMb: 9833
downloadedMb: 8465
uploadedMb: 1368
remainingMb: null
daysTotal: 29
daysRemaining: 29
lastUpdated: '2020-02-15T10:35:15+11:00'
nextRollover: '2020-03-15T00:00:00+11:00'
daysUsed: 0
allowanceMb: 100000000
friendly_name: ABB Usage
icon: 'mdi:blank'
entity_picture: /local/icons/abb/abb.png

Any ideas?

UPDATE:

I don’t know what happened. I tried again on another card and the manual changed.

This now works for me.

  - entity: sensor.abb_usage
    name: Usage
    entities:
      - attribute: downloadedMb
        name: Downloaded
      - attribute: uploadedMb
        name: Uploaded
      - attribute: usedMb
        name: Total
    type: 'custom:multiple-entity-row'
type: entities

Just released a new major version of the card yesterday changing many of the configuration options, as you figured out. This thread could be outdated, but the github repository should have the latest setup instructions at all times.

I installed via HACS. Maybe it hadn’t updated the description yet and was showing the old instructions. It’s working now and this card is great!!!

1 Like

Is it possible to change the color of the icon?

      - icon: mdi:lightbulb-off-outline
        tap_action:
          action: call-service
          service: light.turn_off
          service_data:
            entity_id: light.living_room

I’m used to the black icons with the tap_action - this is the default color of such icons in Lovelace anyway.

I was using the card in this way:

                  - entity: sensor.hp_printer_ink_cyan
                    style: |
                      :host {
                        --paper-item-icon-color: cyan;
                      }
                    type: custom:multiple-entity-row
                    name: Ink Cyan
                    icon: mdi:invert-colors
                    name_state: Livello
                    primary:
                      attribute: ['Installed At']
                      name: Installato il
                    secondary_info:
                      attribute: ['Warranty Expiration Date']
                      name: Scade il

But i get only the secondary_info showed in the frontend… How to get also the primary attribute ?

I just posted a fix on your other post in the HP Printer topic.

1 Like

Not directly, but you can use card-mod like in @maurizio53 example above.

Primary/secondary/tertiary was replaced with entities in version 3.0.0:

entities:
  - attribute: ['Installed At']
    name: Installato il
1 Like

Thanks, i realized that just after posting…

card-mod works, but for all icons in a row. Does not work on a single entity in the form of the tap_action icon. I would like the play and pause icons to be black and the main entity icon of the vacuum cleaner to be in the default color (blue). It is possible?

HI @benct

after the lates update my auto-entities card isn’t populated any longer, using this.entity_id. I think I changed all updated config options, but would you please have a look what could be wrong?:

  - type: custom:auto-entities
    card:
      type: entities
      title: Multiple lights
      show_header_toggle: false
    filter:
      include:
        - domain: light
          state: 'on'
          attributes:
            rgb_color: '! none'
          options:
             type: custom:multiple-entity-row
             toggle: true
             secondary_info: last-changed
             entities:
               - entity: this.entity_id
                 attribute: brightness
                 name: Bri
                 unit: '%'

               - entity: this.entity_id
                 attribute: rgb_color
                 name: Rgb

worked just nicely before with primary and secondary…
thanks for having a look!

update

just letting you know this is working again. Not even sure an update caused this, but all fine once more.

2 Likes

Great, just wat i needed.
Thank you so much.

One question, is it possible to change the size of the main icon?
I’ve even tried card-mod without succes.

ty

Is there a way to have a lock.toggle on tap_action. I want to be able to lock and unlock my front door on tap.

I have a problem using tap_action on this card.

If I use the card to simply to show an entity (sometimes with a custom secondary info) and define a tap action of browser_mod.popup I get the default HA more-info pop up if I tap the name or icon, but the correct popup that I defined if I tap on the state.

This config…

type: custom:multiple-entity-row
entity: input_number.irrigation_number_of_zones
name: Number of zones defined
tap_action:
  action: call-service
  service: browser_mod.popup
  service_data:
    title: Number of zones defined
    card:
      type: entities
      entities:
        - entity: input_number.irrigation_number_of_zones
          name: ' '
    deviceID:
      - this
    style:
      font-family: Oswald
      font-size: 14px
      border-radius: 10px
      box-shadow: 0px 0px 8px 2px
      "--paper-dialog-background-color": "#343433"  # Popup header
      "--paper-card-background-color": "#343433"  # Card background

…produces this

image

Tapping the state gives this popup (correct)
image

Tapping the name or icon gives this popup (incorrect)
image

Can anyone help?

entities:
  - entity: binary_sensor.door_window_sensor_158d0002027e23
  - entity: binary_sensor.door_window_sensor_158d0001fd6efe
  - entity: binary_sensor.motion_sensor_158d00022548e0
  - entity: light.tall
  - entity: light.sofa
  - entity: light.desk
  - entity: switch.livingroom_light
  - entity: switch.computer_light
  - entity: switch.kitlight
  - entity: cover.curtains
    type: 'custom:multiple-entity-row'
    secondary_info: last-changed
    show_state: false
    entities:
      - icon: 'mdi:blinds-open'
        tap_action:
          action: call-service
          service: cover.open_cover
          service_data:
            entity_id: cover.curtains
      - icon: 'mdi:stop'
        tap_action:
          action: call-service
          service: cover.stop_cover
          service_data:
            entity_id: cover.curtains
      - icon: 'mdi:blinds'
        tap_action:
          action: call-service
          service: cover.close_cover
          service_data:
            entity_id: cover.curtains
show_header_toggle: false
title: Livingroom
type: entities

What does error mean? The card works fine either with that message in Chrome, Firefox, Safari but not edge (Custom element does not exisit error), the URL resource has been added.

Expected a value of type {entity,name,icon} | entity-id for entities.9.type but received "custom:multiple-entity-row".

1 Like

Anyone help? Can you even add Multiple Entity Row to an entity card? If so can some send me an example that works

Sure, it’s just another entity in the list.

entities:
  - entity: binary_sensor.door_window_sensor_158d0002027e23
  - entity: binary_sensor.door_window_sensor_158d0001fd6efe
  - entity: ...
  - type: custom:multiple-entity-row
    ...
  - entity: ...
1 Like

Hi There
First I love the card, keep up the good work, Thx :slightly_smiling_face:
Is there away to change the space between the entities on the row?
If not, this feature would really help to make it look nicer when the entities are too cramped and there is
plenty of room in the row.
Thx
Hillel

tried your code and get errors?

entities:
  - entity: binary_sensor.door_window_sensor_158d0002027e23
  - entity: binary_sensor.door_window_sensor_158d0001fd6efe
    type: custom:multiple-entity-row

Expected a value of type {entity,name,icon} | entity-id for entities.1.type but received "custom:multiple-entity-row".

Expected a value of type {entity,name,icon} | entity-id for entities.1.type but received "custom:multiple-entity-row"

Got a feeling this error is mean to appear however not sure why it still fails in edge but works in all the other browsers.

Edge error

Resource URL has been added to HA dashboard in the new place.