/etc/openhab/automation/jsr223/groovy/core/test.groovy created as explained here: JSR223 Scripting | openHAB
I also tried /etc/openhab/automation/jsr223/test.groovy and the inbetween variations
I enabled DEBUG org.openhab.core.automation loggin
Now I see in the logs:
[DEBUG] [rt.internal.loader.ScriptFileWatcher] - Enqueued file:/etc/openhab/automation/jsr223/groovy/core/test.groovy
But that’s it.
I do not get the log output from the test.groovy neither I see anything happening after the file has been enqueued.
I guess something should happen after that
It must be a very basic thing I miss here to make it work.
Just as a general information:
I actually stopped now using Groovy and instead switched back to standard rules usages.
There are much more resources and examples available for rules.
I also realized that my requirements are not as complex as I thought, therefore rules are just fine for me.