Google主页-报告状态是强制性的吗? [英] Google Home - Is reporting state mandatory?

查看:99
本文介绍了Google主页-报告状态是强制性的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试验证我们与Google Home的集成,事实证明,智能家居测试套件希望能够实现报告状态。
AFAIK,这不是必需的,但显然,至少对于此测试服来说是这样。我总是将 willReportState报告为false,这应该没问题,因此测试套件会跳过大多数设备,但是由于某些原因,它仍然希望恒温器能够报告状态。

I'm trying to validate our integration with Google Home, and as it turns out, the smart home test suite expects reporting state to be implemented. AFAIK, this is not necessary, but evidently, at least for this test suit, it is. I'm always reporting "willReportState" as false, which should be fine, and the test suite skips most devices because of this, but for some reason, it still expects thermostats to report state.

这是否意味着使我们的集成得到批准和列出的唯一方法是我们是否执行报告状态?

Does this mean that the only way to get our integration approved and listed is if we implement a reporting state?

以下是同步恒温器:

{ 
   "id":"112299",
   "type":"action.devices.types.THERMOSTAT",
   "traits":[ 
      "action.devices.traits.OnOff",
      "action.devices.traits.TemperatureSetting"
   ],
   "name":{ 
      "name":"Calefacción Agus"
   },
   "willReportState":false,
   "attributes":{ 
      "availableThermostatModes":"off,heat",
      "thermostatTemperatureUnit":"C"
   },
   "roomHint":"Cuarto Agus",
   "deviceInfo":{ 
      "model":"HPA-4412",
      "swVersion":""
   }
}

谢谢!

推荐答案

报告状态是提交智能家居操作的要求,除非您的设备特征使用 commandOnly< TraitName> ; 属性,但不知道状态。

Report state is a requirement for submitting your smart home action unless your device traits use the commandOnly<TraitName> attribute and do not know the state.

例如,某些设备,例如IR blaster,可能只知道如何发送命令,而不会t不知道状态,因此它将与<$ c $一起使用 OnOff c> commandOnlyOnOff 属性。

For example, some devices like an IR blaster may only know how to send commands and don't know the state, so it would use OnOff with the commandOnlyOnOff attribute.

这篇关于Google主页-报告状态是强制性的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