Operation with Number:Temperature on Main UI on OH3

Hi,
In the Main UI I would like to change the icon color based on temperature value.

I used for instance this rule:

color: =items.Lor_InTemp.state < 17 ? “blue”:“white”
Lor_InTemp is a Number:Temperature

and the color doesn t change based on the value unless I set Lor_InTemp as Number without unit

Is it a bug or just my fault?

Thanks for your Help
Lorenzo

That us because Temperature has a unit of measure attached… It will never be 17.
It can be 17 °C or 17 °F though

Try =items.Lor_InTemp.state.toInt() < 17 ? "blue" : "white"

I don’t know for sure if that will work but it’s worth a try.