circle-sensor-card icon indicating copy to clipboard operation
circle-sensor-card copied to clipboard

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

Open pejotigrek opened this issue 5 years ago • 1 comments

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

pejotigrek avatar Jan 25 '20 11:01 pejotigrek

that would be really awesome

knogler avatar Feb 26 '20 15:02 knogler