To start your Home Automation project you need a Domoticz server. A MQTT broker server that receives all messages from the clients and then routes the messages to the appropriate destination clients.
Step 1, setup a Domoticz server: Domoticz Installation Windows
Step 2, setup a Eclipse Mosquito MQTT Broker: MQTT Broker Windows installation
Step 3, Connect Domoticz to the MQTT Broker: Connect Domoticz to a Mqtt Broker
Step 4, setup Homebridge and eDomoticz: How to setup Homebridge for Windows
Step 5, Create virtual switch in Domoticz: Create Virtual Switch in Domoticz