I am trying to make the color of an oh-label-cell change based of the temperature value of an item.
I have two items; A target temperature and the current temperature. I tried something like below, but it didn’t work. Could the problem we related to the unit of the item (°C)?
has the right syntax as I just tried this out on my system.
I would recommend to open the developer side bar to try out the expression:
Developer Sidebar
(Shift+Alt+D)
Also check if the color you want to apply (in this case red / green) would work on the widget. Some of the color entries of widgets don’t accept color names.