我的自定义Alexa技能可以打开和关闭另一个供应商的灯吗?

问题描述 投票:0回答:1

我希望我的自定义技能能够打开和关闭Wemo或TP-Link开关/插座。 Alexa Skills Kit中是否有一些API允许我打开和关闭家用设备,类似于Alexa Routine如何打开和关闭设备?

alexa-skills-kit smarthomeskill
1个回答
1
投票

1.- When creating the skill, choose the "Smart Home" pre-build model

2:Set up the endpoint

3.- Set up the Account linking so the user can link their TPLink or Wemo account

4.-将Alexa智能家居技能适配器示例作为模板https://github.com/awslabs/serverless-application-model/blob/master/examples/apps/alexa-smart-home-skill-adapter/index.js

5.- Choose Alexa Smart Home as the trigger to your Lambda funcion - assuming you will use AWS as backend

6.-确保实现以下两个功能:

function handleDiscovery(request, callback)
function handleControl(request, callback)

7.-智能家居请求将使用对帐户链接信息访问的TPLink和Wemo云服务的API调用来实现(步骤3)

祝好运 !

© www.soinside.com 2019 - 2024. All rights reserved.