Lovelace: Multiple entity row

Which icon do you want to hide - main entity, secondary items?
Anyway, you may use mdi:blank for the main entity or secondary items.
Also, "icon: false" is used to show an entity’s state instead of an icon (secondary items).
And "card-mod" may be used too…

type: vertical-stack
cards:
  - type: entities
    entities:
      - type: 'custom:multiple-entity-row'
        entity: sun.sun
        entities:
          - entity: sun.sun
        name: Default
  - type: entities
    entities:
      - type: 'custom:multiple-entity-row'
        entity: sun.sun
        style:
          hui-generic-entity-row:
            $: |
              state-badge {
                display: none !important;
              }
        entities:
          - entity: sun.sun
        name: Removed icon
  - type: entities
    entities:
      - type: 'custom:multiple-entity-row'
        entity: sun.sun
        entities:
          - entity: sun.sun
        name: Blank icon
        icon: 'mdi:blank'

image

1 Like

Thank you, VERY helpful. Figured how to remove the icon - now trying to add some padding to the right side of the full_row slider:

- type: conditional
            conditions:
            - entity: media_player.htd_outside_couch
              state: "on"
            card:
              type: horizontal-stack
              cards:
              - type: entities
                style: |
                  ha-card {margin-top: -15px; }
                entities:
                - type: custom:multiple-entity-row
                  style:
                    hui-generic-entity-row:
                      $: |
                        state-badge { display: none !important; }
                  entity: media_player.htd_outside_couch
                  show_state: false
                  secondary_info:
                    attribute: source
              - type: custom:slider-entity-row
                entity: media_player.htd_outside_couch
                full_row: true
                style:
                  slider-entity-row:
                     $: |
                       span { padding-right: 25px !important; }

What I have above isn’t working w/ the span { padding-right…}

Ask these questions in the card-mod topic.

Done. TY for the suggestion.

Hi

I’m having a slight issue with formatting when using this card.

I have 4 helpers, 2 x input.datetime and 2 x input.number.

When I display the datetime helpers using this card so everything is on the same line it shows the datetime with AM / PM. I would just like it to be displayed as HH:mm, in 24 hour format.

Also, when I display the number helpers using this card it shows the number with one decimal place. I would just like it to be displayed as a whole number, ie 20, not 20.0

Here’s the code I’m using with a screenshot of what it displays, and thanks in advance for any help.

type: entities
title: Schedule 1
show_header_toggle: false
entities:
  - entity: input_boolean.day_1_1
    type: 'custom:multiple-entity-row'
    show_state: false
    state_color: true
    tap_action:
      action: none
    entities:
      - entity: input_boolean.day_1_1
        toggle: true
        name: false
      - entity: input_datetime.workday_1_1
        name: Work day
      - entity: input_number.workday_1_1
        name: °C
      - entity: input_datetime.offday_1_1
        name: Off day
      - entity: input_number.offday_1_1
        name: °C

image

Have you tried this?

This is probably not related to the multiple-entity-row, it is about time format in HA.

I think it is related to the multiple-entity-row, the screenshot below shows with and without the multiple-entity-row. In the bottom part I use just a entities card without the multiple-entity-row function and the display is just fine.

Again, try to fix "precision" first.
As for “24h” - register an issue in GitHub if you think that it is a bug.

I’m really new to HS, I’m unsure what you mean by this?

precision

Thanks Ildar_Gabdullin, By doing the following (precision0) I have managed to remove the decimal place.

      - entity: input_number.workday_1_1
        name: °C
        format: precision0

Now just hoping for a solution to display the datetime as 24H, not AM/PM, Any ideas?

Here is my proposal )))
Other solutions are like “let’s create a template sensor which is converted to 24h format - and then use the sensor in the multiple-entity-row”.

Yeah I did think of that but these are input helpers and I need t have the input functionality, so when the number clicked it opens up a window that allows me to set the temperature:

A possible solution:

