I stopped using Wi-Fi smart plugs after switching to Zigbee relays, and my automations never fail anymore
I was fed up of my devices going offline.
We haven't written up this one. XDA Developers has the full story — the link below goes straight to it.