Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stomko11 opened this issue Jan 8, 2025 · 1 comment

Comments

@stomko11
Copy link

stomko11 commented Jan 8, 2025

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

@ildar170975
Copy link

noticed that post recent HA core update, these values show "undefined".

I doubt that it worked before the update since you are trying to use a “battery” attribute of an entity which does not have it.

tried to modify secondary info section and removed the "battery" attribute, and then I need to change entity_id to entity

There is no such option “entity_id”, it is clearly said up in Docs that you must use “entity”.

Suggest to ask questions in Community first before reporting a “bug”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants