# HeWeather **Repository Path**: changhaisong/HeWeather ## Basic Information - **Project Name**: HeWeather - **Description**: honeassiatant安装和风天气组件 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: More-than-0.63 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2020-02-22 - **Last Updated**: 2024-07-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # HA和风天气插件 ## 使用方法: - 在HA中建立以下路径 ```bash # Linux or Mac OSX cd ~/.homeassistant/ mkdir -p custom_components/HeWeather # Windows home assistant\custom_components\HeWeather\ home assistant\custom_components\HeWeather\ ``` - 使用以下命令下载 ```bash cd custom_components/HeWeather/ curl -O https://raw.githubusercontent.com/morestart/HeWeather/More-than-0.63/sensor.py curl -O https://raw.githubusercontent.com/morestart/HeWeather/More-than-0.63/manifest.json ``` 如果HA中不存在以上路径,请参照图示自行建立即可。 - 在sensor文件夹下放入HeWeather.py文件,此版本文件支持0.63以上HA。 - 由于部分城市没有AQI监测站,所以报错,请使用你的上级城市名称,配置城市名称支持中英文IP及拼音。 ## 配置内容如下 ``` yaml 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 ```