I am using openhab 3 on a raspi with openhabian installation.
Due to the fact that the udp/tcp binding is not supported yet, I try to send an udp package via exec binding.
Nothing happens after rule call, I do see in the log that it is executed but the receiver does not get the command.
A manual call from comand line does the job, the receiver gets the message. > /usr/bin/echo LED_ON > /dev/udp/10.0.0.55/5000
Note: The exec binding is working because I do use it with a diffrent command: Thing exec:command:sky_cmd [command="/usr/bin/sky-remote-cli 10.0.0.53 %2$s", autorun=true]
you already whitelisted it, there’s no issue with the user rights…
So I’m a bit lost here, should work!
what you could try is, whether the execution makes it to your bash, so change your thing and add some action like touch:
of course add your whitelist accourdingly. what this does is bascially change date of your exec.whitelist file. So after changing your item it should change the date of your exec.whitelist file. If it doesn’t, the command is not coming through.
could you also do the following:
login to openHAB console openhab-cli console (pw is habopen)
set org.openhab.binding.exec to TRACE logging afterwards log:set TRACE org.openhab.binding.exec
update your item
then please post the stuff in your logs.
reset to INFO logging afterwards: log:set INFO org.openhab.binding.exec
I got same problems since I tested OH 3. I want to control my Home Theatre (LG) with simple udp messages, but without tcp/udp binding, I try to swop to exec binding, like in this thread, but I got the error in the open hab logs, “Permission denied”. I don’t know why?
My configuration is:
OH 3 on a MacBook, works fine
Exec binding is installed
REGEX binding is also installed
Simple example to send the command “Vol_Up” as follow:
POSX shell ( sh ) is being used instead of the bash.
The first does not support creating UDP packages in the way you want it to do.
Is the script executable for everyone ? Not sure if that helps.
If that does not help and still sh is being used inside of the binding try to foce it to use bash.
In case that does not work use nc also known as netcat in your shell script.