Changing colour on hue bulbs

Am I right in assuming that you can not change the colour on a hue bulb in the room lighting app (colour not available for CT devices) and also that you can not capture the device settings if the colours are set by the hue app rather than within the Hubitat platform (settings don’t appear to change?

As long as "Current States" on the Hubitat device detail page for the Hue bulb looks OK, capture and restore should work. I say to check there for multiple reasons:

  1. You'll remove half of the mystery of what the "capture" action in RM is doing. It can only capture what it knows (true for any device).
  2. With Hue bulbs in particular and changes made from outside Hubitat, by default, you'll need to wait for the next "poll" to happen before Hubitat will see the changes. From your other topic, I see you're using CoCoHue. This still uses polling by default but does have an option to use Hue's new experimental v2/eventstream API for instant updates, which works in most cases. Otherwise, you'll need to wait up to a minute by default. Changes made inside Hubitat are not affected, and I would suggest this wherever possible.
  3. Again particular to Hue bulbs, sometimes Hue bulbs get stuck in "xy" color mode rather than "hs" color mode or "ct" mode. Last I checked, the color wheel in the app used "hs" (hue/saturation) mode, but activating a scene (regarldess of whether it was hs or ct originally) uses "xy." Conversion between the two is difficult and not something CoCoHue attempts at this time, and with Hubitat's native color models being HSB or CT, this means you will not always see accurate color information in Hubitat if this is the only way the Hue device reports. (Most Hue-branded bulbs should eventually get this information via polling, but third-party bulbs vary. In the former case, it only affects the experimental v2 API for now, so again will be feteched on the next poll; in the latter, there is little to be done except make your changes from Hubitat.)

Any one of these could explain it, or perhaps a combination of them could.

This is slightly different to my other post, it is more about using the Room Lighting application. In the room lighting app there is no facility for the bulbs I have in the scene to enter a colour. All the bulbs are marked as CT and in the manual only the bulbs marked RGB have a column for colour. Hence why I assume that colour was not supported for Hue bulbs in Room Lighting. As you say I am using Cocohue so is this a CocoHue limitation? If I push capture scene in the room lighting app for a specified mode then it correctly captures the dim level, it also seems to change the bulb temperature but the colour is not captured. If that 'captured' scene is turned on I get a white ambiance set of lights only which seem to vary roughly aligned to the different colours in the scene.

Click "CT" (or "Dimmer" or "RGB" or "Switch" -- whatever it says under the "Type" column) to change the activation type. This affects what commands Room Lighting sends when activating the device--e.g., "CT" will sent setColorTemperature(), "RGB" will send setColor(), "Switch" will send on() or off(), etc.

I'm not sure if this is part of your question, but note that bulbs can only be in either RGB or CT mode, and RL (and really any app) will only capture whatever attributes are relevant for the current color/CT mode. If you are in color (RGB) mode but only getting CT captured, I still think something like the above would explain it.

You also don't need to use RL to capture state, though you can; you can also just manually enter the color/CT, level, and other desired attributes by editing those cells in the Activation Settings portion of the table. See: Room Lighting | Hubitat Documentation. That is probably easier if you already know what you want.

No, this is how Room Lighting works.

1 Like

Thank you, Your first point resolved my issue which was that the bulbs were set as CT, when I changed them to RGB the colours I had previously captured were displayed and if I activate it then it correctly lights the lights.

Should I be changing the lights in the device page as well as Room Lighting?

Nothing you can change on the device detail page will change the way RL works (assuming the device has the right driver, and CoCoHue should have picked the right one) aside from the current states it would capture. The commands on the device detail page are mostly useful for testing or manually changing the device. Room Lighting is an app that can help you automate this kind of thing so you don't need to do it yourself this way (or capture the current states, the same information you'll see on the device detail page, in case you don't want to "manually" enter settings into the RL app).

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.