String Items gets Uninitialized every time the items are reloaded

I am using rrd4j binding.

Why are my string items always resetted when reloading items?

The rrd4j persistence service does not persist non-numerical data, and so cannot restore string items.

Please see the documentation.

http://docs.openhab.org/addons/persistence/rrd4j/readme.html

1 Like

Is it possible to transfer the saved data to a different persistence?

You can use MapDB, and that works for restore on startup:

Strategies {
    everyMinute : "0 * * * * ?"
	
	default = everyChange
}

Items {
    // persist all items on every change and restore them from the MapDB at startup
    * : strategy = everyChange, restoreOnStartup
}

MapDB works well if you are not interested in history over time. MySQL or JDBC services are examples of two that persist item states over time and can be queried (though maybe not the RawType state which can be a massive image, for example).