> Documentation index: https://developers.home.google.com/automations/schema/llms.txt

<br />

## Description

Sets the color to the specified hue. When the color is set on a device that is off, the device powers on, and the [`OnOffState.state`](https://developers.home.google.com/automations/schema/reference/entity/sht_device/on_off_state.md.txt) changes to reflect this. Likewise, when brightness is set to 0, the device powers off and the [`OnOffState.state`](https://developers.home.google.com/automations/schema/reference/entity/sht_device/on_off_state.md.txt) changes accordingly.

## Fields

| Key | Type | Description |
|---|---|---|
| `devices` | \[[Device](https://developers.home.google.com/automations/schema/basics.md.txt#entity)\] | Devices such as smart lights that can change color or color temperature. Required |
| `color` | [Color](https://developers.home.google.com/automations/schema/basics.md.txt#color) | Color to set. Required |
| `name` | [String](https://developers.home.google.com/automations/schema/basics.md.txt#string) | Color name parsed from the user's command; may not always be available (in other words, when using relative commands). Optional <br /> To use this field, all the following fields CANNOT be used: *temperature* , *spectrumRGB* , *spectrumHSV* <br /> |
| `temperature` | [ColorTemperature](https://developers.home.google.com/automations/schema/basics.md.txt#colortemperature) | Temperature value in Kelvin. Optional <br /> To use this field, all the following fields CANNOT be used: *name* , *spectrumRGB* , *spectrumHSV* <br /> The value number range depends on each device. |
| `spectrumRGB` | [ColorHex](https://developers.home.google.com/automations/schema/basics.md.txt#colorhex) | Spectrum RGB value as a decimal integer. Optional <br /> To use this field, all the following fields CANNOT be used: *name* , *temperature* , *spectrumHSV* <br /> Some devices may not support this field. |
| `spectrumHSV` | [SpectrumHSV](https://developers.home.google.com/automations/schema/basics.md.txt#spectrumhsv) | Spectrum HSV value. Optional <br /> To use this field, all the following fields CANNOT be used: *temperature* , *spectrumRGB* , *name* <br /> Some devices may not support this field. |
| `hue` | [Number](https://developers.home.google.com/automations/schema/basics.md.txt#number) | Hue. Required |
| `saturation` | [Number](https://developers.home.google.com/automations/schema/basics.md.txt#number) | Saturation. Required |
| `value` | [Number](https://developers.home.google.com/automations/schema/basics.md.txt#number) | Value. Required |

## Examples

```yaml
actions:
- type: device.command.ColorAbsolute
  devices: My Device - Room Name
  color:
    name: blue
```