type: entities
entities:
  - type: 'custom:multiple-entity-row'
    entity: sun.sun
    entities:
      - entity: input_datetime.test_time
        name: time
        format: time
    show_state: false

image

Hi Ildar_Gabdullin, I did try that but the only issue with that is the format is in hh:mm:ss, and I would just like it to display hh:mm (because having the ss showing just makes it look unsightly). If there is a way to make it display hh:mm then it would be perfect.

I have opened an issue with GitHUB so hopefully the author can check if it’s a bug or not.

Thanks for your continued help and support !!

image

Hello everybody
This tool is exactly what I need. I just can’t get it to work (I have already successfully installed other Lovelace elements via Hacs)
For a short time it showed me what I wanted on the Windows PC, but not on my iPhone (emptying browser cash was also unsuccessful). Then I deleted everything and now (a few weeks later) I tried again.
Now I have the same effect on all devices (PC and I-Phone):
The whole row doesn’t show it to me. If I use two single classic rows, everything works out.

What am I doing wrong? Thanks for your support.

show_header_toggle: false
title: Kinderzimmer
entities:
  - entity: light.kinderzimmer_led_fl_esph
    attribute: white_value
    hide_state: true
    icon: 'mdi:wall-sconce-flat'
    name: LED-FL-Röhre
    type: 'custom:slider-entity-row'
  - type: conditional
    conditions:
      - entity: timer.auto_off_kinderzimmer_fl_roehre
        state_not: idle
    row:
      entity: timer.auto_off_kinderzimmer_fl_roehre
      icon: 'mdi:timer-outline'
      name: Timer FL-Röhre
  - type: divider
  - entity: light.kinderzimmer
    icon: 'mdi:vanity-light'
    name: Deckenleuchte
  - entity: light.kinderzimmer_01_esph
    hide_state: true
    icon: ' '
    name: ' -  Fenster'
    style: |
      :host {
        top: 30px;
      }
    type: 'custom:slider-entity-row'
  - entity: light.kinderzimmer_02_esph
    hide_state: true
    icon: ' '
    name: ' -  Mitte'
    type: 'custom:slider-entity-row'
  - entity: light.kinderzimmer_03_esph
    hide_state: true
    icon: ' '
    name: ' -  Tür'
    type: 'custom:slider-entity-row'
  - type: divider
  - entity: variable.dimming_kinderzimmer
    icon: 'mdi:weather-night'
    name: Dimmen
    extend_paper_buttons_row:
      buttons:
        - entity: script.nightdimming_start
          icon: 'mdi:play'
          name: false
          style:
            button:
              margin-right: 4px
        - entity: script.nightdimming_off
          icon: 'mdi:stop'
          name: false
          style:
            button:
              margin-right: 4px
        - entity: script.nightdimming_restart
          icon: 'mdi:restart'
          name: false
          style:
            button:
              margin-right: 6px
  - type: divider
  - entity: switch.hassio_power_tuya
    type: 'custom:multiple-entity-row'
    name: TEST multiple-entity-row
    entities:
      - entity: sensor.aqara_temparatursensor_kinderzimmer_luftfeuchtigkeit_c
        name: test
  - entity: switch.hassio_power_tuya
    icon: 'mdi:water'
    name: Luftbefeuchter
  - entity: sensor.aqara_temparatursensor_kinderzimmer_luftfeuchtigkeit_c
    name: Luftfeuchtigkeit
  - type: divider
  - entity: binary_sensor.aqara_kontakt_kids_fenster_r_c
    name: Fenster rechts
    toggle: false
    state_color: false
  - entity: binary_sensor.aqara_kontakt_kids_fenster_l_c
    name: Fenster links
    toggle: false
    state_color: false
type: entities

Edit: now it works on the PC, after waiting a few more hours (without having changed anything). But same problem on the iPhone. Other Lovelace HACS plugins work without any problems.

What’s the problem?
mrow_nachtrag

