I want to use a dashboard ui_switch as this:
- on : start the exec node
- off: stop the exec node
I've tried those settings but everytime the OFF state is triggered it start a new process leaving current running:
Is there a way to manage this directly or should I've add a function node that manage the behavior i.e. if input from switch is true, then do nothing if already running?