LIFX Developer Zone

Get State, then blink red, then return to previous state

Hi

What is the best approach to return the state of the bulb back to what it was before setting it to blink red please?

At the moment, if i set it to blink in IFTTT based on an action in Smartthings, then turn s off. The colour is remembered upon next use.

I’d like it to->

  1. detect if its ON
  2. if ON, GET the state, brightness colour etc
  3. Blink RED for x seconds
  4. Set the bulb to previous state .(e.g on or off , colour, brightness etc)

Cant this be done in IFTTT pro, it will it need some JS .

Thanks , any help would be great