STEP 1:
Overview
Overview
You may now perform a quick test of the Discovery
request in the Lambda code editor.
discovery
and replace the entire contents in the editor with the following code.{
"directive": {
"header": {
"namespace": "Alexa.Discovery",
"name": "Discover",
"payloadVersion": "3",
"messageId": "1bd5d003-31b9-476f-ad03-71d471922820"
},
"payload": {
"scope": {
"type": "BearerToken",
"token": "access-token-from-skill"
}
}
}
}
{
"event": {
"header": {
"correlationToken": "12345692749237492",
"messageId": "1bd5d003-31b9-476f-ad03-71d471922820",
"name": "Discover.Response",
"namespace": "Alexa.Discovery",
"payloadVersion": "3"
},
"payload": {
"endpoints": [{
"endpointId": "appliance-001",
"friendlyName": "Printer",
"description": "Printer by Sample Manufacturer",
"manufacturerName": "Sample Manufacturer",
"displayCategories": [
"OTHER"
],
"cookie": {},
"capabilities": [
{
"type": "AlexaInterface",
"interface": "Alexa.InventoryLevelSensor",
"version": "3",
"instance": "InventoryLevelSensor-1",
"properties": {
"supported": [{
"name": "level"
}],
"proactivelyReported": true,
"retrievable": true
},
// Other Capabilities here
}
]
}]
}
}
}
When your implementation is completed, and you have tested your Lambda function, you can functionally test your smart home skill to ensure device discovery is working as expected.
replenishmentId
), use the product so that the consumable level drops 20% below the initial levelreplenishmentId
), replace the consumable (i.e. replace the battery or ink cartridge) of the product and leave the device running until at least one ChangeReport
with a new inventory value is sent to AlexaOnce you are satisfied that the skill is performing the two main DRS functionalities (Discovery and Inventory updates) you may submit it for Certification. Please liaise with your account manager to start this process who will reach out within 1-5 business days with the certification status and next steps.
You will need to provide the following information to your Amazon point of contact to initiate certification: