Rrd4j and mapdb persistence wont log group items in openhabian

im moving from a 1.8 install to run on the latest openhabian version and all is good except for persistence!

in my rrd4j.persist file i have:

// persistence strategies have a name and a definition and are referred to in the “Items” section
Strategies {
// for rrd charts, we need a cron strategy
everyMinute : “0 * * * * ?”
}

Items {
Chart_Weather* : strategy = everyMinute, restoreOnStartup
Temperature : strategy = everyMinute, restoreOnStartup
}

the ‘Temperature’ item is working fine and logging every minute (checked the debug log and file timestamp)

the issue is the groups - the just aren’t logging. nothing is displayed in the debug.
i’ve tried with and without the asterisk no difference.

this works fine in 1.8 - i can’t find anything telling me oh2 is different.

can anyone please help? thanks!

Please can you show the definition of item und group for Chart_Weather.
If you copied it from demo.items the name is Weather_Chart.

to try to troubleshoot i only added one item to the group:

Group Chart_Weather
Number Temperature “Temperature [%.2f °C]” (Chart_Weather) {weather=“locationId=home, type=temperature, property=current”}

This will save the item Temperatue 2 times.
What happens if you use only

Chart_Weather* : strategy = everyMinute, restoreOnStartup

thats the problem - its not!
its not logging for the group

i added the item ‘Temperature’ just to prove that it does actually work - i get this in the debug logs as expected:
14:07:00.018 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored ‘Temperature’ with state ‘21.00’ in rrd4j database

if i just have the group ‘Chart_Weather’ in the rrd4j.persist file then nothing gets written to the debug log and the database file does not get updated.

i get the exact same issue with mapdb - maybe this is a bug with this version of oh2?

Groups which shall be persisted have to be set to an item Type, so please define the Group as

Group:Number Chart_Weather

ok i tried changing the item file to:
Group:Number Chart_Weather

but still the same - nothing getting logged.

has the format on this changed between oh1 and oh2? i’ve not found any documentation to say about the change?

i read more on the group types - but i don’t understand how this is needed for persistance. for example what i was doing with mapdb was to create a standard group containing all my plug sockets and persist that. i wasn’t trying to do an OR,MAX,MIN functions etc on them.

My example works (2.2.0-SNAPSHOT Build #988)

Group Chart_Weather
//Number Temperature "Temperature [%.2f °C]" (Chart_Weather) {weather="locationId=home, type=temperature, property=current"}
Number Temperature1 "Outside Temperature [%.1f °C]" <temperature> (Chart_Weather)	{ channel="yahooweather:weather:berlin:temperature" }
Number Sun_Elevation1 "Sun Elevation" <sun> (Chart_Weather) { channel = "astro:sun:home:position#elevation" }Contact c1
Contact c2
Contact c3

Strategies {everyMinute : "0 * * * * ?"}
Items {
 Chart_Weather*, Temperature1, c1 : strategy = everyMinute, restoreOnStartup
 Chart_Weather*              , c2 : strategy = everyMinute, restoreOnStartup
                 Temperature1, c3 : strategy = everyMinute, restoreOnStartup
	}
/*
 only Chart_Weather*, Temperature1, c1 : strategy = everyMinute, restoreOnStartup
2017-08-01 18:59:00.022 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Sun_Elevation1' with state '19.14' in rrd4j database
2017-08-01 18:59:00.054 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Temperature1' with state '30' in rrd4j database
2017-08-01 18:59:00.069 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'c1' with state 'CLOSED' in rrd4j database (again)
2017-08-01 18:59:00.069 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'c1' with state '0' in rrd4j database

 only Chart_Weather*, c2 : strategy = everyMinute, restoreOnStartup
2017-08-01 18:55:00.006 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Sun_Elevation1' with state '19.75' in rrd4j database
2017-08-01 18:55:00.022 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Temperature1' with state '30' in rrd4j database
2017-08-01 18:55:00.053 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'c2' with state 'CLOSED' in rrd4j database (again)
2017-08-01 18:55:00.053 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'c2' with state '0' in rrd4j database

 only Temperature1, c3 : strategy = everyMinute, restoreOnStartup
2017-08-01 19:00:00.116 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Temperature1' with state '30' in rrd4j database
2017-08-01 19:00:00.272 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'c3' with state 'CLOSED' in rrd4j database (again)
2017-08-01 19:00:00.272 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'c3' with state '0' in rrd4j database

 all Instructions
2017-08-01 18:53:00.022 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Sun_Elevation1' with state '20.05' in rrd4j database
2017-08-01 18:53:00.053 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Temperature1' with state '30' in rrd4j database
2017-08-01 18:53:00.068 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'c1' with state 'CLOSED' in rrd4j database (again)
2017-08-01 18:53:00.084 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'c1' with state '0' in rrd4j database
2017-08-01 18:53:00.115 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'c2' with state 'CLOSED' in rrd4j database (again)
2017-08-01 18:53:00.115 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'c2' with state '0' in rrd4j database
2017-08-01 18:53:00.162 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'c3' with state 'CLOSED' in rrd4j database (again)
2017-08-01 18:53:00.162 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'c3' with state '0' in rrd4j database
2017-08-01 18:53:01.131 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Sun_Elevation1' with state '20.05' in rrd4j database
2017-08-01 18:53:01.178 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Temperature1' with state '30' in rrd4j database
*/

Check your quotation marks and change it from

“..."

to

"..."

Do you not use the SmartHome-Designer?

I get this result with you example without any changes

2017-08-01 21:17:28.678 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'rrd4j.persist' has errors, therefore ignoring it: [5,19]: mismatched input 'â' expecting RULE_STRING

after changing the quotation marks it works

2017-08-01 21:17:28.678 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'rrd4j.persist' has errors, therefore ignoring it: [5,19]: mismatched input 'â' expecting RULE_STRING

2017-08-01 21:22:27.334 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist'
2017-08-01 21:22:27.366 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'rrd4j.persist'
2017-08-01 21:23:00.022 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Temperature' with state '19' in rrd4j database (again)
2017-08-01 21:23:00.022 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Temperature' with state '20.6' in rrd4j database
2017-08-01 21:24:00.022 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Temperature' with state '20.60000000000000142108547152020037174224853515625' in rrd4j database (again)
2017-08-01 21:24:00.022 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Temperature' with state '20.6' in rrd4j database
1 Like