thingsboard icon indicating copy to clipboard operation
thingsboard copied to clipboard

Range Color Setting from entity attributes in Card Value Widgets

Open gcorthey opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. Many times it is necesary to format the Card Value Widgets according to some value thresholds (range). This is partially acomplished by the Range Color Setting already available (see picture below). image However, this requires case by case "hardcoding" of the range values, making it unuseful when many devices need to be deployed and, even more, when the range values change over time. The same applies to icon and label.

Describe the solution you'd like It would be great to be able to read from here parameters from the entity attributes, as it is already implemented for threshold lines in charts.

gcorthey avatar Jan 20 '24 11:01 gcorthey

Working on this item to be part of 3.6.3. You may also notice a "gradient" will be also available and work in a similar way. image

ashvayka avatar Jan 24 '24 14:01 ashvayka

Working on this item to be part of 3.6.3. You may also notice a "gradient" will be also available and work in a similar way. image

That's exactly what we need here. I downloaded the source code 3 days ago and I have no idea how to make such a modification. Do you have an estimate of when this feature will be ready?

bruno2077 avatar Jan 29 '24 15:01 bruno2077

Hello @AndriichnekoDm. Do you know when this will be ready? At least in the function field, if we can get entity attibutes, it will be enough. Similar to what is possible in entities table (Cell style function).

image

gcorthey avatar Mar 08 '24 10:03 gcorthey

Hello @ashvayka, I can't see this feature in TB PE 3.6.3. Is it included? Thanks

gcorthey avatar Mar 19 '24 17:03 gcorthey