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

[Feature request] Using entity icon/custom icon instead of name #20

Open
pejotigrek opened this issue Jan 25, 2020 · 1 comment
Open
Labels
help wanted Extra attention is needed

Comments

@pejotigrek
Copy link

pejotigrek commented Jan 25, 2020

I'm preparing a circle-sensors packed vertical line in my lovelace UI and unfortunately I've noticed, that not every name is fitting into the circle. I tried to add emojis instead of names [especially when the name of the sensor is just too long], but having nice material design, single-color icons in whole interface, and next to it - few sometime strangely looking, multi-color emojis just doesn't look good ;)

unfortunately I'm not a programmer, so can't figure out how to extend your card code, so all I'm able to do is give an example configuration options ;)

now, we can specify optional name for the circle-sensor, it would be cool to have optional parameter something like:

  • icon: [value]
    • value is optional, when not set, default value is used
    • default value: false
    • possible values:
      • false (which is the same as not configuring the icon at all)
      • true (= use the icon from entity)
      • custom:icon (= from the icons available in the HomeAssistant, so it can be mdi:battery or even fas:heart if somebody has FontAwesomeIcons installed etc.)
  • icon_size: [value]
    • optional, with the default of 100% meaning "normal sized icon, just like default size given by HomeAssistant"
    • not telling that it's 100% needed, but could be nice to have an possibility to scale up/down the icon just to match different ideas/interfaces (for example: if the sensor is big, a 100% = default sized, icon can be too small)

what's important - setting up the icon option would override the name option, so there's no possibility to have them both displayed (for sake of limited space).

do you think it would be possible to do?

edit: wording

@knogler
Copy link

knogler commented Feb 26, 2020

that would be really awesome

@iantrich iantrich added the help wanted Extra attention is needed label Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants