benct / lovelace-multiple-entity-row

Show multiple entity states and attributes on entity rows in Home Assistant's Lovelace UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Card broken in 2023.4

w1tw0lf opened this issue · comments

Not displaying secondary info

image

You provided ZERO info regarding your case - no code, no info about real values for the displayed data.

I do not see any NEW issues with secinfo:

type: entities
entities:
  - type: custom:multiple-entity-row
    entity: sun.sun
    entities:
      - entity: sun.sun
        attribute: elevation
        name: elev.
    show_state: true
    secondary_info: last-changed
  - type: custom:multiple-entity-row
    entity: sun.sun
    entities:
      - entity: sun.sun
    show_state: false
    secondary_info:
      entity: zone.home

image

There are other old issues, they are documented on Github.

Here is the code incase it helps

    type: horizontal-stack
    cards:
      - type: entities
        entities:
          - type: custom:multiple-entity-row
            entity: sensor.unifi_48port
            name: 48 Port Switch
            show_entity_picture: true
            show_state: false
            secondary_info:
              attribute: Uptime
            entities:
              - entity: sensor.unifi_48port_cpu
                name: CPU
              - entity: sensor.unifi_48port_ram
                name: RAM
              - icon: mdi:restart
                tap_action:
                  action: call-service
                  confirmation: true
                  service: shell_command.reboot_unifi_48port
          - type: custom:multiple-entity-row
            entity: sensor.unifi_48port
            icon: mdi:devices
            name: ' '
            show_state: false
            secondary_info:
              entity: sensor.unifi_48port
              name: ' '
            entities:
              - entity: sensor.unifi_48port_users
                name: Users
              - entity: sensor.unifi_48port_guests
                name: Guests

Was working 100% up untill update to 2023.4
image

PS: screenshot is from whe the switch was still a 24 port, but code is the same.

secondary_info:
attribute: Uptime

Are you sure that the attribute's name is "Uptime"? How is it displayed in Dev tools -> State?

100% correct, it worked perfectly before updating

image

I double checked everything before reporting the issue, even shows correctly in templates.

Check your setup with this simple code:
image

I even set "15d ..." value to the "elevation" attribute, it still shows correctly:
image
image

Thank you for your willingness to assist, done all of these as per your suggestion already as mentioned.

Will do so more digging this side.

Issue seems to be with the changes in templating. Used another card and seems to give the same issue.