you can build more than 1 gateway for that, but rather than mqtt. I think it's better to use ethernet or serial gateway because mqtt gateway has lot of problem, I tried it for months. You can forward mqtt from fhem to mosquito.
Best posts made by rachmat aditiya27
-
RE: OpenHAB/MQTT Tips & Hints