Mixing atomicState and state

I'm not sure that you can use any variable for the options in an enum - unless that's changed in one of the most recent updates.

My LIFX driver uses an app with child devices, but I'm not sure how much it would help you, see GitHub - robheyes/lifxcode and the thread about it LIFX Local Control