Alexa.SecurityPanelController directive to your smart home add-on and you can’t handle it successfully, respond with an Alexa.SecurityPanelController.ErrorResponse event. For more details, see Alexa.SecurityPanelController Interface.
ErrorResponse event
In the payload for theAlexa.SecurityPanelController.ErrorResponse, specify the type of the error and include a message with information about the error. For the list of Alexa.SecurityPanelController 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 payload properties
| Field | Description | Type | Required |
|---|---|---|---|
type | The type of error. Alexa shares this with the customer. | String | Yes |
message | The error message for the error. Alexa does not share this with the customer. | String | Yes |
ErrorResponse event format
Error type values
The following table shows the validAlexa.SecurityPanelController error type values.
| Value | Description |
|---|---|
AUTHORIZATION_REQUIRED | The current state of the security system is ARMED_AWAY, and the user tries to re-arm the system as ARMED_STAY or ARMED_NIGHT. See an example here. For more details, see arming a security system. |
BYPASS_NEEDED | The security panel has open zones that the user must bypass before you can arm the security system. If you want users to bypass errors by using voice commands, include a list of the endpoints that need bypassing in the endpointsNeedingBypass field in the payload of your error response. Specify the friendly name for each endpoint so that Alexa can say it to the user. Include the endpointId for sensors that implement the Alexa.ContactSensor and Alexa.MotionSensor interfaces. If you don’t include a list of endpoints in the payload of your error response, Alexa tells the user to bypass manually. See an example here. For more details, see bypass by voice option. |
NOT_READY | The security panel is not ready for arming and disarming. Use this error type when a user tries to control the security panel while it’s in installation mode. |
UNAUTHORIZED | The PIN code is not correct. |
UNCLEARED_ALARM | The security panel has an active alarm and the user tries to arm it. See an example here. |
UNCLEARED_TROUBLE | The security panel has a trouble condition. |
Alexa.SecurityPanelController error types, you can also use Alexa error types. For more details, see Alexa.ErrorResponse error type values.
Alexa.SecurityPanelController.ErrorResponse examples
The following examples show the payload for different error types.UNAUTHORIZED
The following is an example error response for theUNAUTHORIZED error type.
AUTHORIZATION_REQUIRED
The following is an example error response for theAUTHORIZATION_REQUIRED error type. Use this error type when the user attempts to switch directly from ARMED_AWAY to ARMED_NIGHT or ARMED_STAY without disarming the system first. For more details, see arming a security system.
BYPASS_NEEDED
The following is an example error response for theBYPASS_NEEDED error type. Use this error type when there are open zone errors and the user must bypass the errors to arm the system. In this example you provide a list of endpoints that need to be bypassed, which enables the user to bypass the errors by voice. For more details, see bypass by voice option.
UNCLEARED_ALARM
The following is an example error response for theUNCLEARED_ALARM error type. Use this error type when the user attempts to arm a security system that’s in an active alarm state.

