rule "Xmas-Beleuchtung EIN"
when
Time cron "0 00 16 ? 12,1 1-5" // 16:00:00 Uhr Montag-Freitag, Dezember und Januar
then
if(now.getDayOfYear < 7 || now.getMonth = 12)
Swi_FritzBox.sendCommand(ON)
end
failed: class java.lang.Integer cannot be cast to class java.lang.Enum (java.lang.Integer and java.lang.Enum are in module java.base of loader 'bootstrap')
Copied from release notes
Rules now use Java Time API instead of Jodatime so some expressions need to be adapted:
getHourOfDay → getHour, getMinuteOfHour → getMinute, getMonthOfYear → getMonthValue
Some simple >and < comparisons may no longer work and you may need to use isAfter()/isBefore() instead.
openHAB 4.1.0 Release mit openHABian in einem Debian Bookworm (LXC) unter Proxmox 8.1.3