This might help with rebooting via RM:
Side-note - I use the Hubitat Ping to keep an eye on my various hubs, etc, reporting their "presence" captured by the driver on one of my dashboards, using Device Watchdog to compile a single tile.
You could use the presence captured by Hubitat Ping in an RM rule to trigger the reboot when the "gateway / router" is "away".