execBinding on openHab3 not working within a rule

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

Not required, that’s for Things.

Have you looked at any other threads about using executeCommandLine() at all?
The usual problem is permissions, because openhab user is not console user.
Next steps would be to add logging to see if your rule actually triggers, then capture the return result from executeCommandLine() and see what it tells you.