##LIFX Group of Groups (LGoG) provides the following capabilities through a device handler and an optional companion application (LIFX Sync):
Control a Group of LIFX Bulbs as a Single Device
(Note: LGoG does not sync your bulbs, it communicates directly with LIFX to control them as a single group. This way you will see all of the lights change at the same time, not one by one. )This capability is the primary reason I created LGoG. By default, using the LIFX (Connect) app that comes with SmartThings all of your light bulbs will get added to SmartThings. If you have 1 bulb, this is likely just fine for you, however if you have many bulb, specifically bulbs you would like to control as a single device you are out of luck. Before LGoG you had to either download a SmartApp that would watch your bulbs and update the status of some of your bulbs based on the status of a master bulb or control them through CoRE (which you can still do with LGoG, however you are stuck selecting multiple lightbulbs. Specifically how LGoG works is…
- Create the groups of lights in your LIFX app. Yea, I know you can’t have a bulb in multiple groups, but LGoG fixes that!
- Generate and API key, instructions below.
- Install the LGoG device handler.
- Configure the device, add a single group or multiple groups.
Why is this better? It is more efficient. Let’s say you have a kitchen which as 10 LIFX bulbs in it. If you use the standard bulbs that ST gives you, if you want to turn them all on you have to turn 10 bulbs on. Weather you do it one by one manually, use a syncing app, or use CoRE, you are sending 10 commands to LIFX and then 10 commands back to your bulbs. Using LGoG you send a single command to LIFX and they in turn send a single command to your bulbs. You will find that your groups will become much more reliable.
Control Multiple Groups of LIFX Bulbs as a Single Device
Yes, that is right. You can create multiple groups within the LIFX app and configure this device handler to control multiple groups as a single device. For example, I have bulbs in my kitchen, dining room, foyer, & family room. I have 1 device setup in SmartThings to control each of these (so 4 in total) and another device configured to control all of these groups as a single device called “First Floor Lights”.
Create Multiple Devices for the Same Group or Set of Groups
This comes in handy when you want quick access to all of your light groups in a single “Room” within the SmartThings app, but also want to have the same device inside of the specific Room. For example I have my device “Kitchen Lights” in my Kitchen room and I have another device called “Kitchen Lights 2” which controls the same lights.
Sync the Status of your Groups
As you can create multiple groups that control a device, you can now use the LIFX Sync companion application. Once configured, if you turn on “Kitchen Lights” it will automatically update the status of the “Kitchen Lights 2” device and vis versa. You can also setup the sync to be either one way or two way. Must have companion app installed
2-way Example: When “Group A” is changed (switch or level) “Group B” is updated. “Group B” is changed then “Group A” is updated to match “Group B”.
1-way Example: When “Group D” (Group D contains Group A, B, and C) is changed (switch or level), “Group C” is updated. When “Group C” is changed, “Group D” does not get updated.
Scheduled Sync with LIFX
Schedule the DH to double check the light status via lifx and update the ST status accordingly.
Power Usage Reporting
Report power usage based on the number of bulbs in a group. This was all based on real world testing as accurate as I could get.
1 - This creates a virtual device for groups of LIFX groups, not just a single group.
2 - Accepts your api token as preference, not in the code.
3 - Allows you to enter groups using preferences by name, not id using the device id.
4 - I’ve also updated the UI a bit.
However, the inspiration for this came from @AdamV.