【问题标题】:Smart Home Device showing small cog and no commands显示小齿轮且无命令的智能家居设备
【发布时间】:2020-11-07 05:36:36
【问题描述】:

我在 AWS Lambda 中有一个 node.js 脚本,它通过 API Gateway 连接到我的项目。

我已将 actions-on-google 库包含在内,并且我的设备已被发现。但是,根据我选择的设备类型,会影响设备在 Google Home 中是否在图标上显示一个小齿轮(并且没有可用的命令)。

以下工作绝对正常,我可以看到可用的设备和命令:

app.onSync(async (body, headers) => {
  return {
    requestId: body.requestId,
    payload: {
      agentUserId: '123', 
      devices: [{
        id: 'washer-123',
        type: 'action.devices.types.OUTLET',
        traits: [
          'action.devices.traits.OnOff',
          'action.devices.traits.StartStop',
          'action.devices.traits.RunCycle'
        ],
        name: {
          defaultNames: ['My Washer'],
          name: 'Washer',
          nicknames: ['Washer']
        },
        deviceInfo: {
          manufacturer: 'Acme Co',
          model: 'acme-washer',
          hwVersion: '1.0',
          swVersion: '1.0.1'
        },
        attributes: {
          pausable: true
        }
     }]
   },
 }
});

但是,完全相同,但类型更改为 Door 失败,我在 Google Home 中看到的只是应用设置:

app.onSync(async (body, headers) => {
  return {
    requestId: body.requestId,
    payload: {
      agentUserId: '123', 
      devices: [{
        id: 'washer-123',
        type: 'action.devices.types.DOOR',
        traits: [
          'action.devices.traits.OnOff',
          'action.devices.traits.StartStop',
          'action.devices.traits.RunCycle'
        ],
        name: {
          defaultNames: ['My Washer'],
          name: 'Washer',
          nicknames: ['Washer']
        },
        deviceInfo: {
          manufacturer: 'Acme Co',
          model: 'acme-washer',
          hwVersion: '1.0',
          swVersion: '1.0.1'
        },
        attributes: {
          pausable: true
        }
     }]
   },
 }
});

OUTLET 类型相比,DOOR 设备类型是否有任何特定的地方可能导致此操作失败?

【问题讨论】:

    标签: actions-on-google google-home google-smart-home


    【解决方案1】:

    OUTLET 支持Touch controls,但DOOR 不支持。

    【讨论】:

      猜你喜欢
      • 2016-11-22
      • 1970-01-01
      • 2022-01-26
      • 1970-01-01
      • 1970-01-01
      • 2022-06-27
      • 2019-06-18
      • 2020-08-20
      • 1970-01-01
      相关资源
      最近更新 更多