分页: 1 / 1

请叫大神homebridge问题

发表于 : 周日 4月 29, 2018 23:07
56618980
在群晖里建立了Domoticz和homebridge,目前Domoticz可是正常使用,但是homebridge运行后出现如下问题,并无法加HomeKit。
Reading package lists... Done
Building dependency tree
Reading state information... Done
libavahi-compat-libdnssd-dev is already the newest version (0.6.32-2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
+ homebridge-synology@0.3.0
updated 1 package in 18.294s
+ homebridge-edomoticz@2.1.11
updated 1 package in 24.612s
*** WARNING *** The program 'node' 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=libd
ns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not su
pported (or only supported partially) in the Apple Bonjour compatibility layer o
f Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libd
ns_sd&e=node&f=DNSServiceRegister>
[2018-4-29 14:58:46] Loaded plugin: homebridge-edomoticz
[2018-4-29 14:58:46] Registering platform 'homebridge-edomoticz.eDomoticz'
[2018-4-29 14:58:46] ---
[2018-4-29 14:58:49] Loaded plugin: homebridge-synology
[2018-4-29 14:58:49] Registering accessory 'homebridge-synology.Synology'
[2018-4-29 14:58:49] ---
[2018-4-29 14:58:49] Loaded config.json with 0 accessories and 1 platforms.
[2018-4-29 14:58:49] ---
[2018-4-29 14:58:49] Loading 1 platforms...
[2018-4-29 14:58:49] [eDomoticz] Initializing eDomoticz platform...
[2018-4-29 14:58:49] Loading 0 accessories...
Setup Payload:
X-HM://0023ISYXC496E
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:


























Or enter this code with your HomeKit app on your iOS device to pair with Homebri
dge:

┌────────────┐
│ 031-45-168 │
└────────────┘

[2018-4-29 14:58:49] Homebridge is running on port 51829.
[2018-4-29 14:58:49] [eDomoticz] Light
[2018-4-29 14:58:49] [eDomoticz] Could not register platform accessory! (门厅灯)
Error: Cannot add a bridged Accessory with the same UUID as another bridged Acce
ssory: 4e899f4d-0b93-4ed0-b334-e18f38303c2c
上面是终端运行结果。
{
"bridge": {
"name": "Homebridge",
"username": "CC:21:3D:E3:CD:33",
"port": 51829,
"pin": "031-45-168"
},
"description": "Configuration file for (e)xtended Domoticz platform.",
"platforms": [
{
"platform": "eDomoticz",
"name": "eDomoticz",
"server": "127.0.0.1",
"port": "8084",
"ssl": 0,
"roomid": 2,
"mqtt": 0
}
],
"accessories": []
}
这个是我config.json的代码
#!/bin/bash
apt-get install libavahi-compat-libdnssd-dev
npm install -g --unsafe-perm homebridge-synology
npm install -g --unsafe-perm homebridge-edomoticz
这个是install.sh的代码。
那位大神帮我解决下问题!

Re: 请叫大神homebridge问题

发表于 : 周一 4月 30, 2018 13:59
blindlight
很明显写着uuid重复了
你应该是有设备名字命名重复

Re: 请叫大神homebridge问题

发表于 : 周二 5月 01, 2018 00:28
56618980
我看了下Domoticz里面没有设备重名的,照晚上修改了下install.sh,运行后是如下:并在Domoticz里设置了本地网无需密码,仍然不好连上homekit。
Reading package lists... Done
Building dependency tree
Reading state information... Done
libavahi-compat-libdnssd-dev is already the newest version (0.6.32-2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
g++ is already the newest version (4:6.3.0-4).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
/usr/local/bin/homebridge -> /usr/local/lib/node_modules/homebridge/bin/homebrid
ge
+ homebridge@0.4.38
updated 1 package in 12.155s
+ homebridge-edomoticz@2.1.11
updated 1 package in 35.33s
*** WARNING *** The program 'node' 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=libd
ns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not su
pported (or only supported partially) in the Apple Bonjour compatibility layer o
f Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libd
ns_sd&e=node&f=DNSServiceRegister>
[2018-4-30 16:22:01] Loaded plugin: homebridge-edomoticz
[2018-4-30 16:22:01] Registering platform 'homebridge-edomoticz.eDomoticz'
[2018-4-30 16:22:01] ---
[2018-4-30 16:22:05] Loaded plugin: homebridge-synology
[2018-4-30 16:22:05] Registering accessory 'homebridge-synology.Synology'
[2018-4-30 16:22:05] ---
[2018-4-30 16:22:05] Loaded config.json with 0 accessories and 1 platforms.
[2018-4-30 16:22:05] ---
[2018-4-30 16:22:05] Loading 1 platforms...
[2018-4-30 16:22:05] [eDomoticz] Initializing eDomoticz platform...
[2018-4-30 16:22:05] Loading 0 accessories...
Setup Payload:
X-HM://0023ISYXC496E
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
Or enter this code with your HomeKit app on your iOS device to pair with Homebri
dge:

┌────────────┐
│ 031-45-168 │
└────────────┘

[2018-4-30 16:22:06] Homebridge is running on port 51829.
上面几个警告没有搞懂什么意思,
下面是install.sh代码:
#!/bin/bash
apt-get install libavahi-compat-libdnssd-dev
apt-get install build-essential g++
npm install -g --unsafe-perm homebridge
npm install -g --unsafe-perm homebridge-edomoticz
请大神再帮我看看!

Re: 请叫大神homebridge问题

发表于 : 周一 5月 21, 2018 09:30
kissxyqmuma
你这情况跟我是一模一样呀,完全不知道什么问题Homekit搜不到,已经好几天了,不知道是不是homebridge的问题。我也是在群辉上运行什么的都没问题就是搜不到

Re: 请叫大神homebridge问题

发表于 : 周一 5月 21, 2018 13:57
56618980
我已经解决问题了,但也是迷迷糊糊的。就是全部复制代码里面所有的数据都不改变,后来就好了,具体是哪个不能改,还没有测试。

Re: 请叫大神homebridge问题

发表于 : 周四 5月 24, 2018 20:20
kissxyqmuma
你好,能不能分享一下你用的 教程什么的,我在网上几乎找遍了,就是不行,。

Re: 请叫大神homebridge问题

发表于 : 周二 5月 29, 2018 20:13
56618980
我是在英文wiki中找到教程的,下面是我的用得代码希望对你有所帮助
{
"bridge": {
"name": "Homebridge",
"username": "CC:21:3E:E4:DE:33",
"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": "8084",
"ssl": 0,
"roomid": 2,
"mqtt": 0,
"excludedDevices": []
}
],
"accessories": []
}


#!/bin/bash
apt-get install libavahi-compat-libdnssd-dev
apt-get install build-essential g++
npm install -g --unsafe-perm homebridge
npm install -g --unsafe-perm homebridge-edomoticz

Re: 请叫大神homebridge问题

发表于 : 周六 12月 22, 2018 21:29
请教homebridge
前提:在ubantu虚拟机中,电脑和iphone连接同一个wifi。
请教homebridge-edomoticz!!!modoticz一切正常。 运行homebridge后 出现下面的代码 有二维码,但是只显示了两个设备(我domoticz设备有3个)。iphone手机homekit可以发现这个设备,但是手机连接显示:无法匹配!!请问大神怎么解决
[12/22/2018, 9:19:24 PM] Loaded config.json with 0 accessories and 1 platforms.
[12/22/2018, 9:19:24 PM] ---
[12/22/2018, 9:19:26 PM] Loaded plugin: homebridge-edomoticz
[12/22/2018, 9:19:26 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[12/22/2018, 9:19:26 PM] ---
[12/22/2018, 9:19:26 PM] Loading 1 platforms...
[12/22/2018, 9:19:26 PM] [eDomoticz] Initializing eDomoticz platform...
[12/22/2018, 9:19:26 PM] Loading 0 accessories...
Setup Payload:
X-HM://0023ISYWZK9EN
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:


























Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐
│ 031-45-155 │
└────────────┘

[12/22/2018, 9:19:26 PM] Homebridge is running on port 51826.
[12/22/2018, 9:19:26 PM] [eDomoticz] Light
[12/22/2018, 9:19:26 PM] [eDomoticz] 温度1
[12/22/2018, 9:19:26 PM] [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.