This is the generated code I got right now:
I getting a java.lang.RuntimeException: java.lang.ClassNotFoundException: org.openhab.core.persistence.extensions.PersistenceExtensions cannot be found by org.apache.aries.jax.rs.whiteboard_1.0.9.
Again, thanks for the help.
Thanks for the quick answer. That works perfect for me.
Just as a comment, I’m facing a strange behavior. After save the rule for first time, if I run it by clicking the play button in the interface I’m getting this error 16:42:17.100 [ERROR] [.internal.handler.ScriptActionHandler] - Script execution failed: ReferenceError: "oldState" is not defined in <eval> at line number 3, if later I make a change to the trigger item the rule runs as expected, and after this first successful execution the rule also runs fine from the Play button on the interface.
I don’t know if this is the expected behavior or it could be considered an issue.
Thanks again for the previous help. OpenHAB 3 looks awesome!