hmmm…
I simplified again:
logInfo("default.rules", "Previous-State: " + Stromzahler_Zahlerstand.previousState.toString)
logInfo("default.rules", "Actual-State: " + Stromzahler_Zahlerstand.state.toString)
produces this:
2022-11-07 14:28:49.273 [INFO ] [nhab.core.model.script.default.rules] - Previous-State: 11/7/22, 2:28 PM: Stromzahler_Zahlerstand -> 30126.0
2022-11-07 14:28:49.276 [INFO ] [nhab.core.model.script.default.rules] - Actual-State: 30126.0
Seems the persistence runs…
But if I try to fetch the latest changed value (Stromzahler_Zahlerstand.previousState(true).state.toString)
logInfo("default.rules", "Previous-State: " + Stromzahler_Zahlerstand.previousState(true).state.toString)
I got there rrd4j error:
rrd4j does not allow querys without a begin date, unless order is descending and a single value is requested