CSharpTradFriLibrary icon indicating copy to clipboard operation
CSharpTradFriLibrary copied to clipboard

[Feature] - Set light Color & Dimmer with transition in one call

Open dobrou opened this issue 4 years ago • 0 comments

Hi, first thank you for this library! With LINQPad and your library, it's a matter of few minutes to start writing first simple lights automation scripts.

Is your feature request related to a problem? Please describe. When I want to change both Color and Dimmer of the light, I have to do 2 separate calls: DeviceController.SetColor(device, color, transition); DeviceController.SetDimmer(device, dimmer, transition);

But when I include transition, first call transition effect is simply skipped by executing second call.

Describe the solution you'd like Solution would be to add public method which allows to set both color and dimmer with transition time. It looks like internal lower level API inside SetColor/SetDimmer allows to set both values inluding transition, it just needs to add appropriate public methods.

dobrou avatar Sep 02 '20 11:09 dobrou