I very recently purchased the SmartThings hub with the intention of controlling several color temperature bulbs in the living room. It works pretty well, except syncing the bulbs together was a pain; I tried “Dim with Me,” but it didn’t control color temperature (I wanted the ability to have cooler light when the lights were on full, and warmer light when set to ‘movie dim’ mode).
So, I wrote this up (note: I am not a java/groovy developer by trade; the code I write for work is all visual block programming. This is probably really poorly coded, but it works). This SmartApp takes as an input anywhere from 1 to 5 switches. Honestly, I don’t know why you’d ever use just 1…but anyways, you can set individual color temperature, color, and dim levels for the selected bulb(s) based on which switch was pressed.
I don’t have an actual momentary switch on my network yet, so I created virtual switches in the IDE, using the ‘momentary button tile’ as the device type. If you have actual momentary buttons on your ST hub, those should work with this app as well.
I didn’t include outright on/off control, but set the dim level to ‘0’ and it turns the light off, any other value turns it on. Additional on/off control seems…unnecessary, in this case.
Anyways, if this fits your use case, please let me know how it works for you. If it would work but you’d like something changed, let me know and I’ll see if I can work through what you need.
[update] Color control has been added for color changing lights. In addition, you can now leave any value blank for a scene; when that scene’s button is pressed, only the values you set will be commanded and any value left blank will be left at the previous state. For example, if a light is on at 75% brightness, and you set ‘Scene 3’ for Color Temp 2700k but leave the ‘dim level’ blank, then pressing Scene 3’s button will set the color temperature but leave the brightness at 75%.
[another update] You can now choose dimmer switches that don’t have any color or color temperature control and set their levels via this App and an associated switch. As part of this update, I’ve removed any ‘required’ flags; before this, you needed a Color Temp bulb to move past the first page. Now, the app will simply respond to the equipment you chose; if you choose color bulbs, it will ask you what color to set. If you choose color temperature, it will ask you what color temp to set.
If you choose a color bulb as BOTH color and color temperature, the app will try and figure out what your intention is with each scene. For example, if you have a scene where you set the color and left the color temperature blank, it will simply set the color bulbs; if you set both color and color temperature, it will set the color to the color bulb and the temperature to the color temp bulb (if any); if you set only color temperature, it will set the color bulbs to ‘white’ and the appropriate color temperature, and of course any simple color temp bulbs will be set to that value as well.
There’s now a new option during setup of ‘dimmer switches.’ If you want to be able to control the lighting level of ANY light (color, temperature, or just a dumb dimmer), you must select it under the ‘dimmer’ controls! If you don’t select an object as a dimmer, you won’t receive the option to set the lighting level. So if you have a color bulb, and you want to be able to change its color, color temperature, and lighting level, you must select that bulb as being a member of each ‘color bulbs,’ ‘color temperature bulbs’ and ‘dimmer switches.’
Please let me know how this works for everyone, and have a great holiday weekend!