chendo / lifx-http

A HTTP API for controlling LIFX devices.
MIT License
91 stars 13 forks source link

Sunrise #7

Open entropin opened 10 years ago

entropin commented 10 years ago

Hi, am trying to use the "sunrise effect" as a wake-up light, The problem is i can't turn on the light at 0 brightness, so in the morning all lights will turn on at full brightness for half a sec, go back to black and then the sunrise begins.

I do not remember how, but i did manage to get this to work with the node api, setting the brightness before turning it on perhaps, but this dose not seam to work. Any ides or is this a limitation of the lifx-gem?

chendo commented 10 years ago

It's currently impossible to set the colour while the light is 'off'. The next firmware will allow colour changes while the light is in its standby state.

lanej0 commented 10 years ago

Is there a drawback to not toggling/turning off, but just setting brightness to 0? Power consumption?

chendo commented 10 years ago

No effective difference from what I understand. Might be confusion on the apps if you set brightness to zero but it's still considered on (brightness of 0 being considered on/off was a long debate).

lanej0 commented 10 years ago

That might be a good way to handle the sunrise bit then. Just write a "bed time" script that dims the light down to 0 brightness but leaves it on and at whatever time you want, start the brighten up routine.