LIFX / LIFXKit

The LIFX SDK for Objective-C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to turn light on to a specific color without showing previous state

lightbow opened this issue · comments

If a light is off, and I want to turn it on to a specific color, I have to send two separate commands:

[target setPowerState:LFXPowerStateOn];
[target setColor:color overDuration:transitionTime];

If the light was previously blue (for example) before it was turned off, and I want to make it turn on and go to red (for example), it seems to start fading up blue before switching to red. Ideally there would be no interim blue state.

commented

I've faced this same solution when writing an iOS Tweak to add more effects to the LIFX app (APIs are incredibly similar) and as a work around I've just turned the bulb on and set its colour to the target colour with 0 brightness over a 0 duration then called the usual setColor methods from there.

This is something that we plan to resolve in a future firmware update.