LIFX Developer Zone

Turn on lights after breathe lights


#1

I just setup lifx to work with nightscout, when my blood sugars are low or high it breaths 25 times, but after it breathes, it turns off, is there an advanced option for them to remain on after they breathe


#2

Does the persist param do what you want? It leaves the light in the final state after the effect has finished.


#3

{{Value1}}13.0 {{Value2}}14.0 {{Value3}}14.5; number_of_breaths: 25; power_on: true

This what I have currently, but it doesn’t turn on after the final breathe


#4

Are you able to set "persist": true in the json request to the lifx api?


#5

I have with the same results


#6

So, you’re basically Darth Vader. :wink:


#7

Following in case this is figured out. I’ve tried a number of things, but only briefly.


#8

Workaround (untested): Could you perform two actions?

  1. turn on the light
  2. breathe (persist: false)