HomeAssistant接入和风天气教程,免费的天气集成

项目地址

项目地址:https://github.com/zhheo/heweather

image

安装方法

这里主要说我的分支的安装方法。

方法一:
自定义集成
的安装
下载代码并解压

  1. 复制custom_components/heweather文件夹到你的Home Assistant
  2. 的custom_components目录下
  3. 重启Home Assistant

方法二:通过HACS 安装
进入HACS点击右上角选择自定义仓库
image
image

添加仓库地址为:https://github.com/zhheo/heweather

看到这个说明仓库添加成功:
image
然后再new中找到这个
image
点击右下角的下载。
image
然后重启HomeAssistant。

配置和风天气

点击右下角的添加集成
image
设置位置id和API KEY
image
申请开发者账号
里的免费api,请务必升级到https://console.qweather.com/#/console

appkey申请需要先创建应用,后选添加数据key,选wabapi即可

国内的城市区域位置id
关系:https://github.com/qwd/LocationList/blob/master/China-City-List-latest.csv

点击提交就大功告成啦!
申请开发者账号
里的免费api,请务必升级到https://console.qweather.com/#/console

appkey申请需要先创建应用,后选添加数据key,选wabapi即可

国内的城市区域位置id
关系:https://github.com/qwd/LocationList/blob/master/China-City-List-latest.csv
image
点击提交就大功告成啦!

本文来自:https://blog.zhheo.com/p/0pwu8n22.html


HomeAssistant接入和风天气教程,免费的天气集成
https://halo.tolan.link:6688//archives/1749944344878
发布于
2025年06月15日
许可协议