I know GoodWe very well and the WiFi module is not great. Instead of restarting the inverter or push the button on the stick I restart the cAP Lite that I use only for the inverter. And the network cable goes to a switch (POE).
I read the the status of the inverter through Node Red and if no response is received it will restart the cAP Lite.
Underneath the log and you see the restart for "Router one" at 18h56
13-09 15:53 NegProdu Inverter was force to waiting mode and if dusk, then also MPPT-OFF: PVMPPToff and Counter: 0
13-09 16:19 NegProdu Giveway reset from 0: PV
13-09 17:19 NegProdu Giveway reset from 1: PV
13-09 18:28 Volt+35V Inverter started MPPT to lower voltage: PV
13-09 18:34 PVstatus Allow control: enabled (PV).
13-09 18:49 NegProdu Giveway reset from 0: PV
13-09 18:56 PVstatus Router one was rebooted because of time-outs
13-09 19:19 NegProdu Giveway reset from -1: PV
13-09 19:23 PVstatus Inverter was (auto) forced to reconnected to the Grid
13-09 19:23 PVstatus Inverter was (auto) forced to reconnected to the Grid
13-09 19:23 PVstatus Inverter was (auto) forced to reconnected to the Grid
13-09 19:23 PVstatus Inverter was forced to waiting mode
13-09 19:24 PVstatus Inverter has connected to the Grid