Set Color of Hue Bulbs without turning on?

Nope. And smartthings won’t see it if it’s connected to the hue bridge, either. Only lights at the present time.

That’s what I thought.

I am not sure how you want smartThings to know you’ve initiated a light to turn on with the HUE tap if it doesn’t know it exists. When you turn the lights on via the TAP does it update the bulb state in smartThings?

Yes. SmartThings now polls the Hue bridge for the bulb state about every five seconds. ( that’s a recent change, it used to be about every five minutes.) so the Hue tap or the Hue dimmer switch connected to the hue bridge becomes a parallel means of control. Smartthings doesn’t know the tap/switch exists, but it doesn’t matter – –it gets the bulb state separately from the bridge. It’s the same thing if you use any other method for turning your Hue bulbs on and off, including another app, or an echo where the bridge is connected directly to the echo rather than through SmartThings, or harmony, etc.

So, any ideas on how I can achieve what I’m setting out to?

One suggestion was to use the hex value of the colors to set rather than the color name? how would I go about doing this?


I would just use one of the existing hue management smart apps like the “hue reconnect” that was already suggested. Otherwise you’re going to have to write your own code.

If you haven’t used custom code in smartthings before, it’s pretty straightforward. Basically you copy somebody else’s code and paste it into your account. Here’s the FAQ for that:

Then if that seems like something you’d like to try, check the quick browse lists for lighting in the community – created wiki and you’ll see a number of possibilities, including hue reconnect. :sunglasses:

Here is the only way I can think of doing this. Create Scenes in the hue app for the different bulb configurations and use the hue Reconnect app to utilize the scenes you just created within smartThings
Then using Smart Lighting I would say when bulbs 1 and 2 turn on turn on scene switch A but only when mode is {Mode Name}
You’d have to setup a rule for each scene you want to trigger.

So here is what would happen…

Hue Tap is pressed
5 seconds later the bulbs turn on and the scene virtual switch is turned on (This sets your scene)
When the bulb turns on the next time, it will turn on at the last bulb configuration set

The only problem is the first time your bulbs will come on to the previous setting and then change. You’ll only see this the first time. Each time after that will look like the bulbs turn on at the scene you want.

I know this is probably confusing, but you don’t have a way to trigger the change directly in smartThings using Hue Tap.

Even setting the the color via hex value would need a trigger. How would you set it?

If you have a lamp in the tap scene that is unique to that scene, you can trigger off of that state change.

Thinking back, you wanted the colours to change at set times right? Use the times to trigger the changes.

That’s pretty much what I was suggesting here.

Thanks for the replies. I’m not sure the suggested approaches will achieve what I’m setting out to though.

I have a large open plan kitchen/living area with 25+ hue bulbs covering the space.

Sometimes we turn all the lights on, sometimes we only want some of the lights on. For example, we have a cluster of lights near the front door and hallway which we sometimes turn off. Turning these off could happen in a number of ways, via the tap or the hue app or smart things or via a configured routine ‘turn off some of the lights’. The default color for our lights is a bright white. At night, I want to turn these to a warmer color automatically, however in the process of doing this, I don’t want to turn on lights that have been switched off - this appears to be the default behaviour, changing the color also switches on.

One way I think I can do this is using CoRE. I appear to be able to change the color but only perform the action if the light is actually on. This is a bit tedious to set up as there needs to be a rule for every single bulb. Its doable however. The downside is though, that if the color is changed automatically to the ‘evening color’ and some of the lights were off and we choose to turn them on, they will default to the last color used, which is very likely the bright white. Maybe I could build rules to say if a light is turned on and its after >Xpm in the evening switch to the evening color but again, it seems like a large number of rules to achieve something relatively straight forward. I don’t know if there are significant performance issues or other considerations in creating this many rules in CoRE?

Any other ideas? Or have I misunderstood any of the earlier suggestions?

I think you can do this using a single piston:

If any [LIGHTS] changes to ON then{
If time > sunset then {
using [LIGHTS] {
set hue to XXX
set sat to XXX
} else if …

Thanks Glenn - how do implement the [using] section? I can get as far as the If any [LIGHTS] but how do I refer back to the lights that were on via ‘using’?

…and also, do you know of a listing of hue/sat values for the ‘default’ colours e.g the color that the bulbs default too?

Use a CoRE piston. There is a whole thread devoted to the app. CoRE for Dummies (How to get started and make your first Piston)

Pretty intuitive for simple stuff, after that, there is help available.

Setting just the Hue/Sat will change the lights that are on, and not change the ones that are off.

The way I do it is to log into the IDE and look at the device itself. The most reliable method I know of.

Is it definitely possible to pass an array of the lights that were on to a clause like ‘using’?

Certainly. I have a couple of 'Macro" settings pistons that group the lights together. They just have to be the same type for the control you want. (Don’t group together switches and dimmable with RGB/W if you want to change hues.)

New photo by Glenn Brockett

You COULD check for each one to be sure it is on, but if you are acting on a “CHANGES” trigger, usually only 1 would be called for the change. This is why I like the hue/sat setting. it doesn’t change the level on any light, just the hue and saturation levels.

Thanks for your patience and continued help!

So a few things here:-

1\ Let’s say we have 4 bulbs : Bulb A, B,C,D
2\ A,B are on C and D are off
3\ I turn on bulb D, C remains off
4\ A rule that says

If ANY [bulb A, B,C,D] changes to on
set [whichever bulb it was that changed to on] to have SAT/HUE values of X

It’s the [whichever bulb it was that changed to on] that I don’t understand how to achieve, because the THEN clause always wants a discreet, set of bulbs to be selected, so I’d end up instead achieving:

If ANY [bulb A, B,C,S] changes to on
set [Bulbs A,B,C,D] to sat/hue

…and wouldn’t that result in bulb C turning on as well, which I wouldn’t want?

OK, I reread what you wrote.

So I’m right in so far as it would set the hue and sat across all bulbs but it wouldn’t turn on because you are saying that doesn’t alter the level.

So, in this case, why would I use changes? Wouldn’t I just set all bulbs to have a particular sat/hue at a specific time?