Hi,
one of my rules should switch a 433 Mhz powerplug device (which is connected through a 433-sender connected to the GPIO pins and controlled with a program called “send” from the 433Utils).
When using the shell, I just call “./send 11111 4 1” (“11111” = channel of the device, “4” = device id, “1” = ON). This works as normal user as well as sudo.
Now when I call it in a rule (openhab 3 GUI), it doesn’t work and it is not even showing up in my log file.
I have the exact command in my exec whitelist. I also created a shell script, which is also included in my whitelist (/etc/openhab/misc/exec.whitelist). But neither the “send” command nor the .sh script is successfully run when I execute the rule.
My rule looks like this:
configuration: {}
triggers:
- id: "1"
configuration:
itemName: KontaktFensterBuro_Zustand
type: core.ItemStateChangeTrigger
conditions: []
actions:
- inputs: {}
id: "2"
configuration:
type: application/vnd.openhab.dsl.rule
script: executeCommandLine("/home/openhabian/433Utils/RPi_utils/steckdose2_on.sh")
type: script.ScriptAction