MariusRumpf / node-lifx

Node.js implementation of the LIFX LAN protocol :bulb:
MIT License
144 stars 28 forks source link

Change single parts of color #34

Open MariusRumpf opened 8 years ago

MariusRumpf commented 8 years ago

The library makes use of the color method which requires hue, saturation, brightness and kelvin values. It might be useful to have a method for every single part if it, without affecting others.

For example setting different shades of white is easy with the app but complex with the library. To utilize one has to keep track of the latest color value and only change the kelvin value.

ristomatti commented 7 years ago

This could be done with storing the HSBK values on each change or are they already stored somewhere? I'm using that approach for ristomatti/lifxsh.

In addition a configurable stateColor and stateMultiZone polling interval could be added to notice changes done using other methods.

MariusRumpf commented 7 years ago

That is exactly what I though of, there is no stored value anywhere for now