请叫大神homebridge问题

讨论使用Domoticz过程中遇到的问题。
版面规则
讨论使用Domoticz过程中遇到的问题。
有问题请说明详细情况,有图的截图!
别只说一句安装不上,执行不了!
截图请截大图,别就截一行。。。
回复
56618980
帖子: 9
注册时间: 周日 4月 29, 2018 22:55

请叫大神homebridge问题

帖子 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的代码。
那位大神帮我解决下问题!
blindlight
帖子: 98
注册时间: 周四 3月 30, 2017 00:03

Re: 请叫大神homebridge问题

帖子 blindlight »

很明显写着uuid重复了
你应该是有设备名字命名重复
56618980
帖子: 9
注册时间: 周日 4月 29, 2018 22:55

Re: 请叫大神homebridge问题

帖子 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
请大神再帮我看看!
kissxyqmuma
帖子: 8
注册时间: 周二 11月 07, 2017 00:43

Re: 请叫大神homebridge问题

帖子 kissxyqmuma »

你这情况跟我是一模一样呀,完全不知道什么问题Homekit搜不到,已经好几天了,不知道是不是homebridge的问题。我也是在群辉上运行什么的都没问题就是搜不到
56618980
帖子: 9
注册时间: 周日 4月 29, 2018 22:55

Re: 请叫大神homebridge问题

帖子 56618980 »

我已经解决问题了,但也是迷迷糊糊的。就是全部复制代码里面所有的数据都不改变,后来就好了,具体是哪个不能改,还没有测试。
kissxyqmuma
帖子: 8
注册时间: 周二 11月 07, 2017 00:43

Re: 请叫大神homebridge问题

帖子 kissxyqmuma »

你好,能不能分享一下你用的 教程什么的,我在网上几乎找遍了,就是不行,。
56618980
帖子: 9
注册时间: 周日 4月 29, 2018 22:55

Re: 请叫大神homebridge问题

帖子 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
请教homebridge
帖子: 1
注册时间: 周六 12月 22, 2018 20:56

Re: 请叫大神homebridge问题

帖子 请教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.
回复