Alexa Smarthome-Skill without AWS

心已入冬 提交于 2019-12-11 14:24:59

问题


Im a little confuse atm.

Is it possible to build a Alexa Smarthome Skill without hosting it on AWS.

For my last custom skill I used Alexa-App but this doesn't support the Smarthome-API from Amazon, as far as I know. Also I did not found any library that does support the Smarthome-API.

Maybe you can Help me find a lib, so I can host my Smart home-Skill on my own Server.

Pref language: JavaScript and Ruby


回答1:


Is it possible to build a Alexa Smarthome Skill without hosting it on AWS.

No, it is not -- not entirely, anyway.

Alexa supports hosting custom skills entirely externally. They call this "hosting a skill as a web service" -- that is, a web-accessible endpoint that Alexa can send requests to. However:

Web services can only be used for custom skills.

https://developer.amazon.com/docs/custom-skills/host-a-custom-skill-as-a-web-service.html

Smart Home Skills must be run in Lambda. Of course, the Lambda function for a Smart Home Skill can make is own external requests to the "device cloud" -- whatever that means to you, and which may involve servers of your own -- but this is done using either HTTPS request or requests using any other custom protocol you might use, either way, from inside the Lambda function that Alexa invokes.

Your skill code, which is hosted as a Lambda function receives and parses the directive, validating the authentication information. Your skill communicates with your systems, or device cloud, using communication channels you've defined to turn on the customer’s kitchen light. (emphasis added)

https://developer.amazon.com/docs/smarthome/understand-the-smart-home-skill-api.html



来源:https://stackoverflow.com/questions/49496045/alexa-smarthome-skill-without-aws

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!