> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Philips Hue: Set Light Color

Set color and brightness of a Philips Hue light or group. Accepts both v1 IDs (e.g., '81', '0') and v2 UUIDs (e.g., '2ec2b2f1-...'). At least one of lightId or groupId must be provided. Ideal for: color animations, mood lighting, dynamic scenes, notifications.

![Philips Hue: Set Light Color logo](https://ai-icon.b3.fun/logo/philips-hue)
Catalog action Integrations pipedream:philips_hue

Set color and brightness of a Philips Hue light or group. Accepts both v1 IDs (e.g., '81', '0') and v2 UUIDs (e.g., '2ec2b2f1-...'). At least one of lightId or groupId must be provided. Ideal for: color animations, mood lighting, dynamic scenes, notifications.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `philips-hue-set-light-color` |
| Category | Integrations |
| Connector | `pipedream:philips_hue` |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `pipedream`, `integration`, `oauth`, `philips-hue`, `smart-home`, `lights`, `color` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `lightId` | `string` | No | ID of the light to control. Accepts v1 IDs \(e.g., '3'\) or v2 UUIDs \(e.g., 'a1b2c3d4-...'\). At least one of lightId or groupId must be provided \(mutually exclusive\). |
| `groupId` | `string` | No | ID of the light group to control. Accepts v1 IDs \(e.g., '81', '0'\) or v2 UUIDs \(e.g., '2ec2b2f1-...'\). At least one of lightId or groupId must be provided \(mutually exclusive\). |
| `color` | `string` | Yes | Hexadecimal color value \(e.g., #FF0000 for red, #00FF00 for green, #0000FF for blue\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | `boolean` | Yes | Whether the action succeeded |
| `data` | `object` | No | Response from Philips Hue API |

## Examples

**Workflow node**

```json
{
  "type": "philips-hue-set-light-color",
  "payload": {
    "color": "#FF5733",
    "lightId": "example-lightId"
  },
  "children": [],
  "connector": {
    "type": "pipedream:philips_hue",
    "id": "conn_pipedream_philips_hue"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/philips-hue-set-light-color/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "color": "#FF5733",
    "lightId": "example-lightId"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.