vvpossible / homebridge_yeelight

Yeelight plugin for homebridge
303 stars 59 forks source link

Configuration and Device Support Improvements #79

Open theaudience opened 4 years ago

theaudience commented 4 years ago
netRunner0 commented 4 years ago

@bsteimer [yeelight] no ble cap, skip ble device discovery

bsteimer commented 4 years ago

@bsteimer [yeelight] no ble cap, skip ble device discovery

@netRunner0 looks like a problem with your noble installation

netRunner0 commented 4 years ago

@bsteimer [yeelight] no ble cap, skip ble device discovery

@netRunner0 looks like a problem with your noble installation

I moved the folder "noble" to /usr/lib/node_modules/homebridge_yeelight/node_modules

However, the lamps are not located (I reset them):

[3/1/2020, 3:48:51 PM] [yeelight] stop this round of scan [3/1/2020, 3:48:59 PM] [yeelight] start new round of scan [3/1/2020, 3:49:07 PM] [yeelight] stop this round of scan [3/1/2020, 3:49:15 PM] [yeelight] start new round of scan [3/1/2020, 3:49:23 PM] [yeelight] stop this round of scan [3/1/2020, 3:49:31 PM] [yeelight] start new round of scan [3/1/2020, 3:49:39 PM] [yeelight] stop this round of scan [3/1/2020, 3:49:47 PM] [yeelight] start new round of scan [3/1/2020, 3:49:55 PM] [yeelight] stop this round of scan [3/1/2020, 3:50:03 PM] [yeelight] start new round of scan [3/1/2020, 3:50:11 PM] [yeelight] stop this round of scan [3/1/2020, 3:50:19 PM] [yeelight] start new round of scan [3/1/2020, 3:50:27 PM] [yeelight] stop this round of scan [3/1/2020, 3:50:35 PM] [yeelight] start new round of scan

bsteimer commented 4 years ago

@bsteimer [yeelight] no ble cap, skip ble device discovery

@netRunner0 looks like a problem with your noble installation

I moved the folder "noble" to /usr/lib/node_modules/homebridge_yeelight/node_modules

However, the lamps are not located (I reset them):

[3/1/2020, 3:48:51 PM] [yeelight] stop this round of scan [3/1/2020, 3:48:59 PM] [yeelight] start new round of scan [3/1/2020, 3:49:07 PM] [yeelight] stop this round of scan [3/1/2020, 3:49:15 PM] [yeelight] start new round of scan [3/1/2020, 3:49:23 PM] [yeelight] stop this round of scan [3/1/2020, 3:49:31 PM] [yeelight] start new round of scan [3/1/2020, 3:49:39 PM] [yeelight] stop this round of scan [3/1/2020, 3:49:47 PM] [yeelight] start new round of scan [3/1/2020, 3:49:55 PM] [yeelight] stop this round of scan [3/1/2020, 3:50:03 PM] [yeelight] start new round of scan [3/1/2020, 3:50:11 PM] [yeelight] stop this round of scan [3/1/2020, 3:50:19 PM] [yeelight] start new round of scan [3/1/2020, 3:50:27 PM] [yeelight] stop this round of scan [3/1/2020, 3:50:35 PM] [yeelight] start new round of scan

@theaudience experienced that his Candelas announce a different name than mine do. He'll probably fix that soon. That's eventually the reason why your candelas are not recognized yet.

netRunner0 commented 4 years ago

yeelight_ms

lamp name when searching

I m replace "candela" to "yeelight_ms" and:

netRunner0 commented 4 years ago

Not managed via homekit, although they appeared there

[3/1/2020, 8:53:36 PM] [yeelight] no did or loc found! [3/1/2020, 8:53:37 PM] [yeelight] found Yeelight Bedside lamp: f8:24:41:c1:30:7a [3/1/2020, 8:53:37 PM] [yeelight] found dev: :30:7a [3/1/2020, 8:53:37 PM] [yeelight] connect ok: f8:24:41:c1:30:7a [3/1/2020, 8:53:44 PM] [yeelight] stop this round of scan [3/1/2020, 8:53:47 PM] [yeelight] stop discovering [3/1/2020, 8:53:47 PM] [MiAqaraPlatform] [INFO]MiAqara Manage server is listening on port: 11128 [3/1/2020, 8:53:50 PM] [InstancesPlatform] [INFO] Homebridge Instances: homebridge-hue [0.11.42] - New version available [0.11.57] [3/1/2020, 8:53:50 PM] [InstancesPlatform] [INFO] Homebridge Instances: homebridge-lib [4.4.2] - New version available [4.5.3] [3/1/2020, 8:53:52 PM] [yeelight] start new round of scan [3/1/2020, 8:53:52 PM] [InstancesPlatform] [INFO] Homebridge Instances: homebridge-mqttthing [1.0.48] - New version available [1.0.50] [3/1/2020, 8:53:53 PM] [yeelight] found Yeelight Bedside lamp: f8:24:41:c1:bc:4b [3/1/2020, 8:53:53 PM] [yeelight] found dev: :bc:4b [3/1/2020, 8:53:53 PM] [yeelight] found Yeelight Bedside lamp: f8:24:41:c1:30:7a [3/1/2020, 8:53:53 PM] [yeelight] already in device list: f8:24:41:c1:30:7a [3/1/2020, 8:53:54 PM] [yeelight] connect ok: f8:24:41:c1:bc:4b [3/1/2020, 8:53:55 PM] [yeelight] connect ok: f8:24:41:c1:30:7a [3/1/2020, 8:53:56 PM] [InstancesPlatform] [INFO] Homebridge Instances: homebridge-xiaomi-roborock-vacuum [0.6.8] - New version available [0.7.2] [3/1/2020, 8:53:56 PM] [InstancesPlatform] [INFO] Homebridge Instances: New Updates available! Click "Update Plugins" to update the plugins! [3/1/2020, 8:53:57 PM] [InstancesPlatform] [INFO] Homebridge Instances: Successfully send Telegram notification [3/1/2020, 8:54:00 PM] [yeelight] stop this round of scan [3/1/2020, 8:54:03 PM] [yeelight] stop discovering [3/1/2020, 8:54:03 PM] [yeelight] stop discovering [3/1/2020, 8:54:08 PM] [yeelight] start new round of scan [3/1/2020, 8:54:09 PM] [yeelight] found Yeelight Bedside lamp: f8:24:41:c1:30:7a [3/1/2020, 8:54:09 PM] [yeelight] already in device list: f8:24:41:c1:30:7a [3/1/2020, 8:54:10 PM] [yeelight] connect ok: f8:24:41:c1:30:7a [3/1/2020, 8:54:16 PM] [yeelight] stop this round of scan [3/1/2020, 8:54:19 PM] [yeelight] stop discovering [3/1/2020, 8:54:19 PM] [yeelight] found Yeelight Bedside lamp: f8:24:41:c1:bc:4b [3/1/2020, 8:54:19 PM] [yeelight] already in device list: f8:24:41:c1:bc:4b [3/1/2020, 8:54:20 PM] [yeelight] connect ok: f8:24:41:c1:bc:4b [3/1/2020, 8:54:24 PM] [yeelight] start new round of scan [3/1/2020, 8:54:25 PM] [yeelight] found Yeelight Bedside lamp: f8:24:41:c1:30:7a [3/1/2020, 8:54:25 PM] [yeelight] already in device list: f8:24:41:c1:30:7a [3/1/2020, 8:54:25 PM] [yeelight] connect ok: f8:24:41:c1:30:7a [3/1/2020, 8:54:28 PM] [yeelight] found Yeelight Bedside lamp: f8:24:41:c1:bc:4b [3/1/2020, 8:54:28 PM] [yeelight] already in device list: f8:24:41:c1:bc:4b [3/1/2020, 8:54:28 PM] [yeelight] still discovering [3/1/2020, 8:54:30 PM] [yeelight] stop discovering [3/1/2020, 8:54:32 PM] [yeelight] stop this round of scan [3/1/2020, 8:54:35 PM] [yeelight] stop discovering [3/1/2020, 8:54:40 PM] [yeelight] start new round of scan [3/1/2020, 8:54:48 PM] [yeelight] stop this round of scan [3/1/2020, 8:54:56 PM] [yeelight] start new round of scan [3/1/2020, 8:54:57 PM] [yeelight] found Yeelight Bedside lamp: f8:24:41:c1:30:7a [3/1/2020, 8:54:57 PM] [yeelight] already in device list: f8:24:41:c1:30:7a [3/1/2020, 8:54:57 PM] [yeelight] connect ok: f8:24:41:c1:30:7a noble warning: unknown peripheral f82441c1307a noble warning: unknown peripheral c47c8d6a66f4 [3/1/2020, 8:55:04 PM] [yeelight] stop this round of scan [3/1/2020, 8:55:07 PM] [yeelight] stop discovering [3/1/2020, 8:55:07 PM] [yeelight] found Yeelight Bedside lamp: f8:24:41:c1:bc:4b [3/1/2020, 8:55:07 PM] [yeelight] already in device list: f8:24:41:c1:bc:4b [3/1/2020, 8:55:07 PM] [yeelight] connect ok: f8:24:41:c1:bc:4b noble warning: unknown peripheral f82441c1bc4b noble warning: unknown peripheral c47c8d62b517 noble: unknown peripheral null connected! noble warning: unknown peripheral c47c8d636f7e [3/1/2020, 8:55:12 PM] [yeelight] start new round of scan [3/1/2020, 8:55:13 PM] [yeelight] found Yeelight Bedside lamp: f8:24:41:c1:30:7a [3/1/2020, 8:55:13 PM] [yeelight] already in device list: f8:24:41:c1:30:7a [3/1/2020, 8:55:13 PM] [yeelight] connect ok: f8:24:41:c1:30:7a [3/1/2020, 8:55:13 PM] [yeelight] discovered services [3/1/2020, 8:55:13 PM] TypeError: Cannot read property 'discoverCharacteristics' of undefined at /usr/lib/node_modules/homebridge-yeelight/lib/yee.js:543:50 at Peripheral. (/usr/lib/node_modules/homebridge-yeelight/node_modules/noble/lib/peripheral.js:73:7) at Object.onceWrapper (events.js:277:13) at Peripheral.emit (events.js:194:15) at Noble.onServicesDiscover (/usr/lib/node_modules/homebridge-yeelight/node_modules/noble/lib/noble.js:251:16) at NobleBindings.emit (events.js:189:13) at NobleBindings.onServicesDiscovered (/usr/lib/node_modules/homebridge-yeelight/node_modules/noble/lib/hci-socket/bindings.js:305:8) at Gatt.emit (events.js:189:13) at Gatt. (/usr/lib/node_modules/homebridge-yeelight/node_modules/noble/lib/hci-socket/gatt.js:361:12) at Gatt.onAclStreamData (/usr/lib/node_modules/homebridge-yeelight/node_modules/noble/lib/hci-socket/gatt.js:132:26) [3/1/2020, 8:55:13 PM] Got SIGTERM, shutting down Homebridge...

(node:22251) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 servicesDiscover listeners added. Use emitter.setMaxListeners() to increase limit

Vannixxo commented 3 years ago

Hi! Is there an update on the Candela support? How to make it work with this plugin? Is the latest version published supporting them?

stevenjoezhang commented 3 years ago

I encountered the same problem (noble warning: unknown peripheral) This problem seems to be caused by the authentication failure, the Candela lamp will disconnect after about 30 seconds. I tried to send the auth code immediately after the connection is established, and the problem is solved.