You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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]
icon
at all)icon_size: [value]
what's important - setting up the
icon
option would override thename
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
The text was updated successfully, but these errors were encountered: