Chart of averages not working anymore after upgrading from 1.8 to 2.4

Even this problem seesm to be commonly happen to others, none of the presented solutions did work for me. With 1.8 I was able to have in a chart average values presented. After upgrading to 2.4 even with same logic average values are not appearing anymore. Other values are appearing without any problems.

My files:

persistence rrd4j:
gTemperatures*, TEMP* : strategy = everyChange, everyMinute

items:
Group:Number:AVG gTemperatures_act_floor “Temperatur Stockwerke Ø [%.1f °C]” (Temperature, gTemperatures_act_display) /* Mitglieder sind Variable TEMP_EG, TEMP_OG, TEMP_UG, s.u.) /
|Group:Number:AVG ||gTemperatures_act_EG_display|“Raum-Temperatur Ø EG (23) [%.1f °C]” | |(Temperature) /
, gTemperatures_act_floor) /|
|Group:Number:AVG ||gTemperatures_act_OG_display|“Raum-Temperatur Ø OG (21.5) [%.1f °C]” ||(Temperature) /
, gTemperatures_act_floor) /|
|Group:Number:AVG ||gTemperatures_act_UG_display|“Raum-Temperatur Ø UG (19) [%.1f °C]” | |(Temperature) /
, gTemperatures_act_floor) */|

sowie
Number TEMP_overall_inside “Temperatur Ø [%.1f °C]” (Temperature, gTemperatures_act_display )

Number TEMP_EG “Temperatur EG [%.1f °C]” (Temperature, gTemperatures_act_display, gTemperatures_act_floor, gTemperatures_act_EG_display)

Number TEMP_OG “Temperatur OG [%.1f °C]” (Temperature, gTemperatures_act_display, gTemperatures_act_floor, gTemperatures_act_OG_display)

Number TEMP_UG “Temperatur UG [%.1f °C]” (Temperature, gTemperatures_act_display, gTemperatures_act_floor, gTemperatures_act_UG_display)

rule:
rule “temp_proxie_update”

when

Time cron "0 */1 * * * ?"                                   /* alle 1 Minuten */

then

logInfo("temperatures", "rule: temp_proxie_update - start")

TEMP_EG.postUpdate (gTemperatures_act_EG_display.state)     // gTemperatures_act_fllor Durchschnitt Stockwerke

TEMP_OG.postUpdate (gTemperatures_act_OG_display.state) 

TEMP_UG.postUpdate (gTemperatures_act_UG_display.state)

TEMP_overall_inside.postUpdate  (gTemperatures_act_floor.state)

logInfo("temperatures", "rule: temp_proxie_update - end")

end

sitemap:
Switch item=Weather_Chart_Period label=“Ø Etagen” mappings=[0=“Stunde”, 1=“Tag”, 2=“Woche”, 3=“Monat”, 4=“Jahr”]

                Chart item=gTemperatures_act_display period=h refresh=1000 visibility=[Weather_Chart_Period==0, Weather_Chart_Period=="Uninitialized"]

                Chart item=gTemperatures_act_display period=D refresh=30000 visibility=[Weather_Chart_Period==1]

                Chart item=gTemperatures_act_display period=W refresh=30000 visibility=[Weather_Chart_Period==2]

                Chart item=gTemperatures_act_display period=M refresh=30000 visibility=[Weather_Chart_Period==3]

                Chart item=gTemperatures_act_display period=Y refresh=30000 visibility=[Weather_Chart_Period==4]

I tried a lot of things like …postUpdate… (…state as Decimal) or without state. I tried to assign real temperature values instead of an average but nothing happened.

I’m really sad because I tried the same way as for 1.8, a lot of comments told me that there should be no difference to 2.4.

Would be great if someone can support me.

Thanks in advance!

Thomas.

I don’t think that does what you think. It should -
Persist all members of a Group called gTemperatures
Persist all members of a Group called TEMP

Yor Items file has got a bit mangled in copy/paste, I think, but you don’t seem to have any groups by those names.
The * character is not a wildcard here.

I think for the sitemap that you have given, what you want is
persist

