- Platform information:
- Hardware: x64/1GB Ram/32GB
- OS: Ubuntu 16.04
- Java Runtime Environment: OpenJDK 64-Bit Server VM (build 25.162-b12, mixed mode)
- openHAB version: openhab2 2.2.0-1
- Issue of the topic:
I just moved a bunch of rules to a new openhab instance and some of the rules are not working right. They worked fine on the old instance so i’m assuming there was a change to the run time. I can’t figure out where the problem is however. The old instance was openhab2-offline 2.0.0~20170106124335.
On startup or if I touch the rule file everything works fine but after a little while I start seeing the error below in the logs and the rule stops working.
2018-04-25 22:25:00.012 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule 'Periodically check Kitchen Active Presence': null
I’ve checked all items references in the rule and none of them has a null value so I’m lost to where the problem is.
- Please post configurations (if applicable):
rule "Periodically check Kitchen Active Presence" when System started or Time cron "0 */5 * * * ?" then logDebug("Kitchen", "Presence Check - Starting") if(KitchenPresenceOverride.state !== ON){ logDebug("Kitchen", "Presence Check - Room Override OFF") if(!KitchenPresenceSwitch.state.toString.equals("Inactive") || !KitchenPresenceSwitch.state.toString.equals("Standby")){ logDebug("Kitchen", "Presence Check - Room Active") logDebug("Kitchen", "Presence Check - Checking Room Sensors") if(KitchenPresenceGroup.members.filter(s | s.state == ON).size == 0) { logDebug("Kitchen", "Presence Check - Room Sensors OFF - Checking Persistence") if(KitchenPresenceGroup.members.filter(s | s.changedSince(now.minusMinutes((KitchenPresenceTimer.state as DecimalType).intValue))).size == 0){ logDebug("Kitchen", "Presence Check - Room Sensors INACTIVE") logDebug("Kitchen", "Presence Check - Room set to INACTIVE") sendCommand(KitchenPresenceSwitch, ("Inactive")) } } } } end
Can someone please point me in the right direction?