Virtual Device will check every 5 minutes if HC2 has internet connection and if lack of connection is detected then it will turn off Fibaro WallPlug connected to router for 5 seconds and then turn Fibaro WallPlug on, which indicates in router restart.
import Internet_connection.vfib to your HC2
change ID for WallPlug in line 20 and 22 of code
time of polling can be adjust for your preferences as well
I allow code to be reuse or change. Also labels can be translated and adjust.