OpenHab 3.1 and remote GPIO on the same Raspberry Pi

You could try MQTTany instead. It can be used on the same Pi and/or remote ones and communicates over MQTT with OH.