prev_color = get_light_state(target)
set_light_from_hsbk(target, 0, 0, 0 or 1, temperature, 60 * 1000 * 5)
sleep(60 * 5)
powerOff(target)
set_light_from_hsbk(target, prev_color, 0) # requires firmware >= 1.5 for the Original 1000
The LIFX REST API doesn't seem to update the state (color) of the bulb during the transition, but this will.
Equivalent to:
The LIFX REST API doesn't seem to update the state (color) of the bulb during the transition, but this will.
On top of my head: