Automation to reboot rooter on failure problems

Every night I auto reboot my router to keep things healthy.

Occasionally, maybe once every 3 months, it doesn’t come back in a fully working state. Neither wired not wireless devices have a network connection until I power cycle the router.

In an attempt to deal with this if I’m not home I setup a Zigbee smart switch on the router power supply and an automation based on ping to 1.1.1.1 and 8.8.8.8

I use a HA SkyConnect USB as my main Zigbee coordinator.

If I test it while the network is working and fake the ping failing then it works, socket is power cycled.

But when it happens for real nothing happens.

The events I’m looking for on the ping device - “disconnect” are shown in the Logbook at the correct time so it should be triggering, but I notice it seems HA looses contact with all Zigbee devices at the same time as the network outage.

Am I missing something, can the Zigbee network via USB not function if there’s no network connection to the HA host?? I assumed they would continue to function independently as I believed they had nothing to do with ethernet.

In case relevant my setup is a Proxmox based, with a VM running HA OS. The Proxmox hosts and other home lab machines share a separate local switch with uplink to the router so should still have valid ethernet connection even when the router has a brain fart.

One thing I’ve changed today is to tell HA to use a static IP, whereas before I was having DHCP in the router provide the fixed IP in case that allows HA to keep ticking on loss of internet and DHCP server availability.

But really I’m baffled that I seem to loose Zigbee when I loose internet/local routing despite my zigbee being USB based, any insights or trouble shooting suggestions??

Thanks,
Andrew

Interesting. I use Zigbee2MQTT with an Ethernet-based coordinator, and I have never lost Zigbee if my router is not available or my isp crashes.

Presumably your HA and coordinator have fixed IP and a working router so can still find each other.

I’m wondering if it’s related to my preference of using the router to handle and assign my IP reservations - that all devices don’t get a valid IP if after router reboot the DHCP server is dead.

Though I am still surprised even if that’s true that my USB based Zigbee would vanish at that point…

Same results for me as well!

But Zigbee devices don’t use an IP

Oh I know: none at all in my USB coordinator setup - though in your setup with ethernet based coordinator you obviously do need valid IPs and ethernet for HA and the coordinator or it wouldn’t work at all.

My main point is indeed that I cannot understand why my Zigbee devices are loosing contact with HA when the HA host has an ethernet outage given that I have a USB coordinator.