Lovelace: Multiple entity row

Hello,
nevermind don’t know how to explain it. But if I want to control a media player instead of a switch, then I have to replace toggle with something else, but what? I’m really just experimenting with HA. I should be able to find more info somewhere on how best to start with this.

Not clear what you want. Give a picture (MS Paint etc) of a design you need.

Ok, I understand that. my english isnt great!!
What I mean: Is it possible if I turn off the switch (red) that the media also stops playing and that I put a switch where the black circle is that I can start the media and stop playing

You may add as many toggles as you like, just add appropriate actions for each toggle.
Or you may replace toggles by icons and consider them as buttons.

I have this card, where hide_if doesn’t do anything:

type: entities
entities:
  - entity: sun.sun
  - entity: sun.sun
    type: custom:multiple-entity-row
    name: Above
    hide_if: below_horizon
  - entity: sun.sun
    type: custom:multiple-entity-row
    name: Below
    hide_if: above_horizon

I’ve tried multiple variants, without effect:

  - entity: sun.sun
    type: custom:multiple-entity-row
    name: Below
    hide_if: 
      value: above_horizon

  - entity: sun.sun
    type: custom:multiple-entity-row
    name: Below
    hide_if: 
      value:
        - above_horizon

The README in the repo doesn’t provide any examples. Am I doing something wrong?

This card is for displaying a main entity and secondary entities (optional).
The “hide” options are for secondary entities.

According to the documents, the hide_if should work for both the main entity as well as the secondary.

See this link to the main entity documentation:

And this link to the secondary documentation:

Wrong, the 1st link is for secondary entities, the 2nd is for “secondary_info” for the main entity.

1 Like

OK. Well, that isn’t stated explictly, but I’ll take this for true. I’ll move on and use another way to filter entities. :slight_smile:

This is what I ended up with, cleanly:

type: entity-filter
entities:
  - entity: sun.sun
    name: Zon op
    state_filter:
      - below_horizon
    type: custom:multiple-entity-row
    attribute: next_rising
    format: relative
    icon: mdi:weather-sunset-up
  - entity: sun.sun
    name: Zon onder
    state_filter:
      - above_horizon
    type: custom:multiple-entity-row
    attribute: next_setting
    format: relative
    icon: mdi:weather-sunset-down

Did you ever found a solution for this? I have the same problem…

If I have more entities they will be on the right side and not seen… I would like to center all these entities. Is that possible?

My code:

entity: sensor.nordpool_kwh_se3_sek_3_095_0
icon: none
type: custom:multiple-entity-row
name: false
state_header: Spotpris
format: precision2
unit: sek/kWh
entities:
  - entity: sensor.pool_heater_power
    format: precision0
    name: Förbr/nu
    unit: watt
  - entity: sensor.daily_energy_peak
    format: precision2
    name: Förbr/idag
  - entity: sensor.monthly_energy_peak
    format: precision2
    name: Förbr/mån

Probably with some card-mod magic. @ Ildar_Gabdullin is your first go to expert for that :slight_smile: Probably there already is an example for that.

1 Like

For example:

type: entities
entities:
  - type: custom:multiple-entity-row
    entity: sun.sun
    name: ''
    entities: &ref_0
      - entity: sensor.memory_free
        name: free
      - entity: sensor.memory_use
        name: use
      - entity: sensor.memory_total
        name: total
  - type: custom:multiple-entity-row
    entity: sun.sun
    name: ''
    entities: *ref_0
    card_mod:
      style:
        hui-generic-entity-row $: |
          state-badge,
          .info {
            display: none;
          }
        .: |
          hui-generic-entity-row {
            justify-content: center;
          }
  - type: custom:multiple-entity-row
    entity: sun.sun
    name: ''
    entities: *ref_0
    card_mod:
      style:
        hui-generic-entity-row $: |
          state-badge,
          .info {
            display: none;
          }
        .: |
          hui-generic-entity-row {
            justify-content: center;
          }
          .entities-row .entity {
            margin-right: 12px !important;
            margin-left: 12px !important;
          }

image
Next tune it up by yourself…

3 Likes

Great, thanks! You should link that post in your collection (multiple-entity-row) so people will find it again easily.

Was done already )))
image

1 Like

Is it possible to have an input_select in a multiple-entity-row that behaves like it should? For example, a normal input_select in an entities card has this behavior (simply click and select from the menu):
image

But when I put it into a multiple-entity-row card, when I click on it, it brings up a popup menu here:
image
where I then I have to select the time and close out of it. A lot more clicks than the normal behavior for an input_select. Just curious if it’s possible, or if not, if there’s a way it could be added? Thanks

Create an issue on GitHub, ask the Dev to implement a support of input_select.
Otherwise think about using something like custom:stack-in-card.

Is it possible to hide the icon and the space of the icon but still display the name of the sensor? Your example from above from april this year does not work for me.
What I want is, on the left side the name (ex.: Livingroom), blank space and on the right side all the entities of i choose to add.

Post a picture from MS Paint or smth similar as a draft.

Which example exactly?

Thank you for your fast reply! This is a picture d05f8e9c8156a88b9a1fa1ad943a5e8e1ec5ac88

This reply from april 21 Lovelace: Multiple entity row - #129 by Ildar_Gabdullin (I don’t know how to link to a different reply inside a reply).

That example still valid: