Cannot run program “Switch”: error=2, No such file or directory
This error make me sooooo unhappy!
I want to switch a 433MhZ Socket with raspberry-remote via openhab with the exec binding. But I get the error above
My settings:
exec:
Thing: Switch funksteckdose “funksteckdose” (funksteckdose) {exec=“OFF:sudo raspberry-remote/swichOff.sh, ON:sudo raspberry-remote/switchOn.sh”}
Item: Switch
scripts:
switchOn.sh:
#!/bin/sh
raspberry-remote/send 11111 1 1
switchOff.sh:
#!/bin/sh
raspberry-remote/send 11111 1 0
sudo visudo:
User privilege specification
root ALL=(ALL:ALL) ALL openhab ALL=NOPASSWD: /raspberry-remote/switch*
Am I wrong?!