edekeijzer/OctoPrint-PSUControl-Shelly

Octoprint stops print when losing connection with shelly plug

Closed this issue · 1 comments

Hi all,

I'm having an issue, i'm using Octoprint for my printfarm. All my printers are switched with Shelly S plugs and controlled by the PSUControl-Shelly plugin. This all works great, but there one issue. When Octoprint loses it connection with the Shelly S Plug the print stops. When the connection resumes the print continous but this stop is always visible in the print.

Is there a way to prevent Octoprint from stopping the print when losing the connection with the shelly s plug?

2022-10-24 15:52:13,168 - octoprint.plugins.psucontrol_shelly - ERROR - Unable to communicate with server. Check settings. -> At this point the print stops and waits
2022-10-24 15:52:13,215 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2022-10-24 15:52:13,215 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2022-10-24 15:52:34,425 - octoprint.util.comm - INFO - Communication timeout while printing, trying to trigger response from printer.
2022-10-24 15:52:34,441 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2022-10-24 15:52:34,441 - octoprint.plugins.psucontrol - INFO - Switching PSU On

Turn of the Auto-On function (or trigger it only on bed leveling and heating, not on printing codes), as it will block the transmission of the GCODE until a response (or timeout) was received from Shelly.
I have put a warning against this in the readme now.