{ "event": { "header": { "namespace": "Alexa.Discovery", "name": "Discover.Response", "payloadVersion": "3", "messageId": "Unique identifier, preferably a version 4 UUID" }, "payload": { "endpoints": [ { "endpointId": "Unique ID of the endpoint", "manufacturerName": "manufacturer name", "description": "Smart Garbage Can by Manufacturer", "friendlyName": "garbage can", "displayCategories": [ "OTHER" ], "cookie": {}, "capabilities": [ { "type": "AlexaInterface", "interface": "Alexa.ToggleController", "instance": "GarbageCan.Lid", "version": "3", "properties": { "supported": [ { "name": "toggleState" } ], "proactivelyReported": true, "retrievable": true }, "capabilityResources": { "friendlyNames": [ { "@type": "text", "value": { "text": "Garbage can lid", "locale": "en-US" } }, { "@type": "text", "value": { "text": "Tapa del bote de basura", "locale": "es-MX" } }, { "@type": "text", "value": { "text": "Couvercle de poubelle", "locale": "fr-CA" } } ] }, "semantics": { "actionMappings": [ { "@type": "ActionsToDirective", "actions": [ "Alexa.Actions.Close" ], "directive": { "name": "TurnOff", "payload": {} } }, { "@type": "ActionsToDirective", "actions": [ "Alexa.Actions.Open" ], "directive": { "name": "TurnOn", "payload": {} } } ], "stateMappings": [ { "@type": "StatesToValue", "states": [ "Alexa.States.Closed" ], "value": "OFF" }, { "@type": "StatesToValue", "states": [ "Alexa.States.Open" ], "value": "ON" } ] } }, { "type": "AlexaInterface", "interface": "Alexa", "version": "3" } ] } ] } } }