viestursr / homebridge-xiaomi-yeelight

MIT License
4 stars 3 forks source link

support for xiaomi colorb #6

Open tndos414 opened 1 year ago

tndos414 commented 1 year ago

Describe Your Problem: Finally, connecting the bulb in the Apple Home but, it cannot control.

Logs:TypeError: this.connection.brightness is not a function at Light.getBrightness (/Users/.nvm/versions/node/v15.5.0/lib/node_modules/homebridge-xiaomi-yeelight/src/platformAccessory.ts:113:48) at Brightness. (/Users/.nvm/versions/node/v15.5.0/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2399:32) at step (/Users/.nvm/versions/node/v15.5.0/lib/node_modules/homebridge/node_modules/tslib/tslib.js:144:27) at Object.next (/Users/.nvm/versions/node/v15.5.0/lib/node_modules/homebridge/node_modules/tslib/tslib.js:125:57) at /Users/.nvm/versions/node/v15.5.0/lib/node_modules/homebridge/node_modules/tslib/tslib.js:118:75 at new Promise () at Object.__awaiter (/Users/soo/.nvm/versions/node/v15.5.0/lib/node_modules/homebridge/node_modules/tslib/tslib.js:114:16) at Brightness.Characteristic.handleGetRequest (/Users/.nvm/versions/node/v15.5.0/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:736:24) at Bridge. (/Users/.nvm/versions/node/v15.5.0/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1654:27) at step (/Users/.nvm/versions/node/v15.5.0/lib/node_modules/homebridge/node_modules/tslib/tslib.js:144:27)

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment: