Bulb colour

Hi guys,

I'm wandering how I can set an if statement to determine RGB bulbs to be a particular colour. In the colour options there is soft white, white, daylight and warm white. However when I use my options on alexa echo, the option of cool white exists which is a far more superior bulb colour. Cool White is the colour I'd like to use with HE but I have no idea how to initiate it with rule machine. I can manually change a bulb colour temperature to 6500 using a tile but don't know how to do this in a rule machine?

What if you captured it using a scene? When setting up a scene you can capture the current state of the bulbs involved. You could adjust the bulb state with Alexa, then capture in HE. You could then activate this scene in your rule.

@sburke781 I think that might just do it. Thanks for your wisdom, I appreciate your time. :+1:

1 Like

If you want to change a bulb’s color temperature of a bulb in Rule Machine you can do the following;

Set Action
Run Custom Action
Actuator
Then chose your bulb
setColorTemperature as your Custom Command
Parameter Type chose Number
Introduce 6500

And that will create the following command;

setColorTemperature(6500) on Luz Cocina 1

(“Luz Cocina 1” is a CT bulb in this case)

@BiGs that seems like a good solution for the white. I'm not at home but can bulb colour be captured this way too? I tried @sburke781 idea above which is a good compromise but it captured the brightness of the scene initially. So if my bulb is on 50% brightness, when I change colour to the scene colour, the bulb alters it's brightness too. Any ideas guys?

1 Like

You can use the “Set Color Temperature and Level” command to set the temperature via a number. If no level is entered, the default will be used.

1 Like

Hi, is there a way of defining the RGB in the rule rather than the colour temperature which seems to only relate to white. See image

1 Like

Different bulbs allow for different commands, depending on their drivers.

Color bulbs normally allow for Hue and Saturation, in addition to level.

I have seen some that allow for RGB but as hexadecimal values.

What I would do is check the Device page and read the Current State. There you can see how is the current color defined. Then you simply repeat that as Command, as stated above.

2 Likes

That sounds like a plan. Cheers for the advice, much appreciated :blush: