Sensor text and number value colored following its value

Hi,

It would be nice to have the possibility to change automatically the color of a text or a number following its value. Something similar to the ‘Gauge’ with the threshold coloration option but this time for a value whatever it is a number or a text. The color and the value should have to be specified for each case.

For example:

green for the value : “no risk”
yellow for the value : “low risk”
orange for the value “medium risk”
and so on

The color and the value would be both configurable.

thanks