switch module

Hi!
I’v got problems with configuring input switch: when the output_on_command is configured as one word e.g.
switch.pplay.output_on_command M106
it works perfectly fine, but when it contains spaces as it is in an example
switch.zplus10.output_on_command G91 G0 Z10 G90
It doesn’t work.

What i want to achieve is to configure it to play a gcode file so that i can print from sd card without having panel and without connecting to the machine:
switch.pplay.output_on_command play /sd/default.gcode

Imported from wikidot

I remember seeing that you can do

switch.zplus10.output_on_command G91_G0_Z10_G90

Please try it and tell me if it works, I’ll add it to the documentation if it’s not there.

Cheers.

Adding underscores solved the problem for
switch.zplus10.output_on_command G91_G0_Z10_G90

I tried also
switch.pplay.output_on_command play_/sd/default.gcode
but it doesn’t work, i guess i will have to make it work by digging into panel code
Thanks a lot for the help!