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
If Alexa sends an Alexa.Cooking directive to your smart home add-on and you can’t handle it successfully, respond with an Alexa.Cooking.ErrorResponse event. For an overview of the Alexa.Cooking interfaces, see Build Smart Home Add-ons for Cooking Appliances.

ErrorResponse event

In the payload for the Alexa.Cooking.ErrorResponse, specify the type of the error and include a message with information about the error. For the list of Alexa.Cooking error types, see Error type values. You can send the error response in a synchronous or asynchronous response. For more details, see Alexa.ErrorResponse.

ErrorResponse event format

ErrorResponse event payload properties

Send an Alexa.ErrorResponse in an Event object. Include the following information in the event.payload parameter.
FieldDescriptionTypeRequired
typeThe type of error. Alexa shares this with the customer.StringYes
messageThe error message for the error. Alexa doesn’t share this with the customer.StringYes

Error type values

The following table shows the valid Alexa.Cooking error types.
Error TypeDescription
CHILD_LOCKThe child lock on the appliance is enabled.
COOK_DURATION_TOO_LONGThe requested duration is too long for the appliance to run safely. When you send this error response, include a field in the payload named maxCookTime that indicates the maximum cook time allowed for the current cooking parameters. See example here.
DOOR_CLOSED_TOO_LONGThe door hasn’t been opened and closed recently and the appliance is likely empty. For example, an attempt to start cooking when no food is present.
DOOR_OPENThe appliance door is open. For example, an attempt to start cooking while the door is open.
PREHEAT_REQUIREDThe appliance must be preheated.
PROBE_REQUIREDThe temperature probe must be inserted.
REMOTE_START_NOT_SUPPORTEDCooking remotely isn’t currently supported by the device.
REMOVE_PROBEThe temperature probe must be removed.
REMOTE_START_DISABLEDCooking remotely was disabled and must be re-enabled before cooking.
In addition to the Alexa.Cooking error types, you can also use Alexa error types. For more details, see Alexa.ErrorResponse error type values.

Alexa.Cooking.ErrorResponse examples

The following examples show the payload for different error types.

DOOR_OPEN

The following is an example error response for the DOOR_OPEN error type.

COOK_DURATION_TOO_LONG

The following is an example error response for the COOK_DURATION_TOO_LONG error type.
Last modified on November 22, 2023