I don’t know if this is helping, but maybe change the logDebug to logInfo and don’t use a dot in “testrule.rules”. So for example:
logInfo(“testrule_rules”, “TESTING LOGGING WHEN SUNRISE”)
when
Channel “astro:sun:home:set#event” triggered START
then
logInfo(“testrule_rules”, “TESTING LOGGING WHEN SUNSET”)
zwave:device:205872c7:node2:switch_binary = ON
end
I’ve removed the dot, changed the log to Info, and added a switch (ideally this is the scenario I want to happen anyway - light to come on at sunset)
Am I missing a step here? Like loading the rule file or something? I have simply created the rule file and logging entry, and restarted the openHAB service.
rule "Randome Rule"
when
Item test_sw received command
then
logInfo("Randome Rule", "Triggered Item "+ triggeringItem.name +" changed to " + receivedCommand )
end
@Matt_T do you follow the Karaf console when changing the files, Is there an error when you save the rule?
I typed this on the go did not have it running in my setup. Sorry for the typo.
Maybe try a fresh install of openhab, as the astro binding is known to sometimes make some trouble with firering rules but this should have been solved.
But when a simple switch allready does not trigger the rule there seems something to be very strange.
Next problem: It only seems to load the rule if it contains ONLY rule, when, then, end. Anything ese and it returns an error, even a // comment, or an empty return.