0.29: 🎈 Async, SleepIQ, OpenALPR, EmonCMS, stocks, and plants

两周前,也就是 9 月 17 日,是我们三周年纪念日。Home Assistant 在这三年里,已经从一个“日落时帮我开灯”的简单脚本,成长为一个超棒的开源项目,并拥有开源社区里最棒的社区成员。这个发布包含了由 50 位不同贡献者带来的新功能、问题修复和性能优化!我们在 GitHub 上的 Fork 数也突破了 1000,势头十足!

这是一次非常重大的发布,因为我们彻底重构了 Home Assistant 的内部实现。最初编写 Home Assistant 时,我还在摸索 Python 的各种细节,所以在这种包含大量并发任务的应用里,我采用了自己熟悉的方案:线程和锁。这个方案这些年一直很好用,但它的速度并没有达到我们想要的水平,尤其是在性能有限的硬件上。

这一切在 @bbangert 接手后发生了变化,他承担了把核心迁移到异步编程这一艰巨任务。他做得非常出色,我很高兴地告诉你:第一阶段迁移已经完成,并且已经包含在这个发布中!更棒的是,我们同时保留了简洁直观的 API。我们仍在持续把更多组件迁移到异步 API,所以你可以期待后续版本带来更多提速和更酷的新功能。

SleepIQ and OpenALPR

现在我们支持两项很酷的新能力:床垫数据和车牌识别。@technicalpickles 创建了 SleepIQ 组件,让你可以监控床的传感器数据。@pvizeli 则加入了基于 OpenALPR 的车牌识别!这意味着你现在可以收到通知,知道停在你车道或车库里的到底是哪辆车。我也想借这个机会特别感谢 @pvizeli,他是社区里非常出色的一员。自从 6 月底加入以来,他一直在高效修复 bug 并添加实用功能(已经提交了 65 个 PR!)。

配置 validation

在 voluptuous 配置校验方面,我们也取得了很大进展。我们已经完全移除了旧版配置助手,并且在需要迁移的 346 个组件和平台中完成了 323 个!这也意味着部分组件的配置有轻微变化,请务必查看文末的 backward-incompatible changes 部分了解详情。感谢大家审阅 PR、测试改动并反馈问题。

Delayed 发布

你可能已经注意到,这次发布延迟了 5 天。原因是 Python 解释器中一个罕见且难以复现的问题。非常、非常感谢这些投入了无数时间进行研究、调试和修复的朋友:@bbangert@turbokongen@lwis@kellerza@technicalpickles@pvizeli@persandstrom@joyrider3774。能和你们一起建设 Home Assistant 社区,我非常感激。

Hide 自动化 rules

从 0.28 开始,automation rules 就已经可以直接在前端重新加载。

All changes

Hotfix 0.29.1 - September 29

Hotfix 0.29.2 - September 29

Hotfix 0.29.3 - September 29

Hotfix 0.29.4 - September 30

Hotfix 0.29.5 - September 30

Hotfix 0.29.6 - October 1

  • Fix segmentation fault (@bbangert) 🎉
  • Fix nested 模板 in data_template would incorrectly get cached (@balloob)

Hotfix 0.29.7 - October 5

  • Fix handling SIGTERM and SIGHUP signals (fixes Systemd 重启 issues) (@pvizeli)

Backward-incompatible changes

  • The 模板 methods now and utcnow have been changed from variables to methods. To get the current time replace now with now().
  • yahooweather default name is now yweather. Also min and max temperature are now correctly called Temperature Min and Temperature Max.
  • ffmpeg is now a component for manage some things central. All ffmpeg_bin options have moved to this compoment from platforms.
  • Config has changed for X10 灯光.
  • For Wink, make sure your config only contains the access token as in the docs.
  • Nest 传感器 'mode' has been renamed to 'operation_mode'

If you need help...

...don't hesitate to use our Forum or join us for a little chat. The 发布 notes have comments enabled but it's preferred if you the former communication channels. Thanks.