Hi, everyone.
Iām having issues after migrating to OH 4.2 but since no one else is complaining, I guess itās a local issue. There were no changes to the rules working under 4.1.3.
I migrated yesterday to 4.2 stable and all my rules stopped working.
I had previously installed the add-on manually by placing the jar in /usr/share/openhab/addons/, so I deleted it and installed it via the Add-On Store on the MainUI. Yet the rules are not triggered.
After installing the add-on, the following output is printed to the console:
22:07:56.944 [INFO ] [ion.jrule.internal.engine.JRuleEngine] - [JRuleEngine] Initializing Java Rule Engine with Separate Thread Executors min: 2 max: 10
22:08:02.155 [INFO ] [utomation.jrule.internal.JRuleFactory] - [JRuleFactory] Initializing Java Rules Engine v4.0.0.202404081933
22:08:02.157 [INFO ] [n.jrule.internal.handler.JRuleHandler] - [JRuleHandler] Initializing Start Initializing JRule Automation
22:08:02.159 [INFO ] [n.jrule.internal.handler.JRuleHandler] - [JRuleHandler] Initializing JRule writing external Jars: /etc/openhab/automation/jrule/jar
22:08:02.163 [INFO ] [e.internal.compiler.JRuleJarExtractor] - [JRuleJar] Extracting jar: /etc/openhab/automation/jrule/jar/jrule.jar to: /etc/openhab/automation/jrule/jar/jrule.jar
22:08:02.184 [INFO ] [e.internal.compiler.JRuleJarExtractor] - [JRuleJar] Extracting jar: /etc/openhab/automation/jrule/jar/openhab-core.jar to: /etc/openhab/automation/jrule/jar/openhab-core.jar
22:08:02.714 [INFO ] [n.jrule.internal.handler.JRuleHandler] - [JRuleHandler] Compiling generated sources
22:08:06.960 [INFO ] [n.jrule.internal.handler.JRuleHandler] - [JRuleHandler] Creating jrule-generated.jar
22:08:07.534 [INFO ] [n.jrule.internal.handler.JRuleHandler] - [JRuleHandler] Compiling rules
22:08:07.539 [WARN ] [jrule.internal.compiler.JRuleCompiler] - [JRuleCompiler] Found no java rules to compile and use in folder /etc/openhab/automation/jrule/rules/org/openhab/automation/jrule/rules/user/
22:08:07.557 [INFO ] [jrule.internal.compiler.JRuleCompiler] - [JRuleCompiler] Number of classes to load in to memory: 74 folder: /etc/openhab/automation/jrule/gen
22:08:07.645 [INFO ] [n.jrule.internal.handler.JRuleHandler] - Instantiated JRuleItems class
22:08:07.649 [INFO ] [n.jrule.internal.handler.JRuleHandler] - Instantiated JRuleThings class
Yet nothing is mentioned about the precompiled jar under /etc/openhab/automation/jrule/rules-jar/.
I deleted the jar and copied it again but nothing was reported in the console as before (e.g., number of rules, etc.).
Changing the logging level to DEBUG showed some event updates, but nothing related to the precompiled jar:
22:09:48.467 [DEBUG] [.internal.events.JRuleEventSubscriber] - [+JRuleSubscriber+] Received event 'ItemStateEvent' with topic 'openhab/items/systeminfo_computer_openHABianPi_memory_availablePercent/state' and payload '{"type":"Decimal","value":"46.9"}'
22:09:48.469 [DEBUG] [ion.jrule.internal.engine.JRuleEngine] - [+JRuleEngine+] watching for item: 'systeminfo_computer_openHABianPi_memory_availablePercent'? -> false
22:09:48.469 [DEBUG] [.internal.events.JRuleEventSubscriber] - [+JRuleSubscriber+] Received event 'ItemStateEvent' with topic 'openhab/items/systeminfo_computer_openHABianPi_sensor_CPUtemp/state' and payload '{"type":"Decimal","value":"78.4"}'
22:09:48.470 [DEBUG] [ion.jrule.internal.engine.JRuleEngine] - [+JRuleEngine+] watching for item: 'systeminfo_computer_openHABianPi_sensor_CPUtemp'? -> false
22:09:48.471 [DEBUG] [.internal.events.JRuleEventSubscriber] - [+JRuleSubscriber+] Received event 'ItemStateChangedEvent' with topic 'openhab/items/systeminfo_computer_openHABianPi_sensor_CPUtemp/statechanged' and payload '{"type":"Decimal","value":"78.4","oldType":"Decimal","oldValue":"76"}'
22:09:48.472 [DEBUG] [ion.jrule.internal.engine.JRuleEngine] - [+JRuleEngine+] watching for item: 'systeminfo_computer_openHABianPi_sensor_CPUtemp'? -> false
22:09:48.494 [DEBUG] [.internal.events.JRuleEventSubscriber] - [+JRuleSubscriber+] Received event 'ItemStateEvent' with topic 'openhab/items/systeminfo_computer_openHABianPi_storage_availablePercent/state' and payload '{"type":"Decimal","value":"77.3"}'
22:09:48.495 [DEBUG] [ion.jrule.internal.engine.JRuleEngine] - [+JRuleEngine+] watching for item: 'systeminfo_computer_openHABianPi_storage_availablePercent'? -> false
22:09:49.496 [DEBUG] [.internal.events.JRuleEventSubscriber] - [+JRuleSubscriber+] Received event 'ItemStateEvent' with topic 'openhab/items/systeminfo_computer_openHABianPi_memory_availablePercent/state' and payload '{"type":"Decimal","value":"46.9"}'
I had to restart the server for a different reason, but nothing changed.
I donāt think the JRule version (v4.0.0.202404081933) is the problem because it also worked under 4.1.3.
Any suggestions?