I successfully use the Exec Binding 2.x to restart and shutdown my Pi so I’m reasonalby familiar with the setup.
That said I’m really struggling to get my head around why I cannot send another command. I’ve read How to solve Exec binding problems but to be honest it’s still a bit above my head.
The command that works in terminal is
sudo bash -c "echo 50 > /sys/class/backlight/rpi_backlight/brightness"
/etc/sudoers.d/common_users file contains the following:
openhab ALL = NOPASSWD: /sbin/reboot, /sbin/shutdown, /bin/bash, /sys/class/backlight/rpi_backlight/brightness
I created a thing in the PaperUI that contains the following (along with about 100 other tests ) without success:
/usr/bin/sudo /bin/bash -c "echo 100 > /sys/class/backlight/rpi_backlight/brightness"
Could someone be so kind as to point me in the right direction as to where I’m going wrong…?