Alexa.ChangeReport events, you can use the smart home debugger to test and debug your smart home add-on. By using the smart home debugger, you can view the Alexa.ChangeReport, Alexa.AddOrUpdateReport, and Alexa.DeleteReport events that Alexa receives from your add-on, including your JSON, and any processing errors.
If you implement the Alexa.RTCSessionController interface in your Alexa add-on, also see Use the Smart Home Debugger for WebRTC Add-ons.
For details about other test tools, see Test and Debug Your Smart Home Add-on.
Prerequisites
To use the smart home debugger, your smart home add-on must sendAlexa.ChangeReport, Alexa.AddOrUpdateReport, or Alexa.DeleteReport events to Alexa. You identify the properties that you proactively report in your discovery response. For details about change reports, see Understand State and Change Reporting.
Accessing the smart home debugger
To access the smart home debugger, you use the Alexa developer console. To view the smart home debugger- Sign in to the Alexa developer console.
- Open the smart home add-on associated with your smart home device.
- Open the Test page.
- Enable testing for the add-on.
- At the top of the page, select Device Log and Smart Home Debugger.
- In the Smart Home Debugger section of the page, use the toggle to enable Smart Home debugger.
Alexa.ChangeReport, Alexa.AddOrUpdateReport, or Alexa.DeleteReport event to Alexa, you see the event information in the device log.
Viewing events
The smart home debugger shows theAlexa.ChangeReport, Alexa.AddOrUpdateReport, and Alexa.DeleteReport events that Alexa receives from your add-on, for the Amazon account that you used to sign in to the Alexa developer console. Each event in the device log contains a JSON document with details about the event that Alexa received. The following is an image of the smart home debugger.

Smart Home Debugger
ChangeReport event with success example
The following example shows the log in the smart home debugger for anAlexa.ChangeReport event that Alexa processes successfully.
ChangeReport event with error example
The following example shows the log in the smart home debugger for anAlexa.ChangeReport event that Alexa is unable to process successfully, because the request contains errors. For details, see understanding event errors.
Understanding event errors
When your add-on sends anAlexa.ChangeReport, Alexa.AddOrUpdateReport, or Alexa.DeleteReport event to the Alexa event gateway, you receive an HTTP response from the gateway. For the full list of possible HTTP response codes, see Send Events to the Alexa Event Gateway.
When your add-on receives a 202 Accepted response from the gateway, it means that Alexa received your event request successfully. However, there might be errors in the event message that prevent Alexa from processing the event correctly. In that case, the debugger log contains a SmartHomeChangeReportFailure, SmartHomeAddOrUpdateReportFailure, or SmartHomeDeleteReportFailure event that contains an array of errors in the payload.
Change report errors
The following table lists the error codes that you might see in the smart home debugger for aSmartHomeChangeReportFailure.
AddOrUpdate report errors
The following table lists the error codes that you might see in the smart home debugger for aSmartHomeAddOrUpdateReportFailure.
| Error Code | Description |
|---|---|
INVALID_REQUEST_EXCEPTION | The request is invalid for one of the following reasons:
|
Delete report errors
The following table lists the error codes that you might see in the smart home debugger for aSmartHomeDeleteReportFailure.
| Error Code | Description |
|---|---|
INVALID_REQUEST_EXCEPTION | The request is invalid for one of the following reasons:
|

