本帖最后由 cheny95 于 2022-6-13 00:55 编辑
魔改了一个和风天气预报的HA插件,我太懒了就把我github上的内容复制了过来了。
里面有说明和使用方法以及未来要支持的功能,有问题看看使用方法和issues…
传送门:和风天气 Home Assistant 插件
个人开发,非广告…
示例
每日预报: 开发者工具-状态-实体名称-属性
forecast:
- datetime: '2022-06-13'
temperature: 30
templow: 21
condition: partlycloudy
wind_bearing: 135
wind_speed: 3
precipitation: 0
humidity: 85
precipitation_probability: 85
pressure: 1000
- datetime: '2022-06-14'
temperature: 33
templow: 20
condition: partlycloudy
wind_bearing: 135
wind_speed: 16
precipitation: 0
humidity: 69
precipitation_probability: 69
pressure: 1002
……
当天小时预报: 开发者工具-状态-实体名称-属性
forecast_hourly:
- time: '01:00'
cloudy: '100'
temperature: 19
condition: weather-night-partly-cloudy
text: 多云
wind_bearing: 111
wind_speed: 11
precipitation: 0
humidity: 94
precipitation_probability: 7
pressure: 1003
- time: '02:00'
cloudy: '100'
temperature: 19
condition: weather-night-partly-cloudy
text: 多云
wind_bearing: 110
wind_speed: 11
precipitation: 0
humidity: 96
precipitation_probability: 7
pressure: 1003
……
感谢 hass-xiaomi-miot 作者 @al-one 的帮助。
|