Hass-victron modbus integration losing connection

Running the hass-victron modbus integration from @sfstar and seem to be having increasing loss-of-connection.

Have just added the reconnecting automation that someone posted here and hoping that will resolve it; but thought I’d see if there are other / better solutions.

I suspect sometimes it’s related to rebooting the Cerbo GX or loss of internet (it’s in an RV); but it sure would be ideal if there’s a way to reconnect more reliably.