Alexa.BrightnessController interface in your Alexa add-on so that users can control the brightness of devices, such as light bulbs. For more details about smart home add-ons, see Connect Your Device Cloud with Smart Home Add-ons.
Use the Alexa.BrightnessController interface for devices that you know support brightness control instead of the more general Alexa.PercentageController interface. If you want to control the power level of an endpoint such as a dimmer switch, use the Alexa.PowerLevelController interface instead.
For the list of languages that the Alexa.BrightnessController 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
TheAlexa.BrightnessController interface uses the pre-built voice interaction model. After the user says one of the following utterances, Alexa sends a corresponding directive to your add-on.
The following examples show some user utterances:
- Dutch
- English (All)
- French (All)
- German
- Hindi
- Italian
- Japanese
- Portuguese
- Spanish (All)
Reportable properties
TheAlexa.BrightnessController interface uses the brightness property as the primary property. The property is an integer with valid values from 0 to 100 inclusive. If you use the brightness property to represent a change, valid values are from –100 to 100 inclusive.
Discovery
You describe endpoints that supportAlexa.BrightnessController 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 aDiscover.Response message for a light that supports the Alexa.BrightnessController and Alexa.ColorController interfaces.
Directives
Alexa sends the followingAlexa.BrightnessController interface directives to your add-on.
SetBrightness directive
Support theSetBrightness directive so that users can set the brightness value of a device.
The following examples show user utterances:
- Dutch
- English (All)
- French (All)
- German
- Hindi
- Italian
- Japanese
- Portuguese
- Spanish (All)
SetBrightness directive example
The following example shows a request to set the brightness to 50 percent.SetBrightness directive payload
The following table shows the payload details for theSetBrightness directive.
| Property | Description | Type | Required |
|---|---|---|---|
brightness | Identifies the percentage brightness to set the device to. If the device is OFF, turn on the device at this brightness level. | Integer | Yes |
SetBrightness response
If you handle aSetBrightness directive successfully, respond with an Alexa.Response event. A successful response confirms that the endpoint completed the requested action.
Include the values of all properties that changed in the context object. You can respond synchronously or asynchronously. If you respond asynchronously, include a correlation token and a scope with an authorization token.
The following example shows a SetBrightness response.
SetBrightness directive error handling
If you can’t handle aSetBrightness directive successfully, respond with an Alexa.ErrorResponse event.
AdjustBrightness directive
Support theAdjustBrightness directive so that users can adjust the brightness value of a device.
The following examples show user utterances:
- Dutch
- English (All)
- French (All)
- German
- Italian
- Hindi
- Japanese
- Portuguese
- Spanish (All)
AdjustBrightness directive example
The following example shows a request to adjust the brightness lower by 25 percent.AdjustBrightness directive payload
The following table shows the payload details for theAdjustBrightness directive.
| Property | Description | Type | Required |
|---|---|---|---|
brightnessDelta | Amount by which to change the brightness. If the device is OFF, turn on the device at the adjusted brightness level. | Integer | Yes |
AdjustBrightness response
If you handle anAdjustBrightness directive successfully, respond with an Alexa.Response event. A successful response confirms that the endpoint completed the requested action.
Include the values of all properties that changed in the context object. You can respond synchronously or asynchronously. If you respond asynchronously, include a correlation token and a scope with an authorization token.
The following example shows an AdjustBrightness response.
AdjustBrightness directive error handling
If you can’t handle anAdjustBrightness directive successfully, respond with an Alexa.ErrorResponse event.
State reporting
Alexa sends aReportState 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 aChangeReport 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.

