set_light_state
Set a light's power, brightness, color temperature, or effect by ID, with optional transition time and alert.
Instructions
Control a light's power, brightness, colour, or effect.
Args: light_id: Numeric light ID. on: True to turn on, False to turn off. brightness: Brightness 1–254 (only when on=true). hue: Hue 0–65535. saturation: Saturation 0–254. color_temp: Colour temperature in mireds (153–500; lower=cooler). xy: CIE xy colour as [x, y] (each 0.0–1.0). transition_time: Transition duration in 1/10ths of a second (default 4 = 0.4 s). alert: "none", "select" (single blink), or "lselect" (15-second blink cycle). effect: "none" or "colorloop".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | ||
| xy | No | ||
| hue | No | ||
| alert | No | ||
| effect | No | ||
| light_id | Yes | ||
| brightness | No | ||
| color_temp | No | ||
| saturation | No | ||
| transition_time | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |