nocmt / ewelink-api-next

CoolKit v2 API Official Library
MIT License
19 stars 4 forks source link

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

Closed AndrazPustotnik closed 1 month ago

AndrazPustotnik commented 8 months 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 8 months ago

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

AndrazPustotnik commented 8 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.