I’ve read similar topic and I think I followed guidelines, but mapdb doesn’t seem to store data.
I’m using rrd4j persistence for some time now for charts. I’d like mapdb for restoring some defined items state on service restart.
so:
-
installed mapdb add-on
-
mapdb.persist file:
Strategies {
default = everyUpdate
}
and
Items {
// persist all items on every change and restore them from the db at startup
Notify* : strategy = everyChange, restoreOnStartup
Edimax* : strategy = everyChange, restoreOnStartup
}
So currently, when I restart OH this items are NULL, eventhough before restart I changed few times from ON <> OFF.
Is this enough? Just the addon and persist file. Do I need somehow specify in the system startup rule where to get the latest item state?
I tried like:
Notify.previousState(false, "mapdb")
In “System started” rule, but no data. With REST get persistence data for item I get nothing…
{
"name": "Notify",
"datapoints": "0",
"data": []
}
What did I miss? Thank you.