Rules Not Working After Upgrading to OH2

I recently upgraded my system from OpenHab 1 (OH1) to OpenHab 2 (OH2), and I’ve encountered some issues with my rules not functioning as expected. Many of my previously reliable rules are now inconsistent, and I’m seeking some guidance or troubleshooting tips. For example, I have a simple rule that adjusts the position of my blinds when a specific switch is activated. Here’s the rule for reference:

java
rule “Adjust Blinds”
when
Item LivingRoom_Blinds_Switch changed
then
if (LivingRoom_Blinds_Switch.state == ON) {
sendCommand(LivingRoom_Blinds, 85)
postUpdate(LivingRoom_Blinds_Switch, OFF)
}
end

This rule worked flawlessly in OH1, but now in OH2, it only works intermittently. The logs indicate that the switch state changes are detected, but the blinds don’t always adjust accordingly. I’ve tried disabling rules one by one to isolate the problem, but the behavior remains inconsistent. The system runs smoothly otherwise, with minimal CPU usage, so it doesn’t seem to be a resource issue.

I’m curious if others have faced similar challenges during the upgrade process. Are there specific configurations or settings in OH2 that might be affecting rule execution? Any insights or suggestions would be greatly appreciated! Let’s collaborate to resolve this and ensure all our rules run smoothly in the new environment. Thanks in advance for your help!