Google Weather

此集成使用 Google Weather 作为您所在位置的天气数据来源。

前提条件

您需要一个 API 密钥。请按照 Google 开发者文档 中的说明创建 API 密钥。

Note

有关价格,请参阅 Google 开发者文档中的计费部分

只要每月请求量不超过 10,000 次,即可免费使用。

配置

此集成可通过 UI 配置。前往 设置 > 设备与服务 添加。

数据更新

此集成会获取:

  • 每 15 分钟获取一次当前天气状况
  • 每 1 小时获取一次未来 10 天的每日天气预报
  • 每 1 小时获取一次未来 24 小时的逐小时天气预报

这意味着每月会产生 4,464 次请求,也就是说,您最多可以配置 2 个位置,仍可保持在 10,000 次的免费使用上限内。

weather.get_forecasts 操作会使用缓存的预报数据,不会额外向 Google 发起 API 调用。您可以在模板或自动化中安全使用此操作,而不会影响配额使用。

已知限制

故障排除

删除集成

To remove an integration instance from Home Assistant

  1. Go to Settings > Devices & services and select the integration card.
  2. From the list of devices, select the integration instance you want to remove.
  3. Next to the entry, select the three-dot menu. Then, select Delete.