I love this card for my main (large screen) dashboard, and have been trying to adapt to tablet/mobile view. Is there any way to have just a row of toggles, with no icon and label on the left side - so more toggles will fit?
toggles

Row one - 4 columns
Row two - 5 columns
Row three - 6 columns
Row four - 6 columns (blank name, blank icon)
Row five - 7 columns (blank name, blank icon)
Row six - 7 columns (blank name, removed icon)

But removing the main icon may not help - depends on “3 or 4 columns of cards are displayed”.

image

type: entities
entities:
  - type: 'custom:multiple-entity-row'
    entity: sun.sun
    entities:
      - entity: sun.sun
        styles:
          width: 50px
      - entity: sun.sun
        name: false
        icon: true
        styles:
          width: 30px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
    name: ''
    show_state: true
    styles:
      width: 50px
  - type: 'custom:multiple-entity-row'
    entity: sun.sun
    entities:
      - entity: sun.sun
        styles:
          width: 50px
      - entity: sun.sun
        name: false
        icon: true
        styles:
          width: 30px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
    name: ''
    show_state: true
    styles:
      width: 50px
  - type: 'custom:multiple-entity-row'
    entity: sun.sun
    entities:
      - entity: sun.sun
        styles:
          width: 50px
      - entity: sun.sun
        name: false
        icon: true
        styles:
          width: 30px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
    name: ''
    show_state: true
    styles:
      width: 50px
  - type: 'custom:multiple-entity-row'
    entity: sun.sun
    entities:
      - entity: sun.sun
        styles:
          width: 50px
      - entity: sun.sun
        name: false
        icon: true
        styles:
          width: 30px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
    name: ' '
    icon: 'mdi:blank'
    show_state: true
    styles:
      width: 50px
  - type: 'custom:multiple-entity-row'
    entity: sun.sun
    entities:
      - entity: sun.sun
        styles:
          width: 50px
      - entity: sun.sun
        name: false
        icon: true
        styles:
          width: 30px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
    name: ' '
    icon: 'mdi:blank'
    show_state: true
    styles:
      width: 50px
  - type: 'custom:multiple-entity-row'
    entity: sun.sun
    style:
      hui-generic-entity-row:
        $: |
          state-badge {
            display: none;
          }
    entities:
      - entity: sun.sun
        styles:
          width: 50px
      - entity: sun.sun
        name: false
        icon: true
        styles:
          width: 30px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
      - entity: sun.sun
        toggle: true
        styles:
          width: 50px
    name: ' '
    icon: 'mdi:blank'
    show_state: true
    styles:
      width: 50px
2 Likes

Thanks for posting the examples, very helpful. Still having issues on mobile - it cuts off anything over 4 columns. So in this example, I can see Closet, Bath, Bedroom, and Motion - but the right two entities (Fan and All) get cut off.

type: entities
entities:
  - type: 'custom:multiple-entity-row'
    entity: light.master_suite_lights
    state_header: All
    toggle: true
    style:
      width: 50px
    entities:
      - entity: input_boolean.master_suite_pirs
        name: Motion
        toggle: true
        styles:
          width: 50px
      - entity: light.bedroom_lights
        name: Bedroom
        toggle: true
        styles:
          width: 50px
      - entity: light.master_bath
        name: Bath
        toggle: true
        styles:
          width: 50px
      - entity: light.master_closet
        name: Closet
        toggle: true
        styles:
          width: 50px
      - entity: light.bath_fan
        name: Fan
        toggle: true
        styles:
          width: 50px
    name: ' '
    icon: 'mdi:blank'
    show_state: true
    styles:
      width: 50px

Separate issue, but are state icons work here? I tried the below, but no change

        state:
          - value: 'on'
            color: green
            icon: 'mdi:motion-sensor'
          - value: 'off'
            color: red
            icon: 'mdi:motion-sensor-off'
        tap_action:
          action: toggle

Do not work.
Use another options.

Yo may use a smaller font.

1 Like