I have installed Domoticz on a raspberry pi just a few days ago.
I am using the Razberry pi Z-wave controller.
I added three devices in my system.
I created a room called 'test' like this:
The switches are working fine in Domoticz.
I installed Homebridge / homekit on my raspberry based o this:
https://www.domoticz.com/wiki/Homekit_Siri
When starting up homebridge I get this:
Code: Select all
pi@raspberrypi:~/.homebridge $ homebridge
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>
[1/5/2018, 11:05:51 AM] Loaded plugin: homebridge-edomoticz
[1/5/2018, 11:05:52 AM] Registering platform 'homebridge-edomoticz.eDomoticz'
[1/5/2018, 11:05:52 AM] ---
[1/5/2018, 11:05:52 AM] Loaded config.json with 0 accessories and 1 platforms.
[1/5/2018, 11:05:52 AM] ---
[1/5/2018, 11:05:52 AM] Loading 1 platforms...
[1/5/2018, 11:05:52 AM] [eDomoticz] Initializing eDomoticz platform...
[1/5/2018, 11:05:52 AM] Loading 0 accessories...
Setup Payload:
X-HM://0023ISYWYJ1K3
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
"QR code for scanning"
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 031-45-154 │
└────────────┘
[1/5/2018, 11:05:52 AM] Homebridge is running on port 51826.
[1/5/2018, 11:05:52 AM] [eDomoticz] There was a problem connecting to Domoticz. (HTTP Status code 401)
<html><head><title>Unauthorized</title></head><body><h1>401 Unauthorized</h1></body></html>
[1/5/2018, 11:05:52 AM] [eDomoticz] There was an error while getting the MQTT Hardware Device from Domoticz.
Please verify that you have added the MQTT Hardware Device and that the hardware device is enabled.
I cant see the devices in the Ipad 'home' app.
this is the config.json file:
Code: Select all
pi@raspberrypi:~/.homebridge $ cat config.json
{
"bridge": {
"name": "Homebridge",
"username": "CC:21:3E:E4:DE:34",
"port": 51826,
"pin": "031-45-154"
},
"description": "Configuration file for (e)xtended Domoticz platform.",
"platforms": [
{
"platform": "eDomoticz",
"name": "eDomoticz",
"server": "127.0.0.1",
"port": "8080",
"ssl": 0,
"roomid": "2",
"mqtt": 1
}
],
"accessories": []
}
Please help in what I am doing wrong.
I am stuck