Unable to edit Required Expressions on Some Rules - Solution Found

I have a C7 Hub running 2.4.0.151 and have recently found that I am unable to edit "Required Expressions" on some of my rules (on others it still allows me to edit them). I have tried cloning a failing rule and tried to edit the Required Expression on the clone but this also does not offer the option of editing the expression as per the attached screenshot.

I have also tried rebooting the hub and rebuilding the database on reboot but this also does not fix the issue. I do not want restore from a backup as I don't know how long ago the issue was introduced and would possibly lose many other changes. Has anyone else had this bug/issue and if so did they manage to resolve this ?

Maybe try cloning the rule and see if you can edit the clone.

??

Seems like @user1738 has tried that already.

Are the rules you unable to edit 5.1 rules or older legacy rules?

If they are older then you may have to just rebuild them. I have one 5.0 rule that calls it a predicate rule but I can still edit it so that's weird.

If cloning won't fix it then rebuilding it is probably your only option.

Thanks for your help. I had another look at this today and have found the solution. I could edit other parts of the rule (Actions, Managed conditions etc but not the Required Expressions). What I noticed however after performing another clone trying to edit the rule was that at the bottom of the page was a button "Abort Action Editing" (as per this screenshot):

Hubitat must think that the rule was being edited elsewhere (or from a former browser session), even after a hub restore or clone to a new rule. Once I clicked on the "Abort Action Editing" button it allowed me to edit the "Required Expressions" and save my changes successfully. I have a hundred or so rules and have never seen (or noticed) that button before so I don't know if it's something they have introduced recently - I'm just glad to have found a solution !!

2 Likes