[SOLVED] Rule from for executeCommandLine - Touchscreen backlight

I wish to awake my touchpanel via Alexa voice command from backlite off state to on.

I think is a nice idea to control backlight if i need to read something from display for a while and after timetout the screen puts blacklight off.

please how should be correct inserted for executeCommandLine statement:

**shell cmd line:**
sudo sh -c 'echo "0" > /sys/class/backlight/rpi_backlight/bl_power'

**Rule line not working for me:**

Thanks for help.

Do you have the Exec binding installed and does openhab have the needed permissions to run the sudo command?

Also see this topic.

Thanks, Exec Binding was of course installed.
Thanks, Exec Binding was of course installed.
Solved with python script and openhab rule.
Trick was - leave sreen forever unblanked!
Add lines
@xset s noblank
@xset s off
@xset -dpms
to /etc/xdg/lxsession/LXDE-pi/autostart

Python script display.py:

openFile = open("/sys/devices/platform/rpi_backlight/backlight/rpi_backlight/bl_power", "r+")
status = int(openFile.read(1))
if status == 0:
    bl_set = 1
    bl_set = 0
bl_update = str(bl_set)


I’m using https://github.com/timothyhollabaugh/pi-touchscreen-timeout for switch off screen backlight after timeout 30 sec.