milo
(M)
April 22, 2019, 3:55pm
1
I want to change the color of the value dynamically butit doesn’t work
here is my item
Number MQTT_number_weewx_outTemp_C "Aussentemperatur [%.1f °C]" <temperature> (group_climate) {channel="mqtt:topic:weather:outTemp_C"}
my sitemap
Text item=MQTT_number_weewx_outTemp_C label="Aussentemperatur [%.1f °C]" valuecolor=[>=25="red",<=20="green",<=15="blue"]
what’s wrong???
opus
(Jürgen Baginski)
April 22, 2019, 6:02pm
2
What is not working?
From the look on your code I guess you wil never see a blue value ( because values below 15 are also below 20, so they are shown in green).
milo
(M)
April 22, 2019, 6:27pm
3
It is Always black… @opus
opus
(Jürgen Baginski)
April 24, 2019, 5:50am
4
Sorry, other then the above I don’t see anything wrong.
Can’t test ATM, on the road via bicycle.
opus
(Jürgen Baginski)
May 2, 2019, 5:47am
6
For others reading your post it would be of interest how you did solve the problem.
milo
(M)
May 2, 2019, 5:50am
7
Text item=MQTT_number_weewx_outTemp_C label="Aussentemperatur [%.1f °C]" valuecolor=[Last_Update=="Uninitialized"="gray",>=25="orange", >=15="green", 0="white", <15="blue"]