what am I doing wrong? I am using latest docker 2.4 version.
rule "Rolladen etwas früher hoch"
when
Channel "astro:sun:local:civilDawn#event" triggered START or
Time cron "0 26 7 1/1 * ? *"
then
if (now.isAfter(Min_Rolladen_Open_Zeit)) {
logInfo("sonne.rules", "Now is after Min_Rolladen_Open_Zeit")
EG_Rolladen_Switch.sendCommand(OFF)
} else {
logInfo("sonne.rules", "Now is before Min_Rolladen_Open_Zeit --> keine Rolladen öffnen")
}
end
I get the following error in the logs:
2020-03-19 07:26:00.734 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule 'Rolladen etwas früher hoch': An error occurred during the script execution: Could not invoke method: org.joda.time.base.AbstractInstant.isAfter(org.joda.time.ReadableInstant) on instance: 2020-03-19T07:26:00.733+01:00
Hi there,
can someone tell me the mistake im making?
If i execute
// if two days are gone
val last_clean = new DateTime(dVac1_last_clean.state.toString)
if (now.minusDays(2).isAfter(last_clean)){
MYSTUFF WHICH IS TEMPORARILY COMMENTED OUT
}
DateTime dVac1_last_clean (dVac1)
I get
2021-12-05 15:26:40.332 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID ‘vacuum-3’ failed: An error occurred during the script execution: null in vacuum