Hello @Franky1,
That’s a good idea. I don’t think that’s a feature at the moment though.
The closest thing we have is tasks and flux.
You could use: Experimental mqtt package | Flux 0.x Documentation
Store the Flux script in a task and use the “run task” button in the UI to run the task on click.