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.ThermostatController directive to your smart home add-on and you can’t handle it successfully, respond with an Alexa.ThermostatController.ErrorResponse event. For more details, see Alexa.ThermostatController. For generic errors, use the Alexa.ErrorResponse event.

ErrorResponse event

In the payload for the Alexa.ThermostatController.ErrorResponse, specify the type of the error and include a message with information about the error. For the list of Alexa.ThermostatController 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

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.ThermostatController error types.
Error TypeDescription
REQUESTED_SETPOINTS_TOO_CLOSEThe setpoints are too close together. When you send this error response, optionally include a Temperature object named minimumTemperatureDelta that indicates the minimum allowable difference between setpoints. For an example, see REQUESTED_SETPOINTS_TOO_CLOSE example.
THERMOSTAT_IS_OFFThe thermostat is off and can’t be turned on.
UNSUPPORTED_THERMOSTAT_MODEThe thermostat doesn’t support the specified mode.
DUAL_SETPOINTS_UNSUPPORTEDThe thermostat doesn’t support dual setpoints in the current mode.
TRIPLE_SETPOINTS_UNSUPPORTEDThe thermostat doesn’t support triple setpoints in the current mode.
UNWILLING_TO_SET_SCHEDULEThe thermostat can’t set the specified schedule.
UNWILLING_TO_SET_VALUEThe thermostat can’t set the value because it can damage the device or appliance.
In addition to the Alexa.ThermostatController error types, you can also use Alexa error types such as TEMPERATURE_VALUE_OUT_OF_RANGE. For more details, see Alexa.ErrorResponse error type values.

Alexa.ThermostatController.ErrorResponse examples

The following examples show the payload for different error types.

REQUESTED_SETPOINTS_TOO_CLOSE

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

THERMOSTAT_IS_OFF

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

REQUESTED_SETPOINTS_TOO_CLOSE

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

TEMPERATURE_VALUE_OUT_OF_RANGE

The following is an example error response for the TEMPERATURE_VALUE_OUT_OF_RANGE error type from the Alexa.ErrorResponse interface. Include a validRange object in the payload to specify the minimum and maximum acceptable temperatures. The minimum and maximum values contain Temperature objects.
Last modified on November 22, 2023