Skip to content

Value for secondary_info from other entity shows as "undefined" post HA Core update to 2025.1.1 #352

@stomko11

Description

@stomko11

I used to use card to display multiple values, among others battery % which was taken from different entity than the main one.
I noticed that post recent HA core update, these values show "undefined". I tried to change config, but I don't seem to be able to refer value from another entity anymore?
Anyone has any clue what could be wrong here?

Example card:

type: custom:layout-card
layout_type: masonry
layout: {}
cards:
  - type: entities
    entities:
      - entity: sensor.bathroom_e6_sensor_temperature
        type: custom:multiple-entity-row
        name: Bathroom
        icon: mdi:shower-head
        styles:
          width: 50px
          text-align: center
        state_header: Currently
        secondary_info:
          entity_id: sensor.bathroom_e6_sensor_battery
          attribute: battery
          unit: "% Battery"
        entities:
          - entity: climate.bathroom
            attribute: hvac_action
            name: Heating
            styles:
              width: 30px
              text-align: center
          - entity: sensor.bathroom_e6_sensor_humidity
            name: Humidity
            styles:
              width: 50px
              text-align: center
          - entity: climate.bathroom
            attribute: temperature
            name: Set
            styles:
              width: 30px
              text-align: center

This is how it looks like:
image

And this is the entity that holds battery %:
image

I also tried to modify secondary info section and removed the "battery" attribute, and then I need to change entity_id to entity as I get error that either entity, attribute or icon needs to be specified, but still, value isn't returned, but it looks like this:

        secondary_info:
          entity: sensor.bathroom_e6_sensor_battery
          unit: "% Battery"

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions