Hi!
what’s wrong?
demo.sitemap
Frame {
Group item=gFF
Group item=gGF
}
my.items
Group:Number gFF “First Floor [%.1f °C]” (Status)
Group:Number gGF “Ground Floor [%.1f °C]” (Status)
Group:Number:AVG FF_Temperature (Status)
Group:Number:AVG GF_Temperature (Status)
[Skipped…]
my.rules
rule "Test"
when
System started or
Time cron "0 0/1 * * * ?"
then
logInfo("Debug", " ---> GF_Temperature " + " : " + GF_Temperature.state)
postUpdate(gGF, 12.34)
logInfo("Debug", " ---> FF_Temperature " + " : " + FF_Temperature.state)
postUpdate(gFF, 43.21)
end
log file
2017-02-25 08:44:32.352 [INFO ] [eclipse.smarthome.model.script.Debug] - —> GF_Temperature : 21.05
2017-02-25 08:44:32.402 [INFO ] [eclipse.smarthome.model.script.Debug] - —> FF_Temperature : 19.75
2017-02-25 08:45:00.036 [INFO ] [eclipse.smarthome.model.script.Debug] - —> GF_Temperature : 21.05
UI result:
after 1st refresh
First Floor - °C
2nd
First Floor - °C
third
First Floor 12.34 °C
next refresh
First Floor - °C
next refresh
First Floor - °C
next refresh
First Floor - °C
next refresh
First Floor - °C