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.
Accept the end-user license agreement and click next.
Choose your destination folder, we use the default one and click next.
Use default installation and click next.
We use the default settings click next.
Click install.
Click finish.
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
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"
}
]
}
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.
Now click Safe (We use a Dutch version).
Now click config on the top of the page and replace complete config and click safe.
{
"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.
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: