I was just wondering if anyone has any experience with calling external scripts from openHAB’s rules and scripting language. For example possibly having a rule which uses the openHAB timers to call a python script every X seconds. If not is there anyway to execute shell commands from openHAB’s scripting language. I am currently running openHAB on the raspberry pi with the latest version of openhabian.
I have found this executeCommandLine(String commandLine), haven’t had a chance to test it yet but could be of help to people https://www.openhab.org/docs/configuration/actions.html#exec-actions