EXEC1.x Binding

Hello,

after reinstallation my Raspberry all works fine, but currently i’m not able to execute ssh commands.
from the terminal i can send

sudo rcswitch-pi/send 11100 1 1 and the plug switch to state on. All is fine

if i used my *.item file entry …
… … {exec=“OFF:sudo rcswitch-pi/send 11100 1 0, ON:sudo rcswitch-pi/send 11100 1 1”}

i get in termnial client after prompt sudo service openhab2 status the following entries:
Feb 12 15:14:45 openhabserver sudo[6355]: pam_unix(sudo:auth): conversation failed
Feb 12 15:14:45 openhabserver sudo[6355]: pam_unix(sudo:auth): auth could not identify password for [openhab]

what is wrong with my exec command?
can anyone help me?

Have you added the user openhab to the sudo group?

usermod -aG sudo openhab

i had added the user openhab to group sudo but this has no effect, same issue

this is some content of my visudo:

User privilege specification

root ALL=(ALL:ALL) ALL
openhab ALL=(ALL:ALL) /rc-switch/*
openhab ALL=(ALL:ALL) /rc-switch/send

Allow members of group sudo to execute any command

%sudo ALL=(ALL:ALL) ALL

thanks

Hi I have the same problem !!! what is the solution