I got the following problem. I visualize a threshold of a heater. The problem is that the value isn`t shown in the way I want. The value that I receive from my home automation system is “1270 °C” and that’s how it is saved in its system. In my sitemap I want it to be shown as “27 °C” or “27.0 °C”. Is there a way to achieve this? Maybe by using rule-engine?
I don’t really understand the binding docs so I would use a proxy item:
Number Real_MeinZuhause_Temperaturregler "Solltemperatur Büro-Keller [%.1f °C]" <temperature>
And then a rule:
Rule "Process temp"
when
Item MeinZuhause_Temperaturregler_Item_Anzeige changed
then
var temp = MeinZuhause_Temperaturregler_Item_Anzeige.state as Number
temp = (temp - 1000) / 10
Real_MeinZuhause_Temperaturregler.postUpdate(temp)
end