homebridge-miot icon indicating copy to clipboard operation
homebridge-miot copied to clipboard

Support for smooth power on/off (fade effect) for Yeelight devices

Open Brutal174 opened this issue 11 months ago • 1 comments

Hi, Thank you for your great work on this plugin! I’m using it with several Yeelight W1 lights (model: yeelink.light.monob) and everything works well in general.

However, I’ve noticed that turning the lights on/off via HomeKit or Homebridge results in immediate changes — there’s no smooth fade in/out transition, which is supported by the Yeelight protocol.

I tried exploring ways to trigger the "set_power" method with "smooth" and duration params (e.g. ["on", "smooth", 500]) using direct socket commands over port 55443, and it worked as expected when sent via raw TCP. This suggests the lights do support the smooth transition, but the plugin currently does not expose this functionality.

Would it be possible to add support for smooth transitions when toggling the power state of compatible devices, either as a default behavior or a configurable option?

Thanks again for the plugin!

Brutal174 avatar May 16 '25 08:05 Brutal174

Thanks for the feedback. The plugin uses the miot protocol and not the yeelight lan mode protocol hence we can only use what is possible with the miot protocol. Did you check the miot spec for your device if something like that can be achieved?

merdok avatar May 16 '25 11:05 merdok