I've got my 3D printer on a remote power switch that's controlled via Home Assistant. The PI running Octoprint is powered 24/7.. Is there an octoprint plugin that can make REST API (or MQTT) calls to turn the printer on at the start of a print and then off when a print finishes?
This is what I envision my workflow to be.
Upload print to Octoprint
Click the print button (I like this to be manual)
Octoprint powers on printer
Octoprint connects to serial port
Octoprint turns off printer
If not then I'll just write the automation in Home Assistant and monitor the print job. What I don't know if I can trigger via Home Assistant is initiating the connection to the serial port.