> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.simplyprint.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Enabling PSU control; power supply via GPIO, GCODE etc. in SimplyPrint

| This can currently only be done via our web-platform, and is not available via our mobile app - the PSU control however _can_ be controlled via the app once enabled

In this article, we'll show you how to enable so-called "PSU control" support in SimplyPrint, which lets you turn your printer on/off, directly via the SimplyPrint panel and app.
This functionality can be enabled in unison with OctoPrint- or Moonraker(for Mainsail & Fluidd)-powered devices.

# How does it work?
Turning your printer's power supply may be done to get rid of annoying constantly-running-fan noises, to turn the printer screen off, to save power, or simply for ease of mind - but no matter what reason, there are a bunch of different ways to achieve this!

You may use a simple little relay, plugged into your Raspberry Pi and printer power supply, use a little component specifically designed for turning 3D printers on/off, smart plugs, HomeAssistant, MQTT & more! There are a bunch of ways to achieve this, and _almost_ no matter what you choose, this can be integrated with SimplyPrint.

## When does it turn the printer on and off, and can I control it manually?
Depending on your setup, usually the printer will automatically turn on when starting a print, heating up or moving _(generally when it receives a Gcode command, unless it's in a list of [Gcode commands that shouldn't turn on printer])_ - and often times, this can be tuned exactly to your liking.

Inside the SimplyPrint panel, once enabled, you'll find a "PSU on/off" toggle in both the web panel and the app that lets you turn the PSU on/off manually, as well as always being able to see whether it's currently on or off.


# Enabling support for your printer; OctoPrint & Mainsail, Fluidd/Moonraker setups
## OctoPrint-powered setup
For OctoPrint-powered instances, installing the PSU Control OctoPrint plugin enables you to control your power supply, smart-plug & more.
**This requires the [PSU Control OctoPrint plugin](https://plugins.octoprint.org/plugins/psucontrol/),** which can be installed via the SimplyPrint panel in the next step, or directly via the OctoPrint plugin manager.

The PSU Control OctoPrint plugin supports control of a variety of power supplies, smart-plugs and other devices, such as using the GPIO pins of a Raspberry Pi, TPLink, Tasmota, Tenda Beli, Wemo, HomeAssistant, Shelly, MQTT, Meross, Tapo, FRITZ!Box, Jeedom, ESPurna & more - read more here; https://plugins.octoprint.org/by_tag/#tag-psucontrol-subplugin.

## Klipper with Mainsail or Fluidd (Moonraker-powered devices)
For Moonraker-powered devices _(your device is Moonraker-powered when using Mainsail or Fluidd)_, you can enable PSU support via the `[power]` setting in the Moonraker settings file.

**More on how to do that here;** https://moonraker.readthedocs.io/en/latest/configuration/#power, and here for Mainsail-specific "Printer power"; https://docs.mainsail.xyz/overview/quicktips/printer-power-switch


# Enabling the PSU setting for your printer
1. [Locate your printer settings](/en/article/finding-the-printer-settings-17tbtqt/) for the given printer
2. Go to the "Modifications" tab
3. Click "Power controller (PSU)"
4. **Enable the "Has Power Controller / PSU" option** by ticking the checkbox
* _If you're using the OctoPrint setup, you can install the PSU Control OctoPrint plugin here if you haven't already_
5. Make sure to **save the printer settings** _(scroll down and click "Save settings" in the bottom right of the popup)_

And that's it! Hope this guide was helpful.

Please be aware that we, in the SimplyPrint support cannot help with hardware-specific and printer-modification-related questions such as this, but if you have issues on the SimplyPrint side, do let us know!
