Google主页操作:状态更改后刷新Google主页,更改恒温器的设定点温度范围

时间:2018-12-27 16:45:59

标签: actions-on-google

我有一个云解决方案和一个可以使用的恒温器。我已经集成了用于恒温器的Google Home Action:同步,查询,执行调用-可以使用。

我有下一个问题:

第一


1)我将恒温器添加到Google Home Android App(成功)

2)通过Google Home App打开该恒温器

3)手动更改恒温器温度(不通过Google Home App)

预期结果:Google Home App将自动刷新用户界面并显示正确的温度

实际结果:在我手动刷新应用之前,什么都没有改变。

我尝试做的事情-成功实施了报告状态

第二


1)我将恒温器添加到Google Home Android App(成功)

2)通过Google Home App打开该恒温器

预期结果:应该能够在我的自定义值(例如,从5°C到40°C)的范围内更改设定点温度

实际结果:设定点温度的范围限制为10°C至32°C,我无法更改。

我尝试做的事情-添加了 thermostatTemperatureSetpointHigh thermostatTemperatureSetpointLow 状态以同步命令。这是同步响应的示例:

    {
  "payload": {
    "agentUserId": "123456",
    "devices": [
      {
        "id": "321654",
        "type": "action.devices.types.THERMOSTAT",
        "traits": [
          "action.devices.traits.TemperatureSetting"
        ],
        "name": {
          "defaultNames": [
            "Bathroom"
          ],
          "name": "Bathroom",
          "nicknames": [
            "Bathroom"
          ]
        },
        "willReportState": false,
        "roomHint": null,
        "deviceInfo": {
          "manufacturer": "MyManufacturer",
          "model": "",
          "hwVersion": "113",
          "swVersion": "113"
        },
        "customData": null,
        "attributes": {
          "thermostatTemperatureSetpointLow": 5,
          "thermostatTemperatureSetpointHigh": 40,
          "availableThermostatModes": "heat,cool",
          "thermostatTemperatureUnit": "C"
        }
      }
    ]
  },
  "requestId": "197361223046164267"
}

我已经检查了API文档并进行了大量搜索-没有结果。 请帮忙解决。

0 个答案:

没有答案