I upgraded from OH3 3.0.x to the latest snapshot (3.2.0-SNAPSHOT (#2458)) and now my historicState rules no longer work for all Items:
rule "vTest historic data" when Item vTest changed then logInfo("vTest", "Value:"+vTest.historicState(now.minusSeconds(5)).state) end
Returns the following error:
2021-07-28 07:48:09.342 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID ‘Development_and_Testing-1’ failed: error parsing query: found :, expected FROM at line 1, char 15 in Development_and_Testing
If i change the item from vTest (testing Item) to any other item i continue to get the same error. This only started happening when upgrading from 3.0 to 3.2.x (and i just did an upgrade to the latest snapshot today).
Any ideas on why this is happening and/or how to fix it?