I can’t help you with your code question, but I suggest you talk to the folks in the following thread, as they seem to be the ones who are doing the most with LIFX and smartthings right now and they can probably save you some time in the process.
version 1.0 [27/01/2016]
Background
This is a release for LIFX Groups, using the final V1 of LIFX’s Cloud API.
Grouping lights together is surprisingly tricky using Smartthings. Although there are some great apps like “Color Coordinator” and @Kriskit ’s “Trend Setter” that help you do this, there is still an issue that lighting groups made with these apps turn on the lights sequentially rather than all at the same time.
However, if you are an LIFX user and you use the app to control group lights there are two things it does better that the current Smartthings integration with a grouping Smartapp:
1… There is almost no lag at all between turning on (or any command) and the device responding.
This is because the LIFX app uses the LAN API rather than the Cloud API. Unfortunately at this…
2 Likes