Switch Rule for Offline Hub

So, every week or so my wireless bridge in which my Hubitat and ST hubs are connected to lose connection. A quick reboot solves the problem, I am trying to formulate a rule to automatical reboot the hub through a smart outlet, but having difficulty with the trigger.. my latest train of thought is using the SMS message/notification I get from smartthings when it goes offline.. also I am thinking of using a PI and some monitoring automation, but without network connectivity how would I trigger the smart outlet?? Anyone else fashion a similar solution?

What it's the cause of going offline?

If the wireless bridge (not sure what that is) you could ping it using iPhone presence sensor app on HE, and power cycle a HE connected power outlet/socket work auto on.