I am very new to openhab so please excuse me if I am missing something very obvious here:
I want to use exec to execute a existing python script. I got the basics to work so that with a switch item, i can execute the command sudo /home/pi/script01.py
Now I would like to use the input chanel of the exec binding to have the command change with the input variable. Like this: sudo home/pi/script"X".py
Where X is a variable that can be set with a slider or a knob. I got a string item set up that changes its value depending on the position of my slider in the GUI. But how do I implement this value into my command as described above?
Thanks in advance for your help