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
相关产品推荐
相关产品推荐

