Multiple Pi on Single Instance

Hi,

I am very new to IoT and developing a building automation system.

I have two buildings and have multiple floors in each building. Each floor contains multiple rooms and each room contains multiple devices at different locations.
Each location in room is connected to a Raspberry Pi.

  1. Building 1
    ___-Floor 1.1
    _____*Room 1.1.1
    _______.Pi 1.1.1.1
    _________switch Device 1 on Pin 18
    _________switch Device 2 on Pin 11
    _________dimmer on Pin 04
    _______.Pi 1.1.1.2
    _________temperature Sensor on Pin 04
    _________switch Device 1 on Pin 18
    _____*Room 1.1.2
    _______.Pi 1.1.2.1
    _________switch Device 1 on Pin 18
    _________switch Device 2 on Pin 11
    _________dimmer on Pin 04
    _____*Room 1.1.3
    _______.Pi 1.1.3.1
    _________stepper Motor on Pin 04
    _________switch Device 1 on Pin 18
    ___-Floor 1.2
    _____*Room 1.2.1
    _______.Pi 1.2.1.1
    _________device 1 on Pin 18
    _________device 2 on Pin 11
    _________dimmer on Pin 04
    _______.Pi 1.2.1.2
    _________temperature Sensor on Pin 04
    _________device 1 on Pin 18
    _____*Room 1.2.2
    _______.Pi 1.2.2.1
    _________device 1 on Pin 18
    _________device 2 on Pin 11
    _________dimmer on Pin 04
  2. Building 2
    ___-Floor 2.1
    _____*Room 2.1.1
    _______.Pi 2.1.1.1
    _________switch Device 1 on Pin 18
    _________switch Device 2 on Pin 11
    _________dimmer on Pin 04
    _______.Pi 2.1.1.2
    _________temperature Sensor on Pin 04
    _________switch Device 1 on Pin 18
    _____*Room 2.1.2
    _______.Pi 2.1.2.1
    _________switch Device 1 on Pin 18
    _________switch Device 2 on Pin 11
    _________dimmer on Pin 04
    _____*Room 2.1.3
    _______.Pi 2.1.3.1
    _________stepper Motor on Pin 04
    _________switch Device 1 on Pin 18
    ___-Floor 2.2
    _____*Room 2.2.1
    _______.Pi 2.2.1.1
    _________device 1 on Pin 18
    _________device 2 on Pin 11
    _________dimmer on Pin 04
    _______.Pi 2.2.1.2
    _________temperature Sensor on Pin 04
    _________device 1 on Pin 18
    _____*Room 2.2.2
    _______.Pi 2.2.2.1
    _________device 1 on Pin 18
    _________device 2 on Pin 11
    _________dimmer on Pin 04

I need to develop a control center fro where I can control all the pins of all Raspberry Pi and get status dashboard for all devices at once.
I explored and got some idea that this can be done using MQTT.
Please guide me to any tutorial where I can implement MQTT in OpenHAB2 and create a structure like above.

Is there any way I can install OpenHAB2 Server in one machine (Windows) and then connect all Raspberry Pi to them (means controlling pins of all Raspberry Pi’s)?

Thank you,
Ashish Sharma

Same requirement as this recent thread, essentially

Thank you!!
I have read the thread and found few example from google.

I try to implement the solution in couple of weeks and see if that works.