Coming from the old fashion way of defining items in files, I now want to move to the Symantic model. I’m struggling with the best way to apply persistence for the equipment.
I currently have items groups defined per device type, hue devices, mqtt devices, plugwise devices ext. Each group has specific persistence requirements and are so defined in the persistence file. These need to be kept in place for calculation purposes.
Now I want the graphs to work on the equipement. I was thinking to create a group for the graphing persistence purpose, but it seems I cant apply groups to equipment. It seems not logical to add each equipment (from what I understand is a group) to my persistence file. Whats the least afford/smart way to get the equipment graphs working?
With no file at all, you will persist all (suitable) Items.
Groups works the same as Groups always worked, naming with a * appended will persist all members. Except member Groups - they get the group treatment of persisting members.
In other words, it will cascade through a hierarchy of sub-group members, yes.
All you have to do is determine the Item name of your ‘top’ Group and find out if what you think are sub-Groups really are members. Semantics is just about tags.
I use a small trick to help manage this amongst other things.
[Do the following with the ‘Show non-semantic’ checkbox checked]
1). Create a main Settings group
2). Under this create sub groups for various settings (ie. one for Persistence).
3). Under this create Groups for the different Persistence settings you want to implement.
4). Add the items to the relevant settings group.
I’m in a slightly different position as I have the default RRD4J persistence, so all items can be ‘analyzed’. I then use the above to specify items for InfluxDB for which I use other tools (ie. Grafana) to produce dashboards.
The nice thing about this is I can now work predominantly from the ‘Model’.