显示小齿轮和无命令的智能家居设备

Smart Home Device showing small cog and no commands

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

我已经包含了 actions-on-google 库,并且我的设备被发现了。但是,根据我 select 作为设备类型,影响设备是否在 Google 主屏幕中显示图标上有一个小齿轮(并且没有可用的命令)。

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

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 主页中只能看到应用程序设置:

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 设备类型是否有任何特定的地方可能导致此失败?

Touch controls 支持 OUTLET,但不支持 DOOR