1.访问和风官网
https://www.heweather.com/
注册后登陆
登陆
点击控制台
创建新的应用
名字自己起
添加key
填写key
选择
新建文件夹
- 进入 GitHub
https://github.com/morestart/Heweather
进入
分别进入其中,下载源文件
复制地址
cd /.homeassistant/custom_components/HeWeather
wget https://github.com/morestart/HeWeather/raw/More-than-0.63/sensor.py
wget https://github.com/morestart/HeWeather/raw/More-than-0.63/manifest.json
wget https://github.com/morestart/HeWeather/raw/More-than-0.63/__init__.py
key:38b65b58b8914de89bae5bb37b70b0bb
sensor:
- platform: HeWeather
city: auto_ip 或者 填写城市名称 eg(北京,beijing)
appkey: 你的密钥
options:
- fl
- tmp
- cond_txt
- wind_spd
- hum
- pcpn
- pres
- vis
- wind_sc
- aqi
- main
- qlty
- pm10
- pm25
- comf
- cw
- drsg
- flu
- sport
- trav
- uv
- wind_dir
- tmp_max
- tmp_min
- pop
复制上面内容到 configuration.yaml中,直接粘贴。
配置
重启配置
重启
效果图
效果图