Introduction: OctoPrint 3D Printer Power and Lighting Control

About: Engineer, Clemson grad, writer, maker of random contraptions for fun and profit.

For reference. If you choose to use this method, use at your own risk, and ensure that relay is rated for the power requirements of your 3D Printer.

Likely a better solution is an enclosed IoT relay or similar that includes sockets pre-wired.


If you ever wanted to turn your 3D printer on and off remotely with OctoPrint, this will show you how to do that. Additionally, a light is added; extremely helpful if you want to take time lapses and for monitoring at night.

Software used:

Note that if you choose to copy anything here it's at your own risk. I'm not an electrician.

Step 1: Schematic

Wiring is laid out as seen here. Optionally, you could omit the light and lever nuts to simplify things significantly, but consider whether you're switching line or neutral when the input is cut.

Electronics Used:

Other Useful Stuff:

Note: Amazon links are affiliate.

Step 2: Zip Ties!

Attach to the hanging Pi Mount linked earlier with zip ties, and clean everything up with these wondrous attachment devices.

Step 3: Control Your 3D Printer!

With all that laid out, you'll be able to control and light your 3D prints remotely. I used a Monoprice Select Mini V2, but this type of setup should work for nearly any printer.

As seen, this deals with the hardware and electronics for the build; there's a lot of info on actually installing OctoPrint out there elsewhere.

Thanks for reading. If you'd like to see some of my other projects, be sure to check out my YouTube page here.