If I understand it correctly, persistence strategies are additional. So, if I assign an item to several persistence strategy groups, the item will be persisted according to the combined group-based persistence strategies. For instance:
everyMinute : "0 * * * * ?"
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
// if no strategy is specified for an Item entry below, the default list will be used;
// don't define a default strategy if you don't want persistence by default.
// default = everyChange
// Persist group members: use asterisk after group name!
gPersistEveryChange* : strategy = everyChange
gPersistEveryUpdate* : strategy = everyUpdate
gPersistRestoreOnStartup* : strategy = restoreOnStartup
gPersistEveryDay* : strategy = everyDay
If I define
myItem to belong to
gPersistEveryChange as well as to
gPersistRestoreOnStartup, then the state of
myItem will be persisted at every state change and will also be restored after openHAB restarts.
With the semantic model introduced in openHAB 3, an intermediate group item is created between the
Things and the
Items, to represent the
Does group-based persistence in OH3 imply that group-based persistence must be implemented at
Item level, or can it also be inferred at
Equipment level? The former requires more configuration as every single item must be assigned to one or more persistence strategy groups. In the latter case, all items relating to the
Equipment would inherit the persistence strategy…