Hoping someone can help with this query
I am try to debug why one of my rules is not working using System.out.println, but I cannot find where this output goes,
I am running Controller 2.6 on a Raspberry pi with the below rules file.
The rules in question are SkyPowerOn, and SkyPowerOff.
SkypowerOn works successfully, but SkyPowerOff does not seem to work, the only difference being that the Command is a Macro, whereas the powerOn
command is a simple command (TCP/IP) I have added the System.out.println(s) to try to debug it but where I expected the output to be
in openremote/logs/container/standardoutput.log this is not present, and there is no output on the screen.
global org.openremote.controller.statuscache.CommandFacade execute;
global org.openremote.controller.statuscache.SwitchFacade switches;
timer (cron: 0 30 22 * * ?) when eval(true) then
timer (cron: 0 0 8 * * ?) when eval(true) then
rule “SkyPowerOn” when
Event( source == “VirtualSensor”, value == “on”)
rule “SkyPowerOff” when
Event( source == “VirtualSensor”, value == “off”)
System.out.println(“Running Sky Off”);