nocmt / ewelink-api-next

CoolKit v2 API Official Library
MIT License
22 stars 5 forks source link

Include `switch` data field in zeroconf.dimmable function #17

Closed AndrazPustotnik closed 4 months ago

AndrazPustotnik commented 1 year ago

image

It would be super useful if the function would also enable to switch light on/off while also setting the colors?

nocmt commented 11 months ago

It itself is an independent instruction, and issuing it together may not be accepted by the device

AndrazPustotnik commented 11 months ago

In previous ewelink-api I created a fork where I added a setParams function to just overwrite the params field. That was the way for me to control all the lights. I updated the switch and color field at the same time. Not sure if there were any errors on the device side, but it worked for me as expected.