[SOLVED] Mapdb restore state on startup, together with rrd4j?

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.


  1. installed mapdb add-on

  2. mapdb.persist file:

    Strategies {
    default = everyUpdate


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.

What are “Notify” and “Edimax”? Both should be groups, if not delete the “*”.

1 Like

Items with same ID beginning. Will create groups.

Do I need any rules to load on startup or is it done by default with mapdb and “restoreOnStartup” ?

groups were needed :no_mouth:

Thanks for help!