gTemperatures_act_display* : strategy = everyChange, everyMinute

but you don’t seem to have a Group by that name either, so add
items

Group  gTemperatures_act_display "average TEMP [%.1f °C]"

Hi,
yes you’re right I puzzled the code pieces. I’ve changed persist without success. I’ve now:

persist:

		gTemperatures_act_display*, TEMP* : strategy = everyChange, everyMinute

item:

Group:Number:AVG        gTemperatures_act_display		"Temperatur Stockwerke [%.1f °C]" 		    <temperature>	(Temperature)

Number	TEMP_overall_inside	"Temperatur Ø [%.1f °C]"		    <temperature>	(Temperature, gTemperatures_act_display )
Number  TEMP_EG				"Temperatur EG [%.1f °C]"			<temperature>	(Temperature, gTemperatures_act_display, gTemperatures_act_floor, gTemperatures_act_EG_display)
Number 	TEMP_OG				"Temperatur OG [%.1f °C]"			<temperature>	(Temperature, gTemperatures_act_display, gTemperatures_act_floor, gTemperatures_act_OG_display)
Number 	TEMP_UG				"Temperatur UG [%.1f °C]"			<temperature>	(Temperature, gTemperatures_act_display, gTemperatures_act_floor, gTemperatures_act_UG_display)


// Durchschnittstemperaturen des jeweiligen Stockwerks (benötigt für Regel Durchschnitte darzustellen temp_update
Group:Number:AVG 		gTemperatures_act_EG			"Temperatur EG (Soll: Ø23) [%.1f °C]" 	    <temperature>	(Temperature)       /*, gTemperatures_act_floor) */
Group:Number:AVG 		gTemperatures_act_OG			"Temperatur OG (Soll: Ø21.5) [%.1f °C]" 	<temperature>	(Temperature)       /*, gTemperatures_act_floor) */
Group:Number:AVG 		gTemperatures_act_UG			"Temperatur UG (Soll: Ø19) [%.1f °C]" 	    <temperature>	(Temperature)       /*, gTemperatures_act_floor) */

Temperature items are tagged with a group according to the floor.

Rule:

rule "temp_proxie_update"
when
    Time cron "0 */1 * * * ?"   						        /* alle 1 Minuten */
then
    logInfo("temperatures", "rule: temp_proxie_update - start")
	TEMP_EG.postUpdate (gTemperatures_act_EG_display.state)     // gTemperatures_act_fllor Durchschnitt Stockwerke
	TEMP_OG.postUpdate (gTemperatures_act_OG_display.state) 
	TEMP_UG.postUpdate (gTemperatures_act_UG_display.state)
	TEMP_overall_inside.postUpdate	(gTemperatures_act_floor.state)
    logInfo("temperatures", "rule: temp_proxie_update - end")
end

Sitemap

                // Diagramm mit Durchschnittswerte pro Stockwerk auf Ebene 1
				Frame {
                    Group item=gTemperatures_act_display
					Switch item=Weather_Chart_Period label="Ø Etagen" 	mappings=[0="Stunde", 1="Tag", 2="Woche", 3="Monat", 4="Jahr"]
					Chart item=gTemperatures_act_display period=h refresh=1000 visibility=[Weather_Chart_Period==0, Weather_Chart_Period=="Uninitialized"]
					Chart item=gTemperatures_act_display period=D refresh=30000 visibility=[Weather_Chart_Period==1]
					Chart item=gTemperatures_act_display period=W refresh=30000 visibility=[Weather_Chart_Period==2]
					Chart item=gTemperatures_act_display period=M refresh=30000 visibility=[Weather_Chart_Period==3]
					Chart item=gTemperatures_act_display period=Y refresh=30000 visibility=[Weather_Chart_Period==4]
				}

Values of the group gTemperatures_act_display are show correctly and existing. But they are not appearing on the chart.

persist file changes won’t take effect without a restart

You can use the REST API to see if reevant data is persisted; obviously no persisted data, no chart.

Its working!
The winning solution was to change the persist. You
re right with your hint regarding the *.
Thanks a lot for your endavour!

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.