I'm completely new with Node RED but so far I can make a button start a python script and another button stops the script.
But I would like to do this by using a on/off switch.
I can't get it to work.
The switch has 2 parameters (On Payload / Off Payload) and I thought I add a Exec node tot start and another Exec node to stop, but off course this doesn't work.
Can anybody help me?
What I want is to turn the switch to ON and the Python script mus start.
If I set the switch to OFF the script to kill the running Python script must be run.