Alexa Discovery 技能 - 返回连接的设备

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

我正在开发智能家居 Alexa Skill 和相应的 Lambda 函数。有很多演示,它们似乎都返回预设文本。有没有办法通过 Lambda/JS 获取用户帐户的已连接设备列表?

这样的样本:

const USER_DEVICES = [
{
    // This id needs to be unique across all devices discovered for a given manufacturer
    applianceId: 'unique-id-for-non-dimmable-bulb-specific-to-user1',
 },{},{},...]

我很想实现更像这样的代码:

const USER_DEVICES = Some.Alexa.Function.GetConnectedDevices()

谢谢!

alexa-skills-kit alexa-smart-home-skill
1个回答
0
投票

您检查过智能家居技能API了吗?它可以让您与连接的设备交互并获取有关它们的数据:https://developer.amazon.com/docs/smarthome/understand-the-smart-home-skill-api.html

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