Google Home增加/降低温度Json问题

时间:2017-08-23 11:30:56

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

我的设备(名为卧室)设置为26,处于酷炫模式。 当我问我的谷歌主页“嘿谷歌,将卧室温度提高1”。 我从谷歌主页收到的JSON发布在下面。根据此JSON,将模式设置为加热并将温度设置为26。

我100%肯定它上周工作正常。它发送给我JSON来设定温度。

"inputs": [{
"intent": "action.devices.EXECUTE",
"payload": {
  "commands": [
    {
      "execution": [
        {
          "params": {
            "thermostatMode": "heat"
          },
          "command": "action.devices.commands.ThermostatSetMode"
        },
        {
          "params": {
            "thermostatTemperatureSetpoint": 26
          },
          "command": "action.devices.commands.ThermostatTemperatureSetpoint"
        }
      ],
      "devices": [
        {
          "id": "bedroom"
        }
      ]
    }
  ]
}
}],

"requestId": "XXXXXXX"

1 个答案:

答案 0 :(得分:0)

执行执行的方式可能有些变化。如果你想提高温度,并且模式是'#34;冷却",那么恒温器应该输入一个'#34; heat"模式。