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

Google Assistant空调设备名称缺失AC时指令发送异常问题

问题:Google Assistant对空调设备的指令解析逻辑随设备名称变化

我有一台名为TRIAL AC的空调设备:

  • 执行指令「将TRIAL AC设为关闭模式」时,设备可成功切换模式,此时Google发送的请求触发action.devices.commands.ThermostatSetMode指令,参数为thermostatMode:off
  • 将设备名称修改为不含"AC"的TRIAL后,执行「将TRIAL设为关闭」指令,Google发送的请求变为触发action.devices.commands.OnOff指令,参数为on:false,仅切换设备开关状态,温控模式仍维持原有状态

设备名称为TRIAL AC时的请求详情

执行指令「set trial ac to off」后,Google发送的请求内容:

{"commands":[{"devices":[{"customData":{"availableFanModes":{"Auto":3,"High":2,"Low":0,"Medium":1},"availableModes":{"Auto":"3","Cool":"2","Dry":"5","Fan":"4","Off":"0"},"extendedServices":{},"services":{"FanService":"action.devices.commands.SetFanSpeed","OutletService":"action.devices.commands.OnOff","TemperatureService":"action.devices.commands.thermostatTemperatureAmbient","ThermostatModeService":"action.devices.commands.ThermostatSetMode","ThermostatService":"action.devices.commands.ThermostatTemperatureSetpoint"}},"id":"1023-0"}],"execution":[{"command":"action.devices.commands.ThermostatSetMode","params":{"thermostatMode":"off"}}]}]}

设备名称为TRIAL时的请求详情

执行指令「set trial ac to off」后,Google发送的请求内容:

{"commands":[{"devices":[{"customData":{"availableFanModes":{"Auto":3,"High":2,"Low":0,"Medium":1},"availableModes":{"Auto":"3","Cool":"2","Dry":"5","Fan":"4","Off":"0"},"extendedServices":{},"services":{"FanService":"action.devices.commands.SetFanSpeed","OutletService":"action.devices.commands.OnOff","TemperatureService":"action.devices.commands.thermostatTemperatureAmbient","ThermostatModeService":"action.devices.commands.ThermostatSetMode","ThermostatService":"action.devices.commands.ThermostatTemperatureSetpoint"}},"id":"1023-0"}],"execution":[{"command":"action.devices.commands.OnOff","params":{"on":false}}]}]}

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.17 04:07:42