OctoPrint-PSUControl
OctoPrint-PSUControl copied to clipboard
Print stutters while Homeassistant is unavailable
Im using the PSU Control and PSU Control Homeassistant plugin, to turn my printer automaticaly off. If my homeassistant gets unavailabe my printer starts to stutter.
- Start print
- Turn off homeassistant
- ...
What did you expect to happen?
Print continues as normal
What happened instead?
Print stutters
Version of OctoPrint-PSUControl
PSU Control (1.0.6) PSU Control - Home Assistant (1.0.5)
Operating System running OctoPrint
DietPi on ThinClient
Printer model & used firmware incl. version
Prusa i3 MK3s+ 3.11.2
Link to octoprint.log with octoprnt.plugins.psucontrol set to DEBUG
https://gist.github.com/MrJoki007/a048b1c4c08eb1c9d5ceeca03c597708
Same problem here. I think there are multiple issues here:
- There's no need to try "turning on" the printer while it's clearly already printing (i.e. serial connection is established and state is printing)
- The network request to HASS shouldn't block the whole octoprint main thread.
Similar issues with other sub-plugins: #259, #243
I get this issue even when HA is available, and everything has a wired ethernet connection. Was wondering wtf had happened to my printer.