没有 AWS 的 Alexa Smarthome-Skill

Alexa Smarthome-Skill without AWS

我有点搞不懂atm。

是否可以在不将其托管在 AWS 上的情况下构建 Alexa Smarthome Skill。

我最后使用的自定义技能是 Alexa-App,但据我所知,它不支持 Amazon 的 Smarthome-API。我也没有找到任何支持 Smarthome-API.

的库

也许你可以帮我找到一个库,这样我就可以在我自己的服务器上托管我的智能家居技能。

首选语言:JavaScriptRuby

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

不,不是——总之不完全是。

A​​lexa 支持完全在外部托管 自定义 技能。他们称此为 "hosting a skill as a web service"——即 Alexa 可以向其发送请求的 web-accessible 端点。然而:

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

Lambda 中的智能家居技能必须 运行。当然,智能家居技能的 Lambda 函数可以向 "device cloud" 发出自己的外部请求——无论这对您意味着什么,并且可能涉及您自己的服务器——但这是使用 HTTPS 请求完成的或使用您可能使用的任何其他自定义协议的请求,无论哪种方式,从 Alexa 调用的 Lambda 函数内部。

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