chano
(Alejandro)
April 9, 2019, 3:57pm
1
Hi, I’ve recently upgrade my OPenhab to 2.4 and I’m having trouble with persistence.
I’ve reduce it to the very basics, I’ve re-installed mapdb and placed a very simple strategy file:
Strategies
{
default = everyChange
}
Items
{
* : strategy = everyChange, restoreOnStartup
}
If I go to the rest API and do a get /persistence I get a 200 Ok and this output
[
{
"id": "mapdb",
"label": "mapdb",
"type": "Queryable"
}
]
So seems like mapdb is installed an working. But if I do: /persistence/items?serviceId=mapdb
I get a 200 response, but an empty body like this
[]
There are no errors in openhab.log
Any clue of whats going on??
Thx!!!
sihui
(SiHui)
April 9, 2019, 4:48pm
2
My mapdb is working but I got the same output.
Did you try reading a specific item at get /persistence/items/{itemname}
, like:
{
"name": "hz_mode_party",
"datapoints": "1",
"data": [
{
"time": 1553924795067,
"state": "0"
}
]
}
chano
(Alejandro)
April 10, 2019, 10:02am
3
Thx for your answer @sihui
I didn’t try before, but it’s still not working (at least, not as I expected) . I’ve just tried /persistence/items/ItemSoLocationBattery (an item that I see in event log that has changed in the last 5 minutes to the numeric value of 86) and I get this
{
"name": "ItemSoLocationBattery",
"datapoints": "0",
"data": []
}
Seems like the mapdb recognizes the item (if I place an unexistent item, I get a 500 http state) but no data is colected.