Alexa.PowerController interface in your Alexa add-on so that users can turn their smart home devices on and off. 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 PowerController 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
When you use theAlexa.PowerController interface, the voice interaction model is already built for you. 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.PowerController interface uses the powerState property as the primary property. The valid values are ON or OFF.
Discovery
You describe endpoints that supportAlexa.PowerController using the standard discovery mechanism described in Alexa.Discovery.
Set retrievable to true for all 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 directives that require user verification before Alexa performs the action, include the verificationsRequired object in your discovery response. For more details, see Directives that require user verification.
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 an Alexa add-on that controls a light and supports the Alexa.PowerController and Alexa.BrightnessController interfaces.
Directives
Alexa sends the followingAlexa.PowerController interface directives to your add-on.
TurnOn directive
Support theTurnOn directive so that users can turn on devices.
The following example shows a user utterance:
- Dutch
- English (All)
- French (All)
- German
- Hindi
- Italian
- Japanese
- Portuguese
- Spanish (All)
TurnOn directive example
The following example illustrates aTurnOn directive that Alexa sends to your add-on.
TurnOn directive payload
TheTurnOn directive doesn’t define any payload parameters.
TurnOn response
If you handle aTurnOn 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 TurnOn response.
TurnOn directive error handling
If you can’t handle aTurnOn directive successfully, respond with an Alexa.ErrorResponse event.
TurnOff directive
Support theTurnOff directive so that users can turn off devices.
The following example shows a user utterance:
- Dutch
- English (All)
- French (All)
- German
- Hindi
- Italian
- Japanese
- Portuguese
- Spanish (All)
TurnOff directive example
The following example illustrates aTurnOff directive that Alexa sends to your add-on.
TurnOff directive payload
TheTurnOff directive doesn’t define a payload.
TurnOff response
If you handle aTurnOff 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 TurnOff response.
TurnOff directive error handling
If you can’t handle aTurnOff 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.
ChangeReport event example
Require user verification
When a user attempts to turn on or turn off a device, you can optionally require the user to verify the action before Alexa performs it. To require user verification, specify which directives you require verification for in yourDiscover.Response. For details, see verificationsRequired object and example for a thermostat that requires user verification.
The following example shows a sample conversation when you require user verification:
- English (All)
- Japanese

