Zigbee2MQTT stops with an error and does not restart; Fritzbox cable forced disconnection

Hello,

When the Fritz!Box 6660 cable connection is forcibly disconnected by the provider, Zigbee2MQTT reports the error ETIMEDOUT / z2m: Adapter disconnected, stopping

It would then restart:
and of course, it can’t reach the IP/port. “EHOSTUNREACH”

This is attempted 9 times - for 30 seconds each
and then the ZigBee2MQTT restart is stopped.

PROBLEM: The Fritz!Box takes longer than 30 seconds to start <<<

ANYONE SOLVED THIS?

THANK YOU FOR HELP!

Are you fixing the correct issue? Why is the cable disconnection occurring?

Have you allocated static IP Addresses on your Fritz for all the connected devices?

Z2M should already have a built-in watchdog which runs 1min, 5min, 15min, 30min & 60min after disconnection.

Go to Settings > Apps > Zigbee2MQTT > Configuration tab & toggle the “Show unused optional configuration options” switch. You can set custom timings, something like 1,3,5,10,15 should do it.

If that still doesn’t work, let me know & I’ll tell you how to get around it using an automation.

I’ve had this issue three times in the last two weeks.

But the current issue was actually triggered by the provider via a Fritz!Box update and restart.

Yes, static IP addresses.

Thanks for comment!
What does force_onboarding switch mean?
Do I need to enable it?

Thank you very much!

No. Don’t touch it or you’ll have to do z2m setup from scratch

1 Like

Hi, I’d like to learn from you and get to know the automation for the workaround. Many thanks!

Test if the watchdog setting works first. You probably won’t need my automation - I set it up before I found out about watchdog.

1 Like

Just to throw a “really dumb” solution into the mix - for less than $20 you could probably buy a small switch (4 or 8 port) and throw it between Z2M and your router.

That would probably stop the cable company from from tripping your Z2M box off the network.

1 Like

Yes - you’re right! Thank you!
Good idea! not “dumb” !!
A 5-port PoE switch is located 1 meter away from me. This means I no longer have a device directly connected to the Fritzbox and it also provides power to the SMLIGHT SLZB-MR4U coordinator.
That’s great!