Multiple Input Variables exec binding


ich use the exec binding to call a python3 script. With %2$s I use one variable (number) as input for the python script. Now I need 3 Input Variables. How can I do this.
With one Variable my thing file looks like:

Thing exec:command:outdoorstation_watercontent "Wassergehalt" [command="python /etc/openhab2/scripts/ %2$s", transform="REGEX((.*?))", autorun=true]

This is my current Input command in the rules file


Thank you for your help


Put your 3 variable in a String (I advise a json string) and then break it down in your script

1 Like