After reading that article, I would assume that I have to write
var OpenCloseThreshold = 50000|lx;
in javascript.
But this gives the error
[internal.handler.ScriptActionHandler] - Script execution of rule with UID 'f0e7e83581' failed: ReferenceError: "lx" is not defined in <eval> at line number 5
edit: OK, the original post is about Rules DSL… I have to have a closer look of Rich’s explanation of the javascript stuff there…
edit2:
So I guess it should be
var OpenCloseThreshold = new QuantityType("50000 lx");
This doesn’t cause a compile error; have to wait if the comparison really works…