Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get started
Connect with Matter
Alexa Connect Kit
Add-ons
Certify
Resources
Skip to main content
Implement the Alexa.ColorTemperatureController interface in your Alexa add-on so that users can control the color temperature of devices that support tunable white light, such as light bulbs. For more details about smart home add-ons, see Connect Your Device Cloud with Smart Home Add-ons. For the list of languages that the ColorTemperatureController interface supports, see List of Alexa Interfaces and Supported Languages. For the definitions of the message properties, see Alexa Interface Message and Property Reference.

Utterances

The Alexa.ColorTemperatureController interface uses the pre-built voice interaction model. After the user says one of these utterances, Alexa sends a corresponding directive to your add-on. The following examples show some user utterances:





Reportable properties

The Alexa.ColorTemperatureController interface uses the colorTemperatureInKelvin property as the primary property. You identify the properties that you support in your discovery response. The colorTemperatureInKelvin property represents the color temperature in degrees Kelvin of an endpoint, and is used by endpoints that support tunable white light. Valid values range from 1,000 to 10,000 absolute Kelvin. The following table lists the color temperature values that correspond to the user utterance. If an endpoint doesn’t support a value that a user requests, set the endpoint to the nearest possible value.

Discovery

You describe endpoints that support Alexa.ColorTemperatureController by using the standard discovery mechanism described in Alexa.Discovery. Set retrievable to true for all the interfaces and properties that you report when Alexa sends your add-on a state report request. Set proactivelyReported to true for interfaces and properties that you proactively report to Alexa in a change report. For the full list of display categories, see display categories. To let Alexa know the health of your device, also implement the Alexa.EndpointHealth interface.

Discover response example

The following example shows a Discover.Response message for a light that supports the Alexa.PowerController, Alexa.ColorTemperatureController, and Alexa.EndpointHealth interfaces.

Directives

Alexa sends the following Alexa.ColorTemperatureController interface directives to your add-on.

SetColorTemperature directive

Support the SetColorTemperature directive so that users can set the color temperature of an endpoint. The following examples show user utterances:

SetColorTemperature directive example

The following example shows a SetColorTemperature directive that Alexa sends to your add-on to set the temperature to 5500 degrees Kelvin.

SetColorTemperature directive parameters

SetColorTemperature response

If you handle a SetColorTemperature directive successfully, respond with an Alexa.Response event. A successful response confirms that the endpoint completed the requested action. You can respond synchronously from your Lambda function or asynchronously through the Alexa event gateway. If you choose to respond asynchronously, include a correlation token and a scope with an authorization token. For details about both response types, see Alexa.Response. In the context object, include the values of all properties that changed. The following example shows a SetColorTemperature response.

SetColorTemperature directive error handling

If you can’t handle a SetColorTemperature directive successfully, respond with an Alexa.ErrorResponse event. Use the NOT_SUPPORTED_IN_CURRENT_MODE error type if the device is in a mode in which it can’t be controlled with a color temperature directive. For example, if a light is set to an HSB color, return an error, and Alexa responds to the user with

IncreaseColorTemperature directive

Support the IncreaseColorTemperature directive so that users can raise the color temperature of an endpoint. This directive doesn’t specify a specific value, but asks for a cooler or whiter setting relative to the current device setting. You can choose how much to adjust the setting of the device. If you can’t increment the setting further, set the device to the maximum color temperature. The following examples show user utterances:

IncreaseColorTemperature directive example

The following example shows a IncreaseColorTemperature directive that Alexa sends to your add-on.

IncreaseColorTemperature directive parameters

The IncreaseColorTemperature directive doesn’t define any payload parameters.

IncreaseColorTemperature response

If you handle a IncreaseColorTemperature directive successfully, respond with an Alexa.Response event. A successful response confirms that the endpoint completed the requested action. You can respond synchronously from your Lambda function or asynchronously through the Alexa event gateway. If you choose to respond asynchronously, include a correlation token and a scope with an authorization token. For details about both response types, see Alexa.Response. In the context object, include the values of all properties that changed. The following example shows a IncreaseColorTemperature response indicating that the new color temperature is 7000 degrees Kelvin.

IncreaseColorTemperature directive error handling

If you can’t handle a IncreaseColorTemperature directive successfully, respond with an Alexa.ErrorResponse event. Use the NOT_SUPPORTED_IN_CURRENT_MODE error type if the device is in a mode in which it can’t be controlled with a color temperature directive. For example, if a light is set to an HSB color, return an error, and Alexa responds to the user with

DecreaseColorTemperature directive

Support the DecreaseColorTemperature directive so that users can lower the color temperature of an endpoint. This directive doesn’t specify a specific value, but asks for a warmer or softer setting relative to the current device setting. You can choose how much to adjust the setting of the device. If you can’t increment the setting further, set the device to the minimum color temperature. The following examples show user utterances:

DecreaseColorTemperature directive example

The following example shows a DecreaseColorTemperature directive that Alexa sends to your add-on.

DecreaseColorTemperature directive parameters

The DecreaseColorTemperature directive doesn’t define any payload parameters.

DecreaseColorTemperature response

If you handle a DecreaseColorTemperature directive successfully, respond with an Alexa.Response event. A successful response confirms that the endpoint completed the requested action. You can respond synchronously from your Lambda function or asynchronously through the Alexa event gateway. If you choose to respond asynchronously, include a correlation token and a scope with an authorization token. For details about both response types, see Alexa.Response. In the context object, include the values of all properties that changed. The following example shows a DecreaseColorTemperature response that indicates the new color temperature is 2200 degrees Kelvin.

DecreaseColorTemperature directive error handling

If you can’t handle a DecreaseColorTemperature directive successfully, respond with an Alexa.ErrorResponse event. Use the NOT_SUPPORTED_IN_CURRENT_MODE error type if the device is in a mode in which it can’t be controlled with a color temperature directive. For example, if a light is set to an HSB color, return an error, and Alexa responds to the user with

State reporting

Alexa sends a ReportState directive to request information about the state of an endpoint. When Alexa sends a ReportState directive, you send a StateReport event in response. The response contains the current state of all the retrievable properties in the context object. You identify your retrievable properties in your discovery response. For details about state reports, see Understand State and Change Reporting.

StateReport response example

Change reporting

You send a ChangeReport event to report changes proactively in the state of an endpoint. You identify the properties that you proactively report in your discovery response. For details about change reports, see Understand State and Change Reporting. For lighting endpoints that support both the ColorController and ColorTemperatureController interfaces, report the state of color when an endpoint is set to a color, and report the state of colorTemperatureInKelvin when an endpoint is set to a shade of white.

ChangeReport event example

Last modified on September 30, 2026