You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何通过Google Actions为NetworkControl设备特性执行TestNetworkSpeed命令

Google Assistant NetworkControl特性TestNetworkSpeed命令调用异常

我需要执行属于NetworkControl设备特性的TestNetworkSpeed命令,官方给出的示例话术如下:

示例
What's the Wi-Fi speed?

针对action.devices.SYNC意图,我们返回的模拟输出如下:

{
      agentUserId: 'userId',
      devices: [
        {
          id: 'deviceId',
          type: 'action.devices.types.NETWORK',
          willReportState: true,
          notificationSupportedByAgent: true,
          name: {
            name: 'ssid',
            defaultNames: ['ssid'],
            nicknames: ['ssid'],
          },
          traits: ['action.devices.traits.NetworkControl'],
          attributes: {
            supportsNetworkDownloadSpeedTest: true,
            supportsNetworkUploadSpeedTest: true,
            supportsEnablingNetworkProfile: true,
            supportsDisablingNetworkProfile: true,
            networkProfiles: ['kids'],
          },
        },
      ],
 }

使用上述示例话术发起请求时,Google Assistant未向我的服务器发起请求,仅返回通用谷歌搜索结果。但使用话术开启/关闭指定配置文件的网络时,功能运行正常。

我们已经启用HomeGraph,补充测试现象如下:

  • 询问GA我的ssid是什么,可以得到正确的ssid返回结果
    ssid查询正常截图
  • 询问GA关闭对应设备的网络,功能运行正常
    网络开关正常截图
  • 询问GA指定ssid的wifi速度是多少,可以得到SSID名称返回,且我们的API端点收到了query指令
    带ssid测速请求正常截图
  • 将ssid名称修改为“home wifi”后重新执行命令,得到默认返回结果,请求未到达我们的端点
    改名后测速异常截图
  • 不加ssid名称直接询问wifi速度是多少,同样得到默认返回结果
    无ssid测速异常截图

内容的提问来源于stack exchange,提问作者jm18457

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.30 04:27:03