Unable to restore state for item

Thanks for the explanation.

But with this line

logInfo("test.rules", "Rollo_test zuvor " + Rollo_test.previousState(true, "rrd4j").state)

i’ve got still following error

[ERROR] [o.o.c.s.ScriptExecutionThread ] - Error during the execution of rule ‘Sonne Test’: rrd4j does not allow querys without a begin date, unless order is descending and a single value is requested

What does this mean ? I want to work with the previous State.