LIFX Group of Groups (LGoG) allows you to create a "virtual" device based on a single LIFX group or a set of LIFX groups.
Example 1: If you have a group called "Kitchen" and a group called "Dining Room", you can create a group of groups called "First Floor" (or whatever) and add the two LIFX groups to it. You can treat the two groups as a single device. This handles up to 10 groups per device.
Example 2: If you have a single group within the LIFX called "Kitchen" you can add it and control your set of lights as a single device called, you guessed it "Kitchen" (or whatever else).
This device handler also supports scenes, see the preferences section below.
- On / Off
- Setting Color
- Setting Color Temperature
- Setting Brightness
- Syncing Between Groups Must have companion app installed
- 1 to 10 groups as a single device
- Open SmartThings IDE in your web browser and log into your account.
- Click on the "My Device Types" section in the navigation bar.
- Click on "Settings".
- Click "Add New Repository".
- Enter "ericvitale" as the namespace.
- Enter "ST-LIFX-Group-of-Groups" as the repository.
- Hit "Save".
- Select "Update from Repo" and select "ST-LIFX-Group-of-Groups".
- Select "lifx-group-of-groups.groovy".
- Check "Publish" and hit "Execute".
- See the "Preferences" & "How to get your API Token" sections below on how to configure.
- Open SmartThings IDE in your web browser and log into your account.
- Click on the "My Device Types" section in the navigation bar.
- On your Device Types page, click on the "+ New Device Type" button on the right. 4 . On the "New Device Type" page, Select the Tab "From Code" , Copy the "lifx-group-of-groups.groovy" source code from GitHub and paste it into the IDE editor window.
- Click the blue "Create" button at the bottom of the page. An IDE editor window containing device handler template should now open.
- Click the blue "Save" button above the editor window.
- Click the "Publish" button next to it and select "For Me". You have now self-published your Device Handler.
- See the "Preferences" & "How to get your API Token" sections below on how to configure.
Navigate to https://cloud.lifx.com, sign in and then go to the settings section and select generate new token.
LIFX Group of Groups (LGoG) provides the following capabilities through a device handler and an optional companion application (LIFX Sync):
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.
- Create a new device in the SmartThings IDE.
- Give make sure you select the proper device type (this handler)
- Open the device in the SmartThings App.
- Edit the configuration. Enter the API Key and the EXACT group name from LIFX (case matters).
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.
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”.
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.
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.
This device now will update ST ever 60 seconds if the device turned on via LIFX.