I got PSU control working with a cheap tasmota smart plug and thought I'd share my settings for anyone interested.
Of course, replace 3dprinterrelay.iot.gravy.network
with the hostname of your relay. I recommend not giving it any internet access. You can password protect these calls if you are so inclined.
Switching Method: System Command
On System Command:
curl http://3dprinterrelay.iot.gravy.network/cm?cmnd=Power%20On
Off System Command:
curl http://3dprinterrelay.iot.gravy.network/cm?cmnd=Power%20Off
Sensing Method: System Command
Sensing System Command:
test $(curl -v --silent http://3dprinterrelay.iot.gravy.network/cm?cmnd=status%2011 2>&1 | grep '"POWER":"ON"')
Polling Interval: 5 sec
Set everything else to your liking.
Cheers! 🍻