Alexa.TimeHoldController interface in your Alexa cooking add-on so that users can pause a variety of devices. For example, you can pause a microwave while it’s cooking.
You must use the Alexa.TimeHoldController interface in conjunction with the Alexa.Cooking interface. For details about cooking add-ons, see Build Smart Home Add-ons for Cooking Appliances.
For the list of languages that the Alexa.TimeHoldController 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.TimeHoldController interface uses the pre-built voice interaction model. The following examples show some customer utterances:
- English (All)
Reportable properties
TheAlexa.TimeHoldController interface uses the holdStartTime and holdEndTime properties as the primary properties. Specify the properties in UTC strings in ISO 8601 format, YYYY-MM-DDThh:mm:ssZ.
Discovery
You describe endpoints that supportAlexa.TimeHoldController by using the standard discovery mechanism described in Alexa.Discovery.
Set retrievable to true for the properties that you report when Alexa sends your add-on a state report request. Set proactivelyReported to true for the 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.
Configuration object
In addition to the usual discovery response fields, forTimeHoldController, include a configuration object that contains the following fields.
| Field | Description | Type |
|---|---|---|
allowRemoteResume | True if Alexa can restart the operation on the device. When false, Alexa doesn’t send the Resume directive. Instead, Alexa prompts the user to push start on the device. | Boolean |
Discover response example
The following example shows aDiscover.Response message for a microwave that supports the Alexa.TimeHoldController interface.
Directives
Alexa sends the followingAlexa.TimeHoldController interface directives to your add-on.
Hold directive
Support theHold directive so that customers can pause an action that a device is doing.
The following example shows a customer utterance:
- English (All)
Hold directive example
The following example illustrates aHold directive that Alexa sends to your add-on.
Hold response
If you handle aHold directive successfully, respond with an Alexa.Response event. In the context object, include the values of all relevant properties.
The following example shows a response to a Hold directive.
Hold directive error handling
If you can’t handle aHold directive successfully, respond with an Alexa.ErrorResponse event. If your device supports cooking, you can also respond with an Alexa.Cooking.ErrorResponse event when appropriate.
Resume directive
Support theResume directive so that customers can restart an action that a device is doing.
The following example shows a customer utterance:
- English (All)
Resume directive example
The following example illustrates aResume directive that Alexa sends to your add-on. The payload for the Resume directive is empty.
Resume response
If you handle aResume directive successfully, respond with an Alexa.Response event. In the context object, include the values of all relevant properties.
The following example shows a response to a Resume directive.
Resume directive error handling
If you can’t handle aResume directive successfully, respond with an Alexa.ErrorResponse event. If your device supports cooking, you can also respond with an Alexa.Cooking.ErrorResponse event when appropriate.
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 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.

