vvpossible / homebridge_yeelight

Yeelight plugin for homebridge
303 stars 59 forks source link

Mi LED Desk Lamp 1 Controller Bug(小米台灯一代控制bug) #84

Closed We1eVen closed 3 years ago

We1eVen commented 3 years ago

Thanks for disigning this plug for Mi devices. Today I used it for Mi LED Desk Lamp 1 and I found a bug when sliding the brightness controller in Homekit(家庭).When I slide the brightness controller to bottommost(it means turn off the lamp), someting happend. The lamp wasn't turned off and the phone screen shows a "No response" shows on the device icon,and errors show in the homebridge cmd. Here are the results. Sorry for my poor English. [1/11/2021, 4:50:08 PM] [Yeelighter] [0x0000000004434778] set brightness [ 100 ] [1/11/2021, 4:52:13 PM] [Yeelighter] [0x0000000004434778] set brightness [ 86 ] [1/11/2021, 4:52:14 PM] [Yeelighter] [0x0000000004434778] set brightness [ 75 ] [1/11/2021, 4:52:14 PM] [Yeelighter] [0x0000000004434778] set brightness [ 62 ] [1/11/2021, 4:52:14 PM] [Yeelighter] [0x0000000004434778] set brightness [ 51 ] [1/11/2021, 4:52:15 PM] [Yeelighter] [0x0000000004434778] set brightness [ 42 ] [1/11/2021, 4:52:15 PM] [Yeelighter] [0x0000000004434778] set brightness [ 33 ] [1/11/2021, 4:52:15 PM] [Yeelighter] [0x0000000004434778] set brightness [ 23 ] [1/11/2021, 4:52:15 PM] [Yeelighter] [0x0000000004434778] set brightness [ 14 ] [1/11/2021, 4:52:16 PM] [Yeelighter] [0x0000000004434778] set brightness [ 6 ] [1/11/2021, 4:52:16 PM] [Yeelighter] [0x0000000004434778] set brightness [ 0 ] [1/11/2021, 4:52:16 PM] [Yeelighter] [0x0000000004434778] Error returned for request [105]: {"code":-5001,"message":"invalid params"} [] (node:628) UnhandledPromiseRejectionWarning: #<Object> (node:628) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 22)

and screen recording video is proviced.

My words in Chinese:

开发者你好,感谢你们开发出了优秀的 homebridge 插件方便我们的使用。今天当我尝试控制小米台灯一代时,出现了一个Bug。当我在 iOS 上的 “家庭” app 内滑动小米台灯的亮度控制条时,如果滑动至最底部,也就是关闭台灯,此时台灯不会熄灭,并且app显示未响应,homebridge 控制台报错。错误代码已附上。附件中是报错截图和手机录屏视频。 bug-report

https://user-images.githubusercontent.com/38682928/104162321-5fa86680-542f-11eb-89b7-1ba5a5c4af34.MP4