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

Not working with (mushroom) entity cards #25

Open
ghost opened this issue Feb 25, 2023 · 2 comments
Open

Not working with (mushroom) entity cards #25

ghost opened this issue Feb 25, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 25, 2023

The problem

I can't seem to get this working with any single entity card, default lovelace or mushroom.

I'm trying to display a card that acts as a button for lights in the room.
Below the icon, I would like to show the room temperature, but whenever I try to add my temperature sensor as secondary I get this error: Key "secondary_info" is not expected or supported by the visual editor.

I've tried all secondary info objectThomas Lovén's templates or Jinja2 templates, but none seem to work.
When copy pasting an example from GitHub, it does work, so the integration seems to be installed and working correctly.

Is this intended to not work or am I missing something?

What version of Canary has the issue?

0.4.0

What version of Home Assistant are you running?

Home Assistant 2023.2.5

What version of the Frontend are you running?

Frontend-versie: 20230202.0 - latest

Example YAML snippet

type: entity
entity: light.living
secondary_info: "{{ states('sensor.luchtkwaliteits_monitor_temperature') }} °C"

type: custom:mushroom-entity-card
entity: light.living
layout: vertical
secondary_info: "{{ states('sensor.luchtkwaliteits_monitor_temperature') }} °C"

Anything in the logs that might be useful for us?

No response

Additional information

No response

@jcwillox
Copy link
Owner

Unfortunately, the secondary_info option will only work on entity rows, for example, those inside an entities card. It's not a defined behaviour on cards so there's no way of telling where to put the secondary info, whereas, all entity rows that inherit from generic-entity-row have a slot for secondary info.

You may be able to get what you need done with the template card https://github.com/piitaya/lovelace-mushroom/blob/main/docs/cards/template.md

@ghost
Copy link
Author

ghost commented Feb 26, 2023

Unfortunately, the secondary_info option will only work on entity rows, for example, those inside an entities card. It's not a defined behaviour on cards so there's no way of telling where to put the secondary info, whereas, all entity rows that inherit from generic-entity-row have a slot for secondary info.

You may be able to get what you need done with the template card https://github.com/piitaya/lovelace-mushroom/blob/main/docs/cards/template.md

The answer was just under my nose all this time, I even created custom combined sensors to display the value of 2 sensors on one line.

Thanks so much!

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

1 participant