Hi guys,
I’m successfully using the Next-Gen (Experimiental) rules in OpenHab with JavaScript scripting, and they work well, especially when designed using the FlowsBuilder UI. While this UI provides a clever way to start fast with these kinds of rules, overall debugging has been painful:
- logInfo sentences do not work as I think this is a different context/rule engine.
- I’ve seen sample JavaScript rules where they are using the print(‘something’); sentences, but I’m wondering where the output is actually written to. E.g. I’m using either the /var/logs/openhab2/events.log or the karaf console (log:tail), but I don’t receive the output there. I don’t know if I should increase the logging level to see something.
Could you guys describe what is the best method of debugging the experimental rules or help me finding out where I should receive the output of the JavaScript ‘print’ sentences?