modrzew / hass-flashforge-adventurer-3

Home Assistant integration providing support for the FlashForge Adventurer 3 3D printer.
20 stars 10 forks source link

Module causes printer to stop and lock up #4

Open rambudo opened 1 year ago

rambudo commented 1 year ago

Using this module causes my printers to stop and lock up.

Both of my Adventurer 3s will completely lock up about 5-6 hours into a 12 hour print while this module is running on HA. This typically will happen on the second or third print after restarting the printer. I am pressed for production, so I have limited availability to troubleshoot exactly when this is happening. That said, it started after activating this module and stopped after deactivating this module.

I suspect that the constant connection is somehow overloading the printer's memory and it just locks up.

This module appears to be polling the printer for a status, so I wonder if there is a way to throttle the requests so that the printer is not overloaded?

modrzew commented 1 year ago

Hey, thanks for the report.

Requests should be already throttled by HA to one call per 60 seconds: https://github.com/modrzew/hass-flashforge-adventurer-3/blob/master/custom_components/flashforge_adventurer_3/sensor.py#L58. The integration opens a new TCP connection, sends three commands, and closes the connection.

I can check whether Adventurer 3 behaves in the same way at some point in the future, I haven't printed anything large enough since I started using this integration.

modrzew commented 1 year ago

Hey @rambudo, have you had any luck with running this integration? I've ran a few print jobs since October (the longest taking 12 hours) and nothing wrong happened to my printer.