cellcortex / homebridge-yeelighter

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

invalid params error on lights supporting moon light #108

Closed Weidav closed 2 years ago

Weidav commented 2 years ago

As 50 is translated to 0, this error appears. I was able to fix this issue, pull request follows.

[14/04/2022, 16:30:36] [Yeelighter] [Deckenleuchte] set brightness 50 (translated to 0) [] [14/04/2022, 16:30:36] [Yeelighter] [0x00000000066a3e27] Error returned for request [373]: {"code":-5001,"message":"invalid params"} [] [14/04/2022, 16:30:36] [Yeelighter] [Deckenleuchte] Command failed [ { code: -5001, message: 'invalid params' } ]