Hey there.
I recently installed the PSU control plugin and got it working with a smart plug I already had. I am able to turn the printer on and off with the button in the top nav bar. I set the correct timeout so that when the printer is turned on, it connects automatically 15 seconds later. I have it set to turn off after 30 minutes after a print is done, and disconnects gracefully. I leave the raspberry pi on all the time.
I was assuming I could send a print job from Cura, and it would turn my printer on, wait the 15 seconds I had set, connect, then start the print job that's been requested.
HOWEVER, it seems that if I try that now, OctoPrint receives the gcode but basically just waits/bails because it's not connected to a printer. It seems obvious to me that it should now turn on my printer - but I guess that's not the case? How is it supposed to read a "power on" gcode command in my file if it's not parsing the gcode because a printer's not connected?