This page last changed on Mar 02, 2015 by berndl.
I have made some timer rules for my KNX Installation.
This works only from time to time, if any.
There is an information on the openeremote webpage that one should re-boot the controller after every change of rules.
But what does this mean - rebooting?
I have tried to close the controller and restart it - no result
Then I have reboot my QNAP Server - the same result.
So my question is. What does it mean to re-boot the controller and how is it done?
Thank you in advance
For a NAS rebooting of the controller is equivalent to restart the package, i.e. stop Openremote -> start Openremote.
Posted by aktur at Mar 03, 2015 11:40
Thank you for your answer, but it did not work.
Then I have reinstalled the controller and restart ist and reboot it some times - it did not work, although the devices and command I can control from my Iphone.
May be there is something wrong in the rule?
Here is the simple rule:
global org.openremote.controller.statuscache.CommandFacade execute;
global org.openremote.controller.statuscache.SwitchFacade switches;
rule "AZ Lampe an 17:00 Uhr"
timer (cron: 0 0 17 * * ?) when eval (true) then
execute.command("Lampe AZ (ON)");
Posted by berndl at Mar 03, 2015 16:02
1. Check if the rule file is compiled without any errors by inspecting boot.log;
2. In case 1 is OK, check if the rule is executed, either by adding print statement to the rule and examine the console output or adding log function and inspecting for example dev.log.
Posted by aktur at Mar 04, 2015 05:44
Thank you again.
I tried but nothing happens.
I think that the problem is the synchronization.
Whereas all the switches and commands are synchronized this is not valid for the rules.
So I search on my QNAP System for the file modeler_rules.drl
I found it by:
When I open it with vi modeler_rules.drl
it is empty only ∾ 's and the text: modeler-rules.drl 100% 0,00-01
What can I do?
Is it possible to edit the drl file directly without synchronization via the designer?
Thank you again
Posted by berndl at Mar 05, 2015 14:29
Which version Java you use on your Qnap? At the forum wrote that the rules are working with version Java6 only.
Posted by aleksey_z at Mar 05, 2015 18:47
Thank you for help. I have Java 6.
But I have found a workaround
I edit the modeler_rules.drl directly on the NAS with vi
Then I restart the controller (off - on)
Then I found out that there was a time delay between the real time and the "cron" time of 1 hour
When I programmed 17:00 it starts at 18:00
(Whatever is the reason?). As I was too impatient I found out this very late.
Posted by berndl at Mar 05, 2015 19:34
This has probably to do with file permissions. Openremote is unable to overwrite the modeler_rules.drl. You can fix it witch chown or/and with chmod command. Anyway, locally editing the modeler_rules.drl will work too, unless it is overwritten with the next design syncing.
Posted by aktur at Mar 05, 2015 20:29