How to turn on atx power supply using Octoprint

What is the problem?

I want to turn on my ATX power supply using one of the GPIO pins on the raspberry pi and using this[PSU Control] plugin.
When I tried to use a mosfet, its always stayend on, regardless of the input.

What did you already try to solve it?

I have tried using a mosfet to short a ground and the PSU_ON pin on the power supply. I connected the gate of the mosfet to the GPIO pin which I configured in the plugin settings.

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, what kind of hardware precisely, ...)

Its an ATX power supply, the PI 2B is running of the 5V standby of the PSU

Edit: I could just invert it and connect the pin directly to the green wire(PSU_ON), then it works, but it will have 3.3v sent trough it wen turned off, so its not connected to ground. Doest this cause issues or shorts? Or is it fine this way?

You usually do not need a plugin to run a ATX supply in connection with a Pi, see Pi's poweroff overlay pin doc.

You do if you want to control it from the web interface and automate power on/off of a printer.

@Spons - have you seen this ?

It might be the type off mosfet you're using.

Otherwise you may want to use a relay. I've used relay modules from Raspi, Arduino etc in the past with great success and they only cost a few bucks.