in alexa/skills/smarthome/AlexaResponse.js [120:140]
createPayloadEndpoint(opts) {
if (opts === undefined) opts = {};
// Return the proper structure expected for the endpoint
let endpoint =
{
"capabilities": this.checkValue(opts.capabilities, []),
"description": this.checkValue(opts.description, "Sample Endpoint Description"),
"displayCategories": this.checkValue(opts.displayCategories, ["OTHER"]),
"endpointId": this.checkValue(opts.endpointId, 'endpoint-001'),
// "endpointId": this.checkValue(opts.endpointId, 'endpoint_' + (Math.floor(Math.random() * 90000) + 10000)),
"friendlyName": this.checkValue(opts.friendlyName, "Sample Endpoint"),
"manufacturerName": this.checkValue(opts.manufacturerName, "Sample Manufacturer")
};
if (opts.hasOwnProperty("cookie"))
endpoint["cookie"] = this.checkValue('cookie', {});
return endpoint
}