Lovelace: Multiple entity row

You know that hiding a when x and b when y and the other way round is a replacement?

1 Like

Correct, and I can hide a secondary entity based on ITS value!
I need to hide a secondary entity based on the value of the PRIMARY entity!

In my initial post it is: hide the setpoint when the climate mode is OFF!
I cannot find a way where hide_if supports that.

Then suggest learning about using “:after / before” in card-mod ….
Go to card mod thread - 1st post - link at the bottom.
In short: if some conditions are met - then hide the value and show the added “—“ in a pseudo class.
There is a ready example on the link above.

There is a ready example on the link above.
What link above are you talking about?
None of the links in the 1. post of card mod thread seem to go in my direction.

Wouldn’t it be cool to just share the link and/or the knowledge?
It’s nice to KNOW and then cryptic messages are ‘obvious’, but for people looking for answers it does not always work that way.

Thanks so much!

1 Like

What is cryptic here?
“Go to card mod thread - 1st post - link at the bottom.“
Instead of explaining what uncool is - please follow this link and find info about using “before / after”.

Do anyone here know if and how to combine this card with the template-entity-row? cant seem to figure it out, it doesnt help to change “default precision”, the card still displays entire value

See first entity

You cannot.

Why not using a “format” option?

type: entities
entities:
  - type: custom:multiple-entity-row
    entity: sun.sun
    entities:
      - entity: sensor.test_sensor_number
      - entity: sensor.test_sensor_number
        format: precision2

Ahh, I see there is an occurrence of PEBCAK and id10T error here, that solves my problem, should’ve read the documentation better… thanks a lot!

image

What is the best way to get the “ride name” more to the Left, and to make sure the dates are all in a row?

Is this a CSS thing, or adding horizontal stacks, or something different ?

  - entity: sensor.strava_1_0
    type: custom:multiple-entity-row
    name: Ride 2
    show_state: false
    entities:
      - attribute: title
        name: false
      - entity: sensor.strava_1_0
        name: false
        secondary_info: last-changed
        format: date
      - entity: sensor.strava_1_3
        name: false

Define widths. Check docs.

1 Like

HI, I am trying to make a clear(er) separation between sections and was hoping to format ‘section’ but the only thing I can find is adding a label which I donot like. Is there any option to add css to the type:section part, e.g. color or background color?

Can anybody help me in secondary_info?

              type: custom:multiple-entity-row # It's inside custom:auto-entities
              entity: this.entity_id  # This is the main entity
              show_entity_picture: false
              show_icon: false
              show_state: false
              secondary_info:
                entity: this.entity_id
                attribute: aggregated_stock
                name: ∑
                # unit: >
                #   { this.attribute.qu_id_stock }
              entities:
                - attribute: quick_consume_amount
                  name: CONSUME
                  tap_action:
                    action: call-service
                    confirmation:
                      text: Consume Product?
                    service: script.grocy_consume_product_quick
                    service_data:
                      entity_id: this.entity_id

In secondary_info.unit, is there proper template to gain value from entity? It’s in domain.entity_id.attribute.qu_id_stock.

1 Like

m-e-r does not support templates

Oh, thanks. I thought it supports. Might find other way.

Is there any way to show sensor icon WITH sensor data ? As soon as i put “icon: true” or “icon: something” - i can see only icon, instead of icon + sensor data.

type: entities
title: Climate
entities:
  - entity: sensor.ewelink_th01_battery_1floor
    name: 1-st floor
    type: custom:multiple-entity-row
    entities:
      - entity: sensor.ewelink_th01_temperature_1floor
        name: false
      - entity: sensor.ewelink_th01_humidity_1floor
        name: false

image

Just place icon & state nearby:

image

type: entities
entities:
      - type: custom:multiple-entity-row
        entity: sun.sun
        entities:
          - entity: zone.home
          - entity: zone.home
            icon: true
            name: false
        show_state: false

      - type: custom:multiple-entity-row
        entity: sun.sun
        entities:
          - entity: zone.home
            icon: true
            name: false
          - entity: zone.home
        show_state: false

      - type: custom:multiple-entity-row
        entity: sun.sun
        entities:
          - entity: zone.home
            icon: true
            name: false
          - entity: zone.home
            name: false
        show_state: false

      - type: custom:multiple-entity-row
        entity: sun.sun
        entities:
          - entity: zone.home
            name: false
          - entity: zone.home
            icon: true
            name: false
        show_state: false
1 Like

Thanks!
So the only way is just duplicate, right ?

Is it possible to show only name of sensor on the left without icon and this big indent? How to move it before battery section ?

type: entities
entities:
  - type: custom:multiple-entity-row
    entity: sensor.ewelink_th01_battery_1floor
    entities:
      - entity: sensor.ewelink_th01_temperature_1floor
        name: false
        icon: true
      - entity: sensor.ewelink_th01_temperature_1floor
        name: false
      - entity: sensor.ewelink_th01_humidity_1floor
        name: false
        icon: true
      - entity: sensor.ewelink_th01_humidity_1floor
        name: false
      - entity: sensor.ewelink_th01_battery_1floor_1floor
        name: false
        icon: true
      - entity: sensor.ewelink_th01_battery_1floor_1floor
        name: false

image

Yes.

Use card-mod for customization.

Is there a way to make the toggles to buttons?
image

entity: button.fritz_box_7490_reboot
name: Reboot
show_state: true
toggle: true
state_header: Fritzbox
icon: mdi:restart
type: custom:multiple-entity-row
entities:
  - entity: button.fritz_box_7490_reconnect
    name: DSL
    toggle: true

You mean more than just toggle: false in your yaml instead of true ? Or did I miss the question?