rule "dum2n"
when
Item DebugSwitch4 received command ON
then{
val String results = executeCommandLine("/etc/openhab2/scripts/StartFireTV.sh", 5000)
Basement_Fans.sendCommand(ON)
logInfo("dum2n", results)
}
end
I get this error in the log
2018-03-18 12:03:22.605 [INFO ] [eclipse.smarthome.model.script.dum2n] - cannot bind ‘local:5037’
daemon not running. starting it now on port 5037 *
cannot bind ‘local:5037’
rule "dum2n"
when
Item DebugSwitch4 received command ON
then
val String results = executeCommandLine("/etc/openhab2/scripts/StartFireTV.sh", 5000)
Basement_Fans.sendCommand(ON)
logInfo("dum2n", results)
end
My guess is that there is a problem with the rights. I think OpenHAB somehow has less rights while executing the script compared to running it directly via command line.