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

Display icons in text section #327

Open
QuentinBtd opened this issue Apr 15, 2022 · 4 comments · May be fixed by #1397
Open

Display icons in text section #327

QuentinBtd opened this issue Apr 15, 2022 · 4 comments · May be fixed by #1397
Labels
enhancement New feature or request

Comments

@QuentinBtd
Copy link

QuentinBtd commented Apr 15, 2022

Hi !
First, thanks for you great job ❤️

Is your feature request related to a problem? Please describe.
I would to display icon in text section, instead of displaying status

Describe the solution you'd like
Maybe we could use it to display icon:

{ icon:'mdi:sofa' }

Additional context
image

@QuentinBtd QuentinBtd added the enhancement New feature or request label Apr 15, 2022
@cgilis
Copy link

cgilis commented Apr 15, 2022

+1

@surskitt
Copy link

Can't you use emoji?

@QuentinBtd
Copy link
Author

Can't you use emoji?

I want to use icon in conditional template, to show the state of my door and windows, for example.

@thomasddn
Copy link

thomasddn commented Apr 7, 2023

In some cases it would be a lot easier to let us render an icon. For instance, to show the battery icon from sensor.my_phone_battery_level. Instead of writing a big if/else, we could just use state_attr('sensor.my_phone_battery_level', 'icon').

Edit: Please also allow to define the icon color.

@thybag thybag linked a pull request Mar 29, 2024 that will close this issue
9 tasks
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

Successfully merging a pull request may close this issue.

4 participants