简体   繁体   English

智能家居温度设置特性和“自动”模式

[英]Smart Home TemperatureSetting Trait and 'auto' mode

I am working on implementing Google smart home support for our thermostat using Thermostat device and TemperatureSetting Trait.我正在使用Thermostat设备和TemperatureSetting Trait 为我们的恒温器实现 Google 智能家居支持。 This thermostat should support 'off', 'heat' and 'auto' modes.此恒温器应支持“关闭”、“加热”和“自动”模式。

The SYNC looks like this: SYNC看起来像这样:

     {
        "id": "testplc@BEDROOM.HEATTHERMOSTAT",
        "type": "action.devices.types.THERMOSTAT",
        "traits": [
          "action.devices.traits.TemperatureSetting"
        ],
        "name": {
          "defaultNames": [
            "BEDROOM.HEATTHERMOSTAT"
          ],
          "name": "Bedroom"
        },
        "willReportState": true,
        "notificationSupportedByAgent": false,
        "deviceInfo": {
          "manufacturer": "Teco a.s.",
          "model": "Tecomat"
        },
        "attributes": {
          "availableThermostatModes": [
            "off",
            "auto",
            "heat"
          ],
          "thermostatTemperatureRange": {
            "minThresholdCelsius": 10.0,
            "maxThresholdCelsius": 40.0
          },
          "thermostatTemperatureUnit": "C"
        },
        "customData": {
          "plc_name": "testplc",
          "tecomat_id": "BEDROOM.HEATTHERMOSTAT",
          "tecomat_type": "THERMOSTAT"
        }
      }

The default state of the thermostat is set to 'auto' mode.恒温器的默认 state 设置为“自动”模式。 In Google Home App it appears as some 'Other' mode which is active.在 Google Home App 中,它显示为一些处于活动状态的“其他”模式。 On Smart Displays it appears correctly as active 'Auto' mode.在智能显示器上,它正确显示为活动的“自动”模式。

What I consider a problem is that if I try to set the thermostat to 'heat' mode, my fulfillment does not detect any EXECUTE request.我认为一个问题是,如果我尝试将恒温器设置为“加热”模式,我的履行不会检测到任何 EXECUTE 请求。 It only receives several QUERY requests in quick succession.它只接收快速连续的几个 QUERY 请求。 If I try to set the mode to 'off' with the app, the setting is successful, but then the 'auto' option disappears from the list of possible modes in the app and is never displayed again.如果我尝试使用应用程序将模式设置为“关闭”,则设置成功,但“自动”选项会从应用程序的可能模式列表中消失,并且不再显示。 The next attempt to change from 'off' to 'heat' still does not work - no EXECUTE request arrives on the server.下一次从 'off' 更改为 'heat' 的尝试仍然无效 - 没有 EXECUTE 请求到达服务器。 If I exclude the 'auto' mode from availableThermostatModes , everything works as it should.如果我从availableThermostatModes中排除“自动”模式,则一切正常。 So the problem is related to the 'auto' mode.所以问题与“自动”模式有关。

Is it obvious at first glance that I'm doing something wrong?乍一看我做错了什么很明显吗?

Under what circumstances should the 'on' mode be listed in the availableThermostatModes list?在什么情况下,“on”模式应该列在availableThermostatModes列表中?

I don't know if my problem is completely the same as the reported issue: https://issuetracker.google.com/issues/157717871我不知道我的问题是否与报告的问题完全相同:https://issuetracker.google.com/issues/157717871

Thank you for any advice谢谢你的任何建议

There are two things that are happening here:这里发生了两件事:

  • All the thermostat modes are not being displayed in the UI controls UI 控件中未显示所有恒温器模式
  • Execution requests for heat mode are not being received未收到加热模式的执行请求

GHA does not display all available modes in the UI currently, and shows some in the other category. GHA 目前并未在 UI 中显示所有可用模式,而是在其他类别中显示一些。 However this should not affect any functionality & for you to not receive execution requests, this is something that needs further debugging at your end (server logs of your system can be checked to see if there are any incoming requests, then cross-compare their visibility on our end through Google Cloud Platform. If you want more information on troubleshooting, check our Troubleshooting Guide on the common how-tos. As a best practice, use voice commands like “Set [device-name] to heat mode” instead of “Set [device-name] to heat”但是,这不应该影响任何功能并且您不会收到执行请求,这需要在您的最后进行进一步调试(可以检查系统的服务器日志以查看是否有任何传入请求,然后交叉比较它们的可见性通过 Google Cloud Platform 在我们这边。如果您想了解有关故障排除的更多信息,请查看我们的故障排除指南,了解常见的操作方法。作为最佳实践,请使用语音命令,例如“将 [设备名称] 设置为加热模式”而不是“将 [设备名称] 设置为加热”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM