cellcortex / homebridge-yeelighter

Homebridge plugin for Yeelights - special focus on supporting features of ceiling lights
MIT License
98 stars 19 forks source link

Yeelighter error for ceiling14 #122

Closed tangone2 closed 1 year ago

tangone2 commented 1 year ago

Hi, I have yeelight ceiling14 and I installed the Yeelighter plugin to connect to it in homebridge but encountered error below: [Yeelighter] ingoring device with corrupt DeviceInfo { location: 'yeelight://undefined', id: undefined, model: undefined, support: undefined, power: false, bright: 0, color_mode: -1, ct: 0, rgb: 'string', hue: 0, sat: 0, host: 'string', port: 0, debug: false, trackedAttributes: [], fw_ver: '0,0.0', name: 'string' } Appreciate any suggestion how to solve this issue. Thanks.

cellcortex commented 1 year ago

Looks like you have manually configured a device in the config. Removing that should solve this.

tangone2 commented 1 year ago

below is the default settings from the config, is it not correct? how should I change it?

{ "name": "Yeelighter", "timeout": 5000, "interval": 60000, "ctforcolor": true, "blocking": false, "split": true, "manual": [ { "ignorePower": false } ], "platform": "Yeelighter" },

tangone2 commented 1 year ago

and the error:

E0AF0E94-23DE-4A6E-A61A-4397A5132817

Idomo commented 1 year ago

It looking at each object in the "manual" array as a device, since you've created a "device" with only "ignorePower" parameter, it says that the data of this device is corrupted (missing "id" and "address" that are required).

Just remove { "ignorePower": false } from the "manual" array.

Update: It seems like disabling and re-enabling of the LAN Control in the Yeelight app has been the solution for the discovery issues. *Remove any manual configurations from the JSON file before then.