Lovelace: Multiple entity row

Assume you have
– alpha
– bravo
– charley
– delta
columns.

Any of these parameters may become “unavailable” or just equal to “bad”.
And you need to show a “N/A” value for these cases.
Then use smth like

                          hide_unavailable: true
                          hide_if:
                            value:
                              - bad
                          default: N/A

for each column.
Sure, if each column may have own “bad values” - you need to specify these “bad values” for each column.

1 Like

Thanks a lot Ildar, that does the job!

1 Like

Am i able to change the text above each column values for icons

image

I’m trying to make it look like the plant status card but I would like more than one plant on the same card

image

Why not placing them in a stack?

Hey,
I want to added padding around the mutiple-entity-row, but I don’t get padding working.

type: custom:stack-in-card
cards:
  - type: custom:multiple-entity-row
    entities:
      - entity: sensor.openweathermap_humidity
        name: Humi
      - entity: sensor.openweathermap_temperature
        name: Temp
    entity: sensor.openweathermap_condition
    name: Weather
    toggle: false
    show_state: false
    state_color: true
    styles: |
      .hui-generic-entity-row {
          padding: 12px;
        }

When I use the development tool, it is working.

Can someone tell me, what I am doing wrong?

Thanks and Greetings

with the code below i get

image

however pressing the button the toggle button does unlock the door (just once) but the toggle activates twice. example press toogle and it will go on/off/on/off not just off

changing - entity: sensor.door_lock to a light.whatever and the toggle activates just once

why??

      - entity: sensor.door_lock
        type: custom:multiple-entity-row
        name: Door lock
        secondary_info: last-changed
        toggle: true
        state_color: true
        entities:
          - entity: sensor.door_lock
            name: Motor status

Using a toggle for a sensor which is unsupported, that is why.

sorry typo sensor.door_lock should have been writen as lock.front_door


      - entity: lock.front_door
        type: custom:multiple-entity-row
        name: Door lock
        secondary_info: last-changed
        toggle: true
        state_color: true
        entities:
          - entity: sensor.door_lock
            name: Motor

but still doing the same, toggle activating twice

Place the lock entity as a standard entity-row inside Entities card - will it behave the same?
Do you have any automations related to this “lock” which may cause it to “toggle twice”?
Checked with same config:

type: entities
entities:
  - entity: lock.virtual_front_door_lock
    type: custom:multiple-entity-row
    name: Door lock
    secondary_info: last-changed
    toggle: true
    state_color: true
    entities:
      - entity: sun.sun
        name: Motor

and see no “toggle twice” glitch.

wiped out my automation.yaml rebooted and tested and still getting same

renamed to lock to front_door1 and it stopped happening so code myside.

still messed up.

Changing to

- entity: lock.tesla_model_3_doors

and the toggle works with out a double glitch.

image

calling nuki_lock from anywhere not the toggle button I get no glitch, however if I use the toggle I get the double glitch.

setting up a card for multiple temp (related) sensors in a decluttering-template, I am a bit puzzled why the
boolean for hide_unavailable: true doesnt work:

card:
  type: custom:multiple-entity-row
  entity: sensor.[[id]]_hygro_temp_temperature
  hide_unavailable: true
  state_header: Temp
  name: '[[name]]'
  entities:
    - entity: sensor.[[id]]_hygro_temp_humidity
      name: Vocht
    - entity: sensor.[[id]]_hygro_temp_battery
      name: Battery
  secondary_info:
    entity: sensor.[[id]]_hygro_temp_signal_strength
    name: Signal

it’s not the decluttering template, because I’ve also tested the verbose config with the same entity_id, and it shows identically:

please have a look? thx!

update

bte, his does work, core conditional on the same entity:

card:
  type: conditional
  conditions:
    - entity: sensor.[[id]]_hygro_temp_temperature
      state_not: unavailable
  card:
    type: custom:multiple-entity-row
    entity: sensor.[[id]]_hygro_temp_temperature
#     hide_unavailable: true
    state_header: Temp
    name: '[[name]]'
    <<: &width
      styles:
        width: 60px
        text-align: center
    entities:
      - entity: sensor.[[id]]_hygro_temp_humidity
        name: Vocht
        <<: *width
      - entity: sensor.[[id]]_hygro_temp_battery
        name: Battery
        <<: *width
    secondary_info:
      entity: sensor.[[id]]_hygro_temp_signal_strength
      name: Signal

Is there a way to prevent this last entity from showing the value in both columns? I’d like to just have the temperature inline with the other above and then a blank space where the humidity’s are listed because this location only has temp, not humidity.

image

type: entities
entities:
  - entity: sensor.lounge_multisensor_air_temperature
    type: custom:multiple-entity-row
    secondary_info: last-changed
    entities:
      - entity: sensor.lounge_multisensor_air_temperature
        name: false
      - entity: sensor.lounge_multisensor_humidity
        name: false
    name: Lounge
    show_state: false
  - entity: sensor.ensuite_ms6_air_temperature
    type: custom:multiple-entity-row
    secondary_info: last-changed
    entities:
      - entity: sensor.ensuite_ms6_air_temperature
        name: false
      - entity: sensor.ensuite_ms6_humidity
        name: false
    name: Ensuite
    show_state: false
  - entity: sensor.kitchen_ms6_air_temperature
    type: custom:multiple-entity-row
    secondary_info: last-changed
    entities:
      - entity: sensor.kitchen_ms6_air_temperature
        name: false
      - entity: sensor.kitchen_ms6_humidity
        name: false
    name: Kitchen
    show_state: false
  - entity: sensor.passage_ms6_air_temperature
    type: custom:multiple-entity-row
    secondary_info: last-changed
    entities:
      - entity: sensor.passage_ms6_air_temperature
        name: false
      - entity: sensor.passage_ms6_humidity
        name: false
    name: Passage
    show_state: false
  - entity: sensor.gym_multisensor_air_temperature
    type: custom:multiple-entity-row
    secondary_info: last-changed
    entities:
      - entity: sensor.gym_multisensor_air_temperature
        name: false
      - entity: sensor.gym_multisensor_humidity
        name: false
    name: Gym
    show_state: false
  - entity: sensor.garage_multisensor_air_temperature_2
    type: custom:multiple-entity-row
    secondary_info: last-changed
    entities:
      - entity: sensor.garage_multisensor_air_temperature_2
        name: false
      - entity: sensor.garage_multisensor_humidity_2
        name: false
    name: Garage
    show_state: false
  - entity: sensor.nspanel2_temperature
    type: custom:multiple-entity-row
    secondary_info: last-changed
    entities:
      - entity: sensor.nspanel2_temperature
        name: false
    name: Living Room
title: House Temps & Humidity
show_header_toggle: false

Howdy!
Want the first name not to be truncated. Can i have it maybe next line text? Maybe any custom css can help? but me and gpt doesnt know which
image

card-mod thread

I recently integrated my vacuum cleaner. It has MQTT and gives the following:

However I would like to try and put the brush time next to the button instead. This works but is a bit ugly. Is it possible to make it a button or clickable text instead somehow?

Hi, instead of second entity of temperature sensor use input_text.text with blank text and style: width 50px for this entity
- entity: input_text.text
name: false
styles:
width: 55px
text-align: right

Unfortunately that didn’t work.

Strange… Did you define input_text in Helpers?

            entities:
              - entity: sensor.t_h_sensor_1_temperature
                name: false
                format: precision0
                unit: "°"
                styles:
                  width: 35px
                  text-align: right
              - entity: input_text.text
                name: false
                styles:
                  width: 30px