Problem with Persistence

Hello, i have 2 Items which are not connected to any Thing. So these items lose their state after an restart.
Now i added a persistence to it, but at least one of them is still losing its state.

RRD4j Persistence Add-On is installed
Settings β†’ Persistence β†’ RRD4j is checked


Number Timer_Bewegungsmelder_Flur "Abschaltzeit Bewegungsmelder Flur [%ds]"
String Tageszeit "Tageszeit [%s]" <sun>


Strategies {
    default = everyChange
Items {
    Timer_Bewegungsmelder_Flur : strategy = everyChange, restoreOnStartup
    Tageszeit : strategy = everyChange, restoreOnStartup

Timer_Bewegungsmelder_Flur stores the value correctly.
Tageszeit does not.

What did i do wrong?

You know this from the RRD4J peristence documentation page ?

NOTE: rrd4j is for storing numerical data only. It cannot store complex data types. The supported item types are therefore only Switch (internally mapped to 0/1), Dimmer, Number, Contact (internally mapped to 0/1), Rollershutter and Color (only brightness component stored)

To store strings e.g. use influxdb.

If all that’s required is restoreOnStartup, I’d suggest MapDB instead. It just saves the most recent state of any item, regardless of type.

1 Like

Thanks you! Now it works.

Can you answer me one last question?

This should work the same, like my code before, right?

Strategies {
    default = everyChange, restoreOnStartup
Items {

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.