本帖最后由 ptlzx 于 2017-12-6 09:38 编辑
设备群晖、小米网关、Yeelight灯泡,帮忙看看问题出在哪?
config.json
{ "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:56", "port": 56688, "pin": "666-55-999" }, "platforms": [ { "platform": "AqaraPlatform", "sid": [ "7831DCA57FBE" ], "password": [ "no3zhxih0532bbcx" }, { "platform": "yeelight", "name": "Yeelight" } ], "accessories": [ { "accessory": "Synology", "name": "Synology_NAS", "ip": "192.168.1.55", "mac": "00:11:35:70:6F:68", "port": "5000", "secure": false, "account": "ptlzx", "password": "1234567890", "version": 6 } }
install.sh #!/bin/bash
apt-get install libavahi-compat-libdnssd-dev
npm install -g homebridge-aqara
npm install -g homebridge-yeelight
npm install -g homebridge-synology
.
.
.
.
.
.
===========================================
错误日志:
=========================================== failed to load BLE module! | [2017-12-5 12:37:34] Loaded plugin: homebridge-yeelight | [2017-12-5 12:37:34] Registering platform 'homebridge-yeelight.yeelight' | [2017-12-5 12:37:34] --- | [2017-12-5 12:37:34] Loaded config.json with 1 accessories and 2 platforms. | [2017-12-5 12:37:34] --- | [2017-12-5 12:37:34] Loading 2 platforms... | [2017-12-5 12:37:34] Initializing AqaraPlatform platform... | [2017-12-5 12:37:34] [Yeelight] Initializing yeelight platform... | [2017-12-5 12:37:34] [Yeelight] YeePlatform Init | [2017-12-5 12:37:34] Loading 1 accessories... | [2017-12-5 12:37:34] [Synology_NAS] Initializing Synology accessory... | [2017-12-5 12:37:34] [Synology_NAS] s | Scan this code with your HomeKit App on your iOS device to pair with Homebridge: |
| ┌────────────┐ | │ 666-55-999 │ | └────────────┘ |
| [2017-12-5 12:37:34] [Yeelight] DidFinishLaunching | no ble cap, skip ble device discovery | [2017-12-5 12:37:34] Homebridge is running on port 56688. | add to multicast group | listen on 0.0.0.0 | no did or loc found! | [2017-12-5 12:37:34] [Yeelight] found dev: 71df3f | already in device list! | connect ok! | [2017-12-5 12:37:34] [Yeelight] accesseory reachable | [2017-12-5 12:37:34] [Yeelight] dev connected 0x000000000371df3f true | send hb to: 0x000000000371df3f | {"id":-1,"method":"get_prop","params":["power"]} | send hb to: 0x000000000371df3f | {"id":-1,"method":"get_prop","params":["power"]} | send hb to: 0x000000000371df3f | {"id":-1,"method":"get_prop","params":["power"]} | send hb to: 0x000000000371df3f | {"id":-1,"method":"get_prop","params":["power"]} | send hb to: 0x000000000371df3f | {"id":-1,"method":"get_prop","params":["power"]}
……
|
{"id":-1,"method":"get_prop","params":["power"]} | already in device list! | already in device list! | already in device list! | send hb to: 0x000000000371df3f | {"id":-1,"method":"get_prop","params":["power"]} | send hb to: 0x000000000371df3f | {"id":-1,"method":"get_prop","params":["power"]} | send hb to: 0x000000000371df3f |
……
{"id":-1,"method":"get_prop","params":["power"]} /usr/local/lib/node_modules/homebridge-aqara/lib/AqaraAccessoryFactory.js:75 var gatewaySid = this.gatewaySids[accessory.UUID]; ^
TypeError: Cannot read property 'UUID' of undefined at AqaraAccessoryFactory.autoRemoveAccessory (/usr/local/lib/node_modules/homebridge-aqara/lib/AqaraAccessoryFactory.js:75:48) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-aqara/lib/AqaraPlatform.js:103:15) at ontimeout (timers.js:469:11) at tryOnTimeout (timers.js:304:5)
at Timer.listOnTimeout (timers.js:264:5)
|