上面是别人写的一个插件。
我的sensor.yaml
- platform: heweather
name: localWeather
api_key: fb3c901d7a2b4913b247a243060d2b0b
city: CN101210909
update_interval: '00:05:00'
forecast: 1
monitored_conditions:
- summary
- daily_astro_sr
- daily_astro_ss
- daily_summary_day
- daily_summary_night
- daily_hum
- daily_pcpn
- daily_pop
- daily_pres
- daily_tmp_max
- daily_tmp_min
- daily_vis
- daily_wind_deg
- daily_wind_dir
- daily_wind_sc
- daily_wind_spd
参照楼主说的,本人实测,AQI不能用,
forecast: 1,2是错误的,应写为:
forecast:
- 1
- 2