The command is: Python C:\openHAB\conf\scripts\transform.py %s
I have placed it in the whitelist file. I also created an exec command thing and in the command box I placed the same command. I receive mqtt messages and it’s stored to this one item, and in the item config, there’s the option for profiles. I selected EXEC there and put the same command in the command box. I don’t think this is the right way to do this, as this isn’t working.
How do I use exec transformation properly to transform incoming mqtt message or value stored in item to something else using an external program (python for example) to update the value of the item?
here’s the simple, basic script im using for testing/learning exec:
import sys
inpt = sys.argv[1]
sys.stdout.write(inpt.upper()) #or use print()