bar-card icon indicating copy to clipboard operation
bar-card copied to clipboard

[Feature Request] Dynamic colors

Open Imperial-Guard opened this issue 5 years ago • 2 comments

Currently colors are set static as a string is there a possibility to make those dynamic via for e.g. a input_number or like the flower-card via data.js

Imperial-Guard avatar Nov 21 '20 10:11 Imperial-Guard

I'm too looking for flower-card like temperature & humidity bar or meter card. target value is a range instead of a single point value, the visual make it easier to see how close to or far from lower/upper bound of target (comfort) range

xuefer avatar Jan 02 '21 12:01 xuefer

Hi,

If you're looking for changing severity colors, this worked for me:

severity:
      - color: Red
        from: 0
        to: 20
      - color: Orange
        from: 21
        to: 50
      - color: "#ff00aa"
        from: 51
        to: 100

Putting the color between quotes (single: ' or double: ") is mandatory.

Cheers!

luixal avatar Aug 05 '22 18:08 luixal