Now we install Homebridge for Windows to control IOT devices with your Apple device who are programmed in Domoticz. 

Run Windows and Node.js command prompt as administrator.

First download Node.js LTS version.

https://nodejs.org/en/

 Start the setup.

node-vxx.x.x-x64

 Click next.

 Node.js first setup Screen

Accept the end-user license agreement and click next.

Node.js Setup end-user license agreement

Choose your destination folder, we use the default one and click next.

Node.js select destination folder

 Use default installation and click next.

Node.js Custom setup option

We use the default settings click next.

Node.js Tools and Modules

Click install.

Node.js install select

Click finish.

Node.js Completed

Node.js is installed.

Now we install homebridge. Open Windows command (don't use Powershell) prompt and execute this command and hit enter.

npm install -g homebridge



Now we install a web-based Gui interface. Execute this command in Node.js command prompt.

npm install -g --unsafe-perm homebridge-config-ui-x

 Now we must stop Domoticz service because it's running on port 8080 and Homebridge web-gui starts on port 8080 also.

Open Windows command prompt and execute:

net stop domoticz

 Now we install Homebridge as service. Open Node.js command prompt and execute:

hb-service install

Now you can open the Homebridge webinterface in our case: 192.168.2.100:8080, if you see the offline page from Domoticz refresh the internet page.

Login:

Username: admin
Password: admin

http://192.168.2.100:8080

Homebridge webinterface QR-code

Because Domoticz an Homebridge are running on the same port, we chance the port from our Homebridge server.

Now click config on the top of the web-interface:

 

 Now change port 8080 to 8081 and click safe, you see in the picture "Opslaan" because we use a Dutch version.

{
    "bridge": {
        "name": "Homebridge",
        "username": "0E:C1:96:6B:8B:9F",
        "port": 51107,
        "pin": "454-65-986"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8081,
            "platform": "config"
        }
    ]
}



Change port homebridge

Close your browser and restart the Homebridge service, open Windows command prompt and execute:

net stop homebridge
net start homebridge

Now the homebridge is running on port 8081, now start Domoticz.

net start domoticz

Now open your browser and open the Homebridge web interface, in our case ip 192.168.2.100 port 8081.

login:

User: admin
Password: admin

http://192.168.2.100:8081

 Now click plugins on the top of the page.

 Now type in the search bar: Edomoticz (hit enter) and install Homebridge eDomoticz Ui X.

Homebridge Edomoticz installation

Now click Safe (We use a Dutch version).

Homebridge Save

Now click config on the top of the page and replace complete config and click safe.

Homebridge Edomoticz config.json file

{
    "bridge": {
        "name": "Homebridge",
        "username": "0E:C1:96:6B:8B:9F",
        "port": 51107,
        "pin": "454-65-986"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8081,
            "platform": "config"
        },
        {
            "name": "Domoticz",
            "server": "127.0.0.1",
            "port": 8080,
            "roomid": 0,
            "mqtt": true,
            "ssl": false,
            "mqttauth": true,
            "mqqtuser": "client",
            "mqttpass": "test",
            "debuglog": false,
            "dimfix": 0,
            "platform": "eDomoticz-ui-x"
        }
    ]
}

 Now restart the Homebridge, click the ON/OFF button at the right top of the page.

Homebridge restart

Now open port in this case TCP port 51107 inbound and Outbound in your firewall and TCP port 8081 inbound.

Homebridge is ready to use.

Complete video tutorial: