I have a Shelly plug that is programmed internally to turn itself on if off for 20 seconds. Home assistant turns the plug off for 10 seconds if curl ip.me fails for 15 minutes.
My modem is plugged into that.
I’ve never had a router or firewall crash if I wasn’t fucking with it and did something stupid ill-advised, so I don’t try that kind of stuff unless I’m home.
Like the USB superposition