cancel
Showing results for 
Search instead for 
Did you mean: 

Set a color with "ColorAbsolute"

Hollen_ar_mor
Community Member

Hello,

In Google Automation, I tried to set a color in a script. For that, I used the "ColorAbsolute" command.

OK for the light temperature as explained here : https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Script-for-color-temperature-comma...

But to set a color, the only way I found is to tell the name of the color : 

    actions:
      - type: device.command.ColorAbsolute
        color:
          name: blue
        devices: Light 1

 

It's a bit limited... And I would prefer use an hexadecimal or RGB code to set the exact color I want.

I tried spectrumHEX and spectrumRGB instead of "name", but it doesn't work...

 

Somebody manages to set an HEX code with ColorAbsolute ?

 

 

1 Recommended Answer

armen_dpe
Solutions Expert
Solutions Expert

Currently "ColorAbsolute" in Google Assistant Automation doesn't directly support setting colors using hexadecimal or RGB codes. While it works for color names like "blue", it offers limited control for specific color selection.

View Recommended Answer in original post

2 REPLIES 2

armen_dpe
Solutions Expert
Solutions Expert

Currently "ColorAbsolute" in Google Assistant Automation doesn't directly support setting colors using hexadecimal or RGB codes. While it works for color names like "blue", it offers limited control for specific color selection.

Hollen_ar_mor
Community Member

OK. It's a bit strange, but OK. Overall when I read that : https://developers.home.google.com/automations/schema/reference/entity/sht_device/color_absolute_com...

 

For those who want to set colors with the command ColorAbsolute, here's the names Google Automation supports : 

Hollen_ar_mor_0-1712256199593.png