【问题标题】:Can my custom Alexa skill turn another vendor's light on and off?我的自定义 Alexa 技能可以打开和关闭其他供应商的灯吗?
【发布时间】:2019-03-05 16:58:49
【问题描述】:

我希望我的自定义技能能够打开和关闭 WeMo 或 TP-Link 开关/插座。 Alexa Skills Kit 中是否有一些 API 可以让我打开和关闭家庭设备,类似于 Alexa Routine 可以打开和关闭设备的方式?

【问题讨论】:

    标签: alexa-skills-kit smarthomeskill


    【解决方案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 Smart Home技能适配器示例为模板 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)

    祝你好运!

    【讨论】:

    • 谢谢!我会试一试并报告。
    猜你喜欢
    • 2020-02-23
    • 2021-08-21
    • 2020-02-27
    • 1970-01-01
    • 1970-01-01
    • 2019-02-18
    • 1970-01-01
    • 2018-12-31
    • 2018-12-21
    相关资源
    最近更新 更多