morzzz007 / node-tradfri

Node API to control IKEA Tradfri Lights
MIT License
49 stars 17 forks source link

Add transition time in tenths of a second for color, brightness (and state?) #6

Closed tomgidden closed 7 years ago

tomgidden commented 7 years ago

Hi,

Sorry for the quickly repeated pull, but I just found this in pytradfri and it's a nice bit. Add transitionTime parameter, eg. transitionTime=10 to a device colour or brightness change and it'll animate it smoothly. I'm not sure what attributes it applies to -- on and off don't seem to be affected, and no idea about groups -- so I haven't documented it properly.

Tom

morzzz007 commented 7 years ago

Hi,

I didn't know about this feature, thanks for adding! It's out in 0.1.6. I'll play with it, it would be a good idea to mention it somewhere in the docs. Also I think it's time to do command-builder's unit tests on put method too, I'll try to update it this weekend.

Thanks!