After reactivating my openHAB installation (it was inactive during summer), I find that the rule execution throws an error for whenever I try to use “now”, as in “now.getHourofDay()”. I have fixed this in one instance by specifically calling it as “DateTime.now.getHourofDay()”, but I think that is just a workaround. Has anything changed, so that we cannot call “now” anymore?
The error is
Error during the execution of rule Masterjob: org.eclipse.smarthome.core.library.types.DecimalType and raises for example in lines like
if (now.getDayOfWeek() <= 5). To me it seems that the “now” object is NULL.
Can anyone help?