Set light color
set_colorSet light color and brightness using hex, RGB, or color temperature. Customize transition time and brightness level.
Instructions
Set the color and brightness of the user's lights. Provide exactly one of: hex (e.g. "#FF4076"), rgb ({ r, g, b } each 0-255), or ct (color temperature 2900-7000 kelvin). Brightness is 0-100; transition and duration are in milliseconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ct | No | Color temperature in kelvin, 2900-7000. | |
| hex | No | Hex color like "#FF4076". Mutually exclusive with rgb/ct. | |
| rgb | No | RGB color, each channel 0-255. | |
| hold | No | If true, keep this color as the new default state. | |
| duration | No | How long the color holds in ms. Defaults to 4000. | |
| brightness | No | Brightness 0-100. Defaults to 100. | |
| transition | No | Transition time in ms. Defaults to 0. |