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

Show friendly name instead of attribute in info_entities #190

Open
hugalafutro opened this issue Mar 13, 2023 · 6 comments
Open

Show friendly name instead of attribute in info_entities #190

hugalafutro opened this issue Mar 13, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@hugalafutro
Copy link

Is your feature request related to a problem? Please describe.
I have a sensor with possible attribute values of dry, very_comfortable, comfortable, ok_but_humid, somewhat_uncomfortable, quite_uncomfortable, extremely_uncomfortable, severely_high, which is what is displayed in the info_entities area of room card. Instead I would like to display the more human readable friendly names without the underscores.

Have you tried if it is already a feature? Have you checked the wiki?
yes

Describe the solution you'd like
option to make show_state to show friendly name

Describe alternatives you've considered
n/a

Additional context
currently the attribute is displayed (highlighted in purple) I would like to display the friendly name (highlighted in green)
image

@hugalafutro hugalafutro added the enhancement New feature or request label Mar 13, 2023
@marcokreeft87
Copy link
Owner

friendly_name is an attribute so if you pass it like this

info_entities
  - entity: sensor.example
    attribute: friendly_name

That should give the result you want.

Could you please try this?

@hugalafutro
Copy link
Author

Hi,
I'm not sure if I use correct terms for what I want to achieve, using the snippet from your post instead of state I get the name of the sensor so I guess friendly_name is not what I was after
image

@marcokreeft87
Copy link
Owner

Ah you are right. Back to the drawing board

@marcokreeft87
Copy link
Owner

Which sensor is this? I currently don't have this so I cant play with it.

@hugalafutro
Copy link
Author

It's this hacs integration https://github.com/dolezsa/thermal_comfort

@marcokreeft87
Copy link
Owner

marcokreeft87 commented Mar 23, 2023

Cool integration! I think its not possible yet, but I will try to figure out on how to do it.

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

No branches or pull requests

2 participants