The bottom line is: when using this URL:
http://openhab:8080/analyzer/?items=ITEM&chartType=&coordSystem=
and replacing ITEM
with an item or group, a chart should be rendered with a time series of the past values of the ITEM
.
It works as expected (I expect…) for regular items, but for the groups in the rrd4j.persist
file it doesn’t.
The rrd4j.persist
file is:
Strategies {
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
everyMinute : "0 * * * * ?"
default = everyMinute
}
Items {
* : strategy = everyMinute, everyChange, restoreOnStartup
sens_grp_temp_int : strategy = everyMinute, everyChange, restoreOnStartup
sens_grp_temp_ext : strategy = everyMinute, everyChange, restoreOnStartup
}
The groups I want to persist are sens_grp_temp_int
and sens_grp_temp_ext
.
And rrd4j
is selected as default on the UI:
I tryed out the REST API to inspect the persistence, and these are my findings:
1. Get the persistence list
http://openhab:8080/rest/persistence
response:
[
{
"id": "rrd4j",
"label": "RRD4j",
"type": "Queryable"
}
]
2. Get the persisted items (default persistence service)
http://openhab:8080/rest/persistence/items
response:
[]
3. Get the persisted items (default persistence service)
http://openhab:8080/rest/persistence/items?serviceId=rrd4j
response:
[]
4. Get the persisted values from group (default persistence service)
http://openhab:8080/rest/persistence/items/sens_grp_temp_ext
response:
{
"name": "sens_grp_temp_ext",
"datapoints": "1389",
"data": [
{
"time": 1642908360000,
"state": "9.03"
},
{
"time": 1642908420000,
"state": "9.0"
},
{
"time": 1642908480000,
"state": "9.03"
},
{
"time": 1642908540000,
"state": "9.03"
},
...
]
}
From the above, responses 2, 3 and 4 were not what I was expecting… For 2 and 3, I was expecting to get a list of all the items that are persisted (all the items, plus 2 groups). Response 4 proves data is being stored for the group, but for some reason is not rendered by the UI.