Group value not updated via script

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

I don’t think you can post meaningful values to a Group. It takes its value from its member Items.

thank you for a reply,
a group can contain any elements: humidity, temperature sensors, etc. but I want to see only one of this.
my question is: how I can update group value or according to your answer how I can setup what group should show?

thanks!

Opps!

https://community.openhab.org/t/cant-do-how-to-get-an-items-text-label-programmatically-within-rule/4135/7

:open_mouth:

thank you.