If you only use Z-Wave the best way is ser2net / Socat from Main House to a Raspberry with an ZWave Stick in the Second House.