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
Implement the state reporting interfaces in your Alexa add-on so that users can ask Alexa for the state of their device. For example, a customer might check the Alexa app for the status of a light on a different floor of their house. Alexa sends an Alexa.ReportState directive to query your add-on for the current state of all retrievable properties of an interface. You respond with an Alexa.StateReport. In this example, the Alexa.ReportState directive includes the endpoint ID of the light. Your add-on must be ready to respond to an Alexa.ReportState directive at any time. For details about state reporting, see Understand State and Change Reporting. For the definitions of the message properties, see Alexa Interface Message and Property Reference.

Discovery

During discovery, you identify the interfaces that your add-on supports and the retrievable properties of each interface. When you set retrievable = true for an interface, Alexa can query your add-on for the current state of the properties of that interface.

Discovery response example

The following example shows a Discover.Response message for an Alexa add-on that controls a light and supports the Alexa.PowerController, Alexa.BrightnessController, and Alexa.EndpointHealth interfaces. The powerState, brightness, and connectivity properties are retrievable.

Directives

ReportState directive

Alexa sends an Alexa.ReportState directive when it needs the current state of an endpoint to respond to a query. Alexa requests state in the following cases:
  • A customer asks Alexa about a device by voice, such as “Alexa, is the front door locked?”
  • A customer views the device in the Alexa app or on an Alexa-enabled device with a screen, such as the Amazon Echo Hub.
  • An automation, such as an Alexa routine, checks the state of a device before it runs.
  • An ambient feature checks the state of a device before it acts for the customer. For example, Alexa might adjust a thermostat based on occupancy.
When Alexa sends an Alexa.ReportState directive to request the state of an endpoint, you send an Alexa.StateReport response. This response contains the current state of all retrievable properties on the endpoint.

ReportState directive example

The following example shows an Alexa.ReportState directive that Alexa sends to your add-on. The endpointId identifies the device.

StateReport response

If your add-on handles the request successfully, send the Alexa.StateReport response synchronously within eight seconds. For a limited set of interfaces, you can send the Alexa.StateReport response asynchronously instead. For details about the interfaces that support a deferred response, see Deferred response. If the endpoint implements these interfaces, and you can’t get the device state within eight seconds, follow these steps:
  1. Send a synchronous Alexa.DeferredResponse within eight seconds.
  2. Send the Alexa.StateReport response asynchronously to the Alexa event gateway.
Specify the following information in the Alexa.StateReport response:
  • Report the state of all the retrievable properties in the context object.
  • Identify the endpoint for the report in the endpoint object.
  • Set the payload to an empty object.
  • Include the correlationToken set to the value from the Alexa.ReportState request.
  • If you send the response asynchronously, include the access token in the endpoint.scope object.
To let Alexa know the health of your device, include Alexa.EndpointHealth in your response.

StateReport response example

The following example shows the states of all retrievable properties.

StateReport response properties

PropertyDescriptionTypeRequired
eventIdentifies the endpoint for the report.
Include an empty payload object.
Event objectYes
contextReport the state of all the retrievable properties.Context objectYes

ReportState directive error handling

If you can’t handle an Alexa.ReportState directive successfully, respond with an Alexa.ErrorResponse event. If you can’t report the state of all the properties because the endpoint is unreachable and you haven’t cached the values, send an Alexa.ErrorResponse of type BRIDGE_UNREACHABLE or ENDPOINT_UNREACHABLE.
Last modified on September 28, 2026