openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

Problem with persistence configuration (group members handling)

Open Iture opened this issue 3 years ago • 4 comments

Hi According to documentation statement [group_name]* in *.persist file (in this case rrd4j, but it also desn't work for influxdb) states for all memebers of the group. However putting such statement causes openhab to persist randomly chosen items (and especially not the ones included in the group).

Openhab 3.0.1 stable, Openhabian, fresh install Content of the rr4js.persist file:

// Persistence strategies have a name and a definition and are referred to in the "Items" section
Strategies {
	everyMinute	: "0 * * * * ?"
	// If no strategy is specified for an item entry below, the default list will be used.
	default = everyMinute
}

/*
 * Each line in this section defines for which item(s) which strategy(ies) should be applied.
 * You can list single items, use "*" for all items or "groupitem*" for all members of a group
 * item (excl. the group item itself).
 */
Items {
	energy_current_watt : strategy = everyMinute, restoreOnStartup
	persistence_rrd4j* : strategy = everyMinute
}

Iture avatar Jan 31 '21 10:01 Iture

Content of the rr4js.persist file:

Confident you are editing the correct filename? In the correct folder?

Rossko57 avatar Feb 12 '21 00:02 Rossko57

Definitely. Currently I have kind of workaround - I generate this file programmatically, but stil it is the correct file.

Iture avatar Feb 12 '21 20:02 Iture

Are the items that are not persisted direct members of the group or members of a group that is a member of the persisted group or are they groups itself? If the latter, it is expected behavior, as only direct members are evaluated and only non-group members are persisted.

J-N-K avatar Apr 30 '22 17:04 J-N-K

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 29 '22 18:06 stale[bot]