Lovelace: Multiple entity row

Cannot be used inside multiple-entity-row

Thanks Ildar. - so how do I get this to work, with customized (based on state value) icons but using multiple-entitity-row?

Much appreciated.
Martin

Confirm:

  1. This must be placed inside Entities card (probably with other rows) as a “row”.
  2. This “row” must contain an icon, name, two icons.
  3. Each icon (except the 1st) must change dependently on a state of an associated entity.

Right?

Hi Ildar,

Here is my full code for the Entities card and screen shot:

type: entities
entities:
  - entity: button.button_main_garage
    type: custom:multiple-entity-row
    name: Main Garage Shutter
    secondary_info: last-changed
    show_state: false
    tap_action:
      action: call-service
      service: button.press
      data:
        entity_id: button.button_main_garage
    entities:
      - entity: binary_sensor.status_garage_roll_gate
        name: Garage
        icon: mdi:garage
        state_color: true
  - entity: button.switch_main_gate_motor_pulse
    type: custom:multiple-entity-row
    name: Main Gate
    secondary_info: last-changed
    show_state: false
    tap_action:
      action: call-service
      service: button.press
      data:
        entity_id: button.switch_main_gate_motor_pulse
    entities:
      - entity: binary_sensor.status_main_entrance_gate
        name: Gate
        icon: mdi:gate
        state_color: true
  - type: section
  - entity: sensor.victron_system_battery_soc
    type: custom:multiple-entity-row
    name: Battery Guest House
    show_state: false
    secondary_info: last-changed
    entities:
      - entity: sensor.victron_system_battery_soc
        name: SOC
      - entity: sensor.victron_c753_gh_cerbo_battery_temperature
        name: Temp
      - entity: sensor.victron_c753_gh_cerbo_battery_voltage
        name: Voltage
  - entity: sensor.victron_c753_gh_cerbo_battery_voltage
    type: custom:multiple-entity-row
    name: Victron Guest House
    show_state: false
    secondary_info: last-changed
    entities:
      - entity: sensor.victron_c753_gh_cerbo_victron_activein_l1_current_227
        name: ACIn
      - entity: sensor.victron_c753_gh_cerbo_victron_out_l1_power_227
        name: ACOut
      - entity: sensor.victron_c753_gh_cerbo_tempsensor_temperature_24
        name: Temp
  - type: section
  - entity: switch.g0294_block_ufh_circulation_pump
    type: custom:multiple-entity-row
    name: Block UFH Circulation Pump
    secondary_info: last-changed
    show_state: false
    icon: mdi:block-helper
    state_color: true
    tap_action:
      action: call-service
      service: button.press
      data:
        entity_id: switch.g0294_block_ufh_circulation_pump
    entities:
      - entity: binary_sensor.status_ufh_circulation_pump
        name: Pump Status
        icon: mdi:autorenew
        state_color: true
      - entity: binary_sensor.status_ufh_circulation_pump
        name: ' '

What this card does it has two first rows of button triggers that, when pressed, send a 1 to KNX bus that triggers a button for 500 milli seconds to activate garage shutter or main gate. It effectively closes a dry contact like a remote control for a gate/shutter does without knowing the status.

At the end of each row I am displaying the status of the garage shutter/gate which is a magnetic sensor that actually knows if the gate is closed or not. binary_sensor.status_garage_roll_gate / binary_sensor.status_main_entrance_gate

That sensor should display different icons, depending on the state of the sensor. the sensor returns on or off depending the status of the garage shutter/gate.

On that note, it would be great to customize the secondary-info as well - instead of showing the “last-changed” from the button button.button_main_garage to show the “last-changed” from binary_sensor.status_garage_roll_gate because the garage can also be triggered from KNX itself or from a motion sensor - so the idea is to show when it was actually last opened or closed which is information that must come from the sensor.

thanks so much for your help.

Rgds
Martin

Specifying a proper “device_class” for a sensor causes displaying different icons:

  - type: custom:multiple-entity-row
    entity: sun.sun
    entities:
      - entity: binary_sensor.testing_device_class_battery_charging
        icon: true
        name: false
        state_color: true
      - entity: binary_sensor.testing_device_class_heat
        icon: true
        name: false
        state_color: true
      - entity: cover.garage_door_2
        icon: true
        name: false
        state_color: true
      - entity: cover.hall_window
        icon: true
        name: false
        state_color: true
    show_state: false

