简体   繁体   English

设备的预期 Google Home 查询请求频率是多少?

[英]What is the expected Google home query request frequency for a device?

I have a Google smart home app released that supports various light bulb brands.我发布了一个支持各种灯泡品牌的谷歌智能家居应用。 I have a user with 5 Phillip Hue light bulbs and there are approximately 1360 query state requests per day for the 5 bulbs.我有一个用户有 5 个 Phillip Hue 灯泡,每天大约有 1360 个查询 state 请求 5 个灯泡。 Is this frequency of query requests common and expected for all devices?这种查询请求的频率对于所有设备来说都是常见的和预期的吗?

That's one query request every ~5 minutes.这是每约 5 分钟一个查询请求。

https://developers.google.com/actions/smarthome/develop/process-intents#QUERY https://developers.google.com/actions/smarthome/develop/process-intents#QUERY

It is normal for Google to periodically send QUERY intents to your service to ensure that the data in Home Graph is up to date. Google 会定期向您的服务发送 QUERY Intent 以确保 Home Graph 中的数据是最新的,这是正常的。 You can mitigate this process by making sure that you have implemented Report State to publish all relevant state changes to Google in real time, as this also directly updates the state in Home Graph.您可以通过确保已实施报告 State以将所有相关的 state 更改实时发布到 Google 来缓解此过程,因为这也会直接更新 HomeGraph 中的 state。

The actual frequency is a bit more difficult to pin down as it relates to not only how often you report state for devices, but also user activity on those devices.实际频率有点难以确定,因为它不仅与您报告设备 state 的频率有关,还与这些设备上的用户活动有关。 Generally speaking, the more often you report state to Google the less you should see QUERY polling.一般来说,您向 Google 报告 state 的次数越多,您看到的 QUERY 轮询就越少。

We are also actively working on ways to reduce the need for QUERY polling, so in the future you should see the frequency of this reduced so long as you have Report State implemented for all your users' devices.我们还在积极研究减少查询轮询需求的方法,因此只要您为所有用户的设备实施报告 State,将来您应该会看到这种频率降低。

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

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