I am having problems getting any rules to work, I am using openremote controller 2.5 on windows 7 pc, with android client.
I have copied the most basic rule from the first example in the documentation but cannot get it to update to the DRL file.
I did previously have some rules setup which did update the DRL file, but none of them worked so in order to try to resolve the problem,
I have gone right back to basics. I copied the first example rule, and simply changed the name of the sensor, and the command
to be executed to match valid entries in my building modeller.
This is the rule below, and it appears with much of it underlined in red which is believe indicates
a syntax problem, but I started by copy and pasting from the documentation, the deleted all the text and typed it afresh, but no change.
package org.openremote.controller.protocol;
global org.openremote.controller.statuscache.CommandFacade execute;
global org.openremote.controller.statuscache.SwitchFacade switches;
rule “AVTURNON” when
Event( source == “AvPowerStatus”, value == “on” )
then
execute.command( “AVRPWRTOGGLE” );
end
When I click submit, I do (after a pause) get a “property saved successfully” message, but no DRL file is created anymore,
I am looking in the webapps\controller\rules folder on the server.
Can anyone please help get me started.
P.S. in the above rule, I have added a semicolon at the end of the “package” statement, this appears in some examples in the documentation
and is missing in others, I have tried both alternatives.
Ian Pollard