Can Homey Pro detect it has lost wifi signal?

That’s not a silly question I think.
The NetScan app is what you need.
Example:
Add a NetScan IP device, and enter the local IP address of your wifi router.

Then, with this example flow, you can restart your router.