joseffallman / hass_flashforge

FlashForge 3D printer integration for Home Assistant
MIT License
8 stars 2 forks source link

integration unavailable every couple of minutes #46

Open Hugyleviking opened 5 months ago

Hugyleviking commented 5 months ago

System Health details

Home assitant up to date et flashforge integration 1.0.5

Checklist

Describe the issue

Hello,

integration becomes unavailable after a few minutes and then available again? The cycle is infinite. Copie d'écran_20240429_193918

Reproduction steps

  1. Begin to print
  2. Integration available
  3. Few minutes later integration unavailable ... 30 seconds later integration available

infinite loop

Debug logs

2024-04-29 20:50:38.621 DEBUG (MainThread) [custom_components.flashforge.data_update_coordinator] Finished fetching FlashForge-55af99e92e479bd721455a08ff1c89b7 data in 0.006 seconds (success: True)
2024-04-29 20:51:08.621 ERROR (MainThread) [custom_components.flashforge.data_update_coordinator] Error fetching FlashForge-55af99e92e479bd721455a08ff1c89b7 data: [Errno 104] Connection reset by peer
2024-04-29 20:51:08.622 DEBUG (MainThread) [custom_components.flashforge.data_update_coordinator] Finished fetching FlashForge-55af99e92e479bd721455a08ff1c89b7 data in 0.007 seconds (success: False)
2024-04-29 20:51:09.598 WARNING (SyncWorker_63) [custom_components.flashforge.camera] Unable to get still image when Adventurer 5M Camera camera is offline
2024-04-29 20:51:19.596 WARNING (SyncWorker_47) [custom_components.flashforge.camera] Unable to get still image when Adventurer 5M Camera camera is offline
2024-04-29 20:51:29.596 WARNING (SyncWorker_35) [custom_components.flashforge.camera] Unable to get still image when Adventurer 5M Camera camera is offline
2024-04-29 20:51:38.629 INFO (MainThread) [custom_components.flashforge.data_update_coordinator] Fetching FlashForge-55af99e92e479bd721455a08ff1c89b7 data recovered
2024-04-29 20:51:38.629 DEBUG (MainThread) [custom_components.flashforge.data_update_coordinator] Finished fetching FlashForge-55af99e92e479bd721455a08ff1c89b7 data in 0.015 seconds (success: True)

Diagnostics dump

No response

Hugyleviking commented 5 months ago

Error with Flashforge firmware 2.4.5 and 2.6.6

Hugyleviking commented 4 months ago

?

Hugyleviking commented 4 months ago

Any other people have this problem ?

joseffallman commented 4 months ago

Hi, sorry for the delay. No I haven't experience this. Perhaps because I haven't print that much in the latest :) This could be of multiple reasons, hard to tell if it's the integration in home assistant or your network setup. I have a Adventure 4 on firmware v2.2.4 that is won't update because the issues in newer firmware. Therefore it will be hard for me to investigate any further in this. When it happens, are you having any other software that's connected to the printer, like flashprint. Is it the same if you close it down? Is the printer connected through wifi or ethernet?

Hugyleviking commented 4 months ago

When problem happend, no network problem and my printer ping is ok during the Home Assistant integration said unaivalable. My printer is connected with ethernet cable.

joseffallman commented 3 months ago

I started to encounter this myself. Sometimes after a couple of minutes the printer disconnects from wifi. This could be related to how often information is read out from printer. I will see if i could tweak a little. But it's hard to troubleshoot when it only happens sometimes.