Alexa.ProactiveNotificationSource interface in your Alexa add-on so that Alexa can notify a customer when their device needs attention. For example, Alexa can notify the customer when their washing machine cycle completes, or when their oven reaches the target preheat temperature.
Alexa delivers the notification in the form of an announcement. First, the customer must opt in to announcement notifications in the Alexa app. Then, based on the configured notification triggers, Alexa immediately broadcasts the resulting announcements on the customer’s Amazon Echo devices. Customers can opt out of announcements for each device.
You implement the Alexa.ProactiveNotificationSource interface with other interfaces that provide functionality for your device. You can use Alexa.ProactiveNotificationSource with one of the following interfaces:
For the list of languages that the Alexa.ProactiveNotificationSource interface supports, see List of Alexa Interfaces and Supported Languages. For the definitions of the message properties, see Alexa Interface Message and Property Reference.
About proactive notifications
You configure proactive notifications for your device in your discovery response. Here, you define the conditions that trigger announcements to the customer. As soon as your add-on sends anAlexa.ChangeReport that indicates a device needs attention, Alexa delivers the announcement on the customer’s Echo devices. Announcements are supported on Echo devices, such as an Echo Dot, Echo Plus, Echo Show, or Echo Spot.
Announcements for cooking
You can use theAlexa.Cooking interface to notify the customer about the status of their food or when your appliance requires attention. To enable announcements, you include the cooking statuses that your device supports in the discovery response. For an example discovery response, see the Enable announcements for cooking appliances.
Later, you send a Alexa.ChangeReport event to Alexa to report a change to the status. When the Alexa.ChangeReport contains a CookingStatus value that has a resulting announcement, Alexa plays the announcement on the customer’s Echo devices immediately. For example: For details about cooking statuses that trigger announcements, see CookingStatus.
Announcements for device state
You can use theAlexa.ModeController and Alexa.RangeController interfaces to notify the customer when your device requires attention. To enable announcements, you map each device property to a stateMappings value, such as Alexa.States.Done, Alexa.States.Full or Alexa.States.Stuck, and include a semantics object in your discovery response. For an example discovery response, see Enable device state announcements with semantics.
Later, you send a Alexa.ChangeReport event to Alexa to report a change to your device. When the Alexa.ChangeReport contains a property value mapped to one of the Alexa.States values, Alexa plays the announcement on the customer’s Echo devices immediately.
Announcements by interface
You can useAlexa.ModeController and Alexa.RangeController to send announcements for the following device states.
- English (All)
- French (All)
- German (DE)
- Italian (IT)
- Spanish (All)
| State mapping value | Interface | Announcement |
|---|---|---|
Alexa.States.Done | Alexa.ModeController | |
Alexa.States.Stuck | Alexa.ModeController | |
Alexa.States.Full | Alexa.RangeController |
Announcement examples
The following examples show some announcements for state of a vacuum:- English (All)
- French (All)
- German
- Italian
- Spanish
Reportable properties
TheAlexa.ProactiveNotificationSource interface doesn’t define any reportable properties
Discovery
You describe endpoints that support theAlexa.ProactiveNotificationSource interface by using the standard discovery mechanism described in Alexa.Discovery.
The Alexa.ProactiveNotificationSource interface doesn’t have any reportable properties. Set retrievable and proactivelyReported to true as appropriate for other interfaces that you implement in your add-on.
To let Alexa know the health of your device, also implement the Alexa.EndpointHealth interface.
Configuration object
In addition to the usual discovery response fields, forAlexa.ProactiveNotificationSource, include a configuration object that contains an array of notificationConditions that trigger the notification.
NotificationConditions object
To define the conditions that trigger announcements, include thenotificationConditions array. For generic controllers, include an NotificationConditions object for each controller instance that supports notifications. For the Cooking interface, you must include one NotificationConditions object only.
| Field | Description | Type | Required |
|---|---|---|---|
conditionType | The type of condition that triggers the notification. Valid value: PropertyValueChange | String | Yes |
property | The property to evaluate the condition against. | A Property object | Yes |
valueChangeCondition | The condition that triggers the notification. If the condition evaluates to true, Alexa sends an announcement. | A ValueChangeCondition object | Yes |
Property object
TheProperty object defines the specific property of an interface that triggers notifications.
| Property | Description | Type | Required |
|---|---|---|---|
type | The type of interface. Valid value: AlexaInterface | string | Yes |
interface | Name of the Alexa interface that enables announcements. Valid values: Alexa.Cooking, Alexa.ModeController, Alexa.RangeController | String | Yes |
instance | (Optional) For generic controller interfaces, the instance of the interface. For example, Dryer.Temperature.The Alexa.Cooking interface doesn’t support instances. | String | No |
name | Name of the property that triggers notifications. | String | Yes |
ValueChangeCondition object
TheValueChangeCondition object defines the condition to evaluate against the property value. If the condition evaluates to true, Alexa sends an announcement. For device state notifications, Alexa sends the announcement only when the current state is different from the previous state.
To evaluate the property value against multiple cooking statuses, use StringIn. To evaluate the property value against multiple states, use StateIn.
| Property | Description | Type | Required |
|---|---|---|---|
comparator | The comparison operator. Valid comparators for cooking: StringEquals, StringIn Valid comparators for device state: StateEquals, StateIn | string | Yes |
value | The values to which to compare the property value against. For StringEquals and StateEquals comparators, include a single value.For StringIn and StateIn comparators, include a list of values. | String or List of Strings | Yes |
Enable announcements for cooking appliances example
The following example shows aDiscover.Response message for an oven that uses the Alexa.Cooking interfaces. The example includes the Alexa.ProactiveNotificationSource interface to enable announcements when cooking completes.
Show/hide discovery response
Show/hide discovery response
Enable announcements with semantics example
The following example shows aDiscover.Response message for a clothes dryer that uses the Alexa.ProactiveNotificationSource interface and semantics for announcements. The example uses three instances of the ModeController interface: one for the dryer temperature, one for the dryer cycle, and one for the lint filter. The example shows notification triggers enabled for two of the controllers by using the Alexa.ProactiveNotificationSource interface: to notify customers when the dryer cycle completes, and to notify customers when the lint filter is full.
Show/hide discovery response
Show/hide discovery response
Change reporting
You send anAlexa.ChangeReport event to report proactively on changes in the state of an endpoint. You identify the properties that you proactively report in your discovery response. For details about change reports, see Understand State and Change Reporting.
Report dryer cycle completed example
The followingAlexa.ChangeReport results in the following announcement:
Report full vacuum bin example
The followingAlexa.ChangeReport results in the following announcement:
Report cooking status example
The followingAlexa.ChangeReport results in the following announcement:

