Open AshtonKem opened 2 years ago
I have this exact issue though not from misconfiguration. I restarted my HomeAssistant instance while a print was going and all of a sudden it slowed to a few commands a seconds with the same error on the Octoprint console
Communication timeout while printing, trying to trigger response from printer. Configure long running commands or increase communication timeout if that happens regularly on specific commands or long moves.
My HomeAssistant is now back up again but the printer has not recovered to normal operation. The print is 90% done so I'm going to leave it and see what happens.
It's not limited to HomeAssistant though, I used to use OpenHab and I had the same problem when it was down and I started a new print.
This seems to be the culprit, it looks like it's spamming HA with "Turn On" commands even though it is on:
2023-01-27 15:01:59,620 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:01:59,989 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:01:59,989 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:00,481 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:00,481 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:01,118 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:01,118 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:01,615 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:01,616 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:02,045 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:02,046 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:02,521 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:02,521 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:02,916 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:02,917 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:03,358 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:03,359 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:03,864 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:03,865 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:04,322 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:04,323 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:04,721 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:04,721 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:05,097 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:05,097 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:05,538 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G0)
2023-01-27 15:02:05,539 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:05,968 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:05,969 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:06,720 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:06,721 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:07,221 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:07,221 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:07,692 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:07,693 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:08,226 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:08,226 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:08,653 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:08,653 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:09,033 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:09,034 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:09,473 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
2023-01-27 15:02:09,473 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2023-01-27 15:02:09,879 - octoprint.plugins.psucontrol - INFO - Auto-On - Turning PSU On (Triggered by G1)
I went into settings and unchecked the following boxes, when I saved the printer immediately kicked back into life:
Not sure which one fixed it
I'm experiencing the same issue, using the Home-Assistant integration...
It seems that an "easy fix" might be to check whether Octoprint has an active Serial Connection, and skip any "Power On and Wait for Printer to be ready".
I have not had a look at the code though...
Same with fritzplug installation within Homebridge. Since years now. I switched from tplink to fritzplug to deal with that issue. With no success. I'll try @duanemck s solution
Similar issues with other sub-plugins: #262, #259
What were you doing?
What did you expect to happen?
I expected Octoprint to work normally, without PSU functionality working.
What happened instead?
Continuous printer hangups. The following message was repeated in the log when the printer was hanging up.
This was fixed when I uninstalled both plugins (PSU Control & The Home Assistant Plugin).
I understand that I misconfigured it by moving the smart plug, but I also don't think it should render octoprint effectively inoperable when misconfigured.
Version of OctoPrint-PSUControl
I uninstalled it, but latest stable version. Updating was part of my triage.
Operating System running OctoPrint
OctoPrint 1.8.1 Python 3.7.3 OctoPi 0.18.0
Printer model & used firmware incl. version
Ender 5 Pro, Marlin 2.0.x
Link to octoprint.log with octoprnt.plugins.psucontrol set to DEBUG
octoprint.log serial.log
I believe the following snipped is the culprit. This happened when the printing halted, perhaps this is a blocking operation?