Hi all, did not maintain my openhab installation for some time, as it was running fine for years . After finally updating from 2.x. to 4.3.7 it seems that my wallbox script for PV charging does not run properly. The log is getting filled with:
2025-10-04 06:06:53.997 [ERROR] [.handler.AbstractScriptModuleHandler] - Script execution of rule with UID ‘goe-1’ failed: ‘time’ is not a member of ‘java.time.ZonedDateTime’; line 33, column 27, length 52 in goe
if (lastBelow6A == 0) {
// store time when below 6A for 1st time
lastBelow6A = SE25K_Live_Export.previousState(true).timestamp.toEpochSecond
}
val secondsBelow6A = now.toEpochSecond - lastBelow6A