My MakerGear M2 doesn't have a power switch, and it isn't convenient to turn off its power strip, so I connected it to an Iris Smart Plug with a little power switch on it. That solved the problem, and also let me turn the printer on and off with Alfred, but tempted me to intergrate with Octoprint. Octoprint has a plugin, System Command Editor, that lets you execute shell commands from Octoprint's Power menu. That makes the Octoprint part easy - now it's just a matter of controlling a SmartThings device from Linux.