image

As for secondary_info - refer to Docs about possible options.

how do i not show a column with a condition?
if input_select.auto_irrigation_type is on
it shows me 1,2,3
if it is off it only shows me 1,2

entity: input_boolean.irrigazione_flag_zona1_ciclo3
type: custom:multiple-entity-row
entities:
  - entity: input_boolean.irrigazione_flag_zona1_ciclo1
    icon: mdi:numeric-1-circle
    name: false
  - entity: input_boolean.irrigazione_flag_zona1_ciclo2
    icon: mdi:numeric-2-circle
    name: false
  - entity: input_boolean.irrigazione_flag_zona1_ciclo3
    icon: mdi:numeric-3-circle
    name: false

Use “hide_if” option.

how can i use it?

Described in docs.

hide_if refers to the value of the entity to display or not…
I have to hide that entity if another entity is off

Got it; then card-mod seems to be the only way.
Apply “display: none” style conditionally.

card-mod doesent work with multiple-entity-row, but work only with type entities


I’m tring to add image instead of icon on left as the post quoted, but something don’t work
If I try this:

type: entities
entities:
  - type: section
  - entity: switch.lavatrice
    type: custom:multiple-entity-row
    name: Lavatrice
    icon: mdi:washing-machine
#    image: /local/pics/lavatrice_ico.jpg
    toggle: true
    state_color: true
    entities:
      - entity: sensor.lavatrice_power
        name: Power
      - entity: sensor.lavatrice_energy
        format: precision2
        name: Total

it’s ok and the icon is correct, but if I wont to show image:

type: entities
entities:
  - type: section
  - entity: switch.lavatrice
    type: custom:multiple-entity-row
    name: Lavatrice
#    icon: mdi:washing-machine
    image: /local/pics/lavatrice_ico.jpg
    toggle: true
    state_color: true
    entities:
      - entity: sensor.lavatrice_power
        name: Power
      - entity: sensor.lavatrice_energy
        format: precision2
        name: Total

nothing appear… what i’m wrong?

EDIT: now its ok, I just delete a commented line

As it is supposed to do.
I misread your post.
Card-mod surely may be used - but not the way you do.
Goto card-mod thread → 1st post → link at the bottom → examples for m-e-r.

This statement is wrong ofc.

1 Like

Correct. edited my previous post, seems to be written w/o any thinking(((

Is there a way to make number entities editable within the multiple-entities-row, like in the standard number view in an entities card?

grafik

From what I find in the docs, the only “editable” entity is a switch (setting toggle: true)

Background: I really like the multiple-entities-row particularly to make my settings views more compact.
Typical use-case: Combine setting the timer for irrigation with an enable switch.

Currently editable numbers are not supported.

This card is excelent…but I need some help…

I want to present Temperature and Humidity for a ZigBee sensor (Sonoff SNZB02), but I want the secondary information to be last-updated for last-seen for that sensor (sensor.ute_last_seen) and then present sensor.ute_humidity and sendor.ute_temperature to the right.
…and I have managed to get the info right, by setting show_state=false for main sensor and then added humidity and temperature as entities below

image

BUT - when I click/press on the sensor name, it obviously open up the last_seen sensor view and I would prefer sensor.ute_temperture…

I think tap_action is the key here…but I don’t understand how to configure it…

I have tried this…that does not work:

type: entities
entities:
  - entity: sensor.ute_last_seen
    type: custom:multiple-entity-row
    name: Ute
    icon: mdi:weather-partly-cloudy
    show_state: false
    tap_action:
      entity_id: sensor.ute_temperature
      action: more-info
    secondary_info: last-updated
    entities:
      - entity: sensor.ute_humidity
        name: false
      - entity: sensor.ute_temperature
        name: false

Can someone help me out!?

Struggling with another case for Mutiple entity row…
I’m using a sensor last_seen as entity and present it’s last-updated value for secondary_info and leaves primary info blank to be able to present the sensors temperature (and for some even humidity) as entities. See my example in previous post.
I have managed to make name and entities and icon to change with sensor value
But I would like to have main entity (the last_seen last-updated value to change color depending on time…for example to be green if it’s <30 min, orange from 30min-2h and red if >2h…
That was tricky…
I have used some template in a widget… {{ relative_time( states.sensor.ute_last_seen.last_updated ) }} that might be something to start from…but my coding skills are limited…

Anyone have some idea or know how?