dominicusmento / CSharpTradFriLibrary

This is a .NET Standard (2.0) library to communicate with the IKEA Home (Tradfri) ZigBee-based Gateway.
GNU General Public License v3.0
37 stars 20 forks source link

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

Open dobrou opened 3 years ago

dobrou commented 3 years ago

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.