Also if i wanted to create a dimmer scene, that would look at the current brightness and raise (or lower) by a factor of .1 from the current state, would that be possible? How?
To be honest, I don't really know what I'm doing, but I used to do some scripting in Lua years ago. If you know Lua, then I think what you would want to do is define a global variable for the level of that light in your "Startup Lua" (under apps, develop apps - where you had to enter
require("lifx_ctrl.lua") ), using a value of between 0.0 and 1.0. I think you could write code to query the light for its level, but that functionality is not built into the script in its present state as far as I know.
You would then modify that variable at the time that you control the bulb to reflect its state.
After that, you could create a scene that adds or deducts 0.1 to/from that variable, redefines the variable with that new value and replaces the defined level with your variable.
I hope I'm explaining myself clearly here. Keep in mind that the minute you use another method to control the bulbs (like the app, for instance), the system will break until you control the bulb(s) with your scenes again which would then redefine the variable(s).
Joe, I did some testing and it was indeed the Vera that was misbehaving. The test through the website worked fine. I managed to fix it though. I believe what happened was that I lost the LIFX files when support messed around with my firmware during a remote session, so I had to copy the files back over and I must've copied an old file over or something. Once I re-did the whole install process from scratch, everything worked perfectly. Thanks for looking into that in any case.
I was wondering how difficult it would be to add the ability to execute scenes. One reason this would be great is because the LIFX developers seem to be having difficulty with the idea of having groups in child/parent relationships. As a result, I've had to create many different scenes as a workaround. While I could go and program each one manually, it sure would be a time saver if I could just use a line from your script to call up scenes instead. I've also created many scenes to emulate the colors of a sunrise, etc. and it would be painstaking work to have to go in and figure out the hex value for each and every light for each of those scenes.
Last question for this post -- I know that the values for the light levels are between 0.0 and 1.0, but does that mean that we're restricted to level changes of 10%, or can we use a value like 0.57, for example?
Thanks!