PIGPIOD - loosing connection

Hi, i’m using a remote raspberry pi to manage press buttons for lights.
the method used is the documented remote RPi and ‘binary_sensor’ as the port entities.

binary_sensor.yaml:

  - platform: remote_rpi_gpio
    host: study.lightblast.zzz
    ports:
      5: study_port_5_29
      6: study_port_6_31
      7: study_port_7_26
...

and I’ve created an automation that watches the ports and turns the light on. Happy to report that all works fine … except the connection is lost at some point generally in the middle of the night. Rebooting the RPi does not help but restarting HA does.

Does anyone know what is going on here and/or how can I monitor and restart the connection without having to restart HA.

Thanks for any thoughts