I'm all new to Node Red and are stuck. I have Homeassistant installed in a Docker on Ubuntu. Have Installed the Node Red Integration. Integration works well. I have a simple flow in Node Red with an exec node that runs a Python script when a sensor changes. Flow is triggered as it should but it fails on the exec node. The Node Red node runs the following script and argument:
python3 ~/home/joern/Documents/flysjekk.py NAX9T
but it fails with the following error messages:
python3: can't open file '/root/home/joern/Documents/flysjekk.py': [Errno 2] No such file or directory
Properties on the flysjekk.py file is as following:
Running the above command from the terminal works like a charm.
I have very little experience with ubuntu so I hope someone are able and willing to help me through this.
Thanks in advance.