This is a follow-up to my earlier Hue Connect Service Manager called Hue Lights Groups Scenes (oh my). This version has ability to integrate & control all of your (i) Hue Color Bulbs, (ii) Hue Lux Bulbs, (iii) Hue Color Groups, (iv) Hue Lux-Only Groups, (v) White Ambience Bulbs and (vi) Hue Scenes.
It is very fast and responsive (whether controlling a bulb, group, or a scene). It is a complete overhaul from the HLGS app, so if you are switching from that app, you will unfortunately need to start over. A PITA, yes, but I’m sure that you’ll be very happy with the end results.
To install, you will need to import the Hue B Smart app AND all of the relevant DTHs into the IDE. If you only have Hue Color bulbs, then you will need to import (i) the bridge DTH, (ii) the Hue Bulb DTH, (iii) the Hue Group DTH, (iv) and the Hue Scenes DTH. If you also have Hue Lux bulbs, then you will also need to import (v) the Hue Lux Bulb DTH and (vi) the Hue Lux Group DTH.
If you need to create / delete Hue groups or Hue scenes, you will need to use either the Philips Hue app (download here) or the CLIP API debugger (instructions for the Philips Hue CLIP debugger can be found here.
You can update the level, hue, and saturation settings for an existing scene by clicking the “Update Scene” tile in any Scene momentary device.
As in the HLGS app, scenes are momentary devices. A new feature is the “setToGroup” function for scenes. This function (which you can use in CoRE) allows you to apply the selected scene to a single Group – rather than to all of the bulbs in that Scene. This means that you do not need to set up individual scenes for each Room / Group, thus drastically reducing the number of scenes you need.
For example, I have 25 Hue lights in my house. I set up a single scene for each of my location modes (e.g., “Morning”, “Daytime”, “Nighttime”, “Late”, etc.). I then set up a CoRE Piston for each room of my house, and when the appropriate conditions are met for each room, I use the same Scene momentary device as the action, calling the “setToGroup” function and use that room’s group number as the parameter. My Living Room group has the groupID of “1” (each Group device displays its groupID number), so to apply the Morning Scene only in my Living Room, I select the “Morning” momentary switch, use the “setToGroup” task, and set Parameter #1 (type Number) to the value of 1. I then limit that action to execute only when my house is in Morning mode, and repeat this for each of my modes.
In this way, I really don’t use the groups themselves at all – they are just parameters for how / where I want my Scenes to work.
Of course, if I want any scene to work on all of the lights, I just push that Scene’s momentary button (scenes, by default, use a Group of “0” - which the Hue Hub interprets as “all lights”).
- Compatibile with CoRE, Echosistant, and ActionTiles
- setToGroup() and setTo2Groups() functions reduce the number of scenes you need
- Control color via Hue & Saturation, via Hex, or via XY coordinates. All interactions between the DTH and the Hue Hub are standardized on XY coordinates.
- Bulb status now immediately updated from a Group (or Scene) action
- ColorTemperature control
- Flash (Alert)
- Light and Group DTHs remember changes to color / colorTemperature while device is off. Those settings will be applied when bulb is turned on
Please let me know if you run into any problems, or have any suggestions. The code is on GitHub: GitHub - infofiend/Hue_B_Smart: Hue B Smart - total control of Hue Bulbs, Groups, Scenes, and more!
And, if you feel like making a donation for these community efforts, it would be greatly appreciated: PayPal.Me . Thanks!