Lovelace: Multiple entity row

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.

I’m having a problem with the toggle option for a switch entity displaying as two buttons instead of an actual toggle.

The documentation appears to show switch as domain that supports a normal toggle.

Perhaps MQTT switches are special case for some reason?

  - type: 'custom:multiple-entity-row'
    entities:
      - entity: switch.smartfan_vertical
        name: Vertical
        toggle: true
      - entity: switch.smartfan_horizontal
        name: Horizontal
        toggle: true
    entity: input_select.smartfan_oscillation
    show_state: false

The first row is what I see and the second is what I want to see:

image

UPDATE: Solved my own issue, the mqtt switch was incorrectly configured as optimistic: true.

I am using card this for water sensors. Both sensors have device_class set to moisture. When I use just an entity card, the state shows as “Dry”. When I add the multiple entity row type to bring in last changed and battery info, “Dry” changes to “Off”. Below is my code and a screenshot. Bug or something I did wrong?

type: entities
title: Water Sensors
entities:
  - entity: binary_sensor.dome_leak_sensor_laundry
    name: Laundry
    type: 'custom:multiple-entity-row'
    secondary_info: last-changed
  - entity: binary_sensor.dome_leak_sensor_water_heater
    name: Water Heater

image

It is known to the dev but the fix has no known ETA

I have the same issue as ladaowner although the cause may be different. Whenever I reboot home assistant there will be a time when some sensors will show an ‘entity not available’ error. If any entity used in the multiple entity row card is not available then the entire card will error out and not be displayed. Does anyone know of a way to catch these errors more gracefully, perhaps utilising the ‘config-template-card’ or the ‘decluttering-card’? I don’t have the experience to know if this is possible or not.

Hi, @benct, I would like to thanks and congratulate - very useful custom card.
Question - is it possible to see timer counting down? As it is in entity type card.