Open rambudo opened 2 years 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.
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.
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?