0.10: Amazon Echo, iCloud, Dweet.io, Twitch and templating support!

好了,Home Assistant 0.10 来了。这次有很多令人兴奋的变化,不过遗憾的是,我们也引入了不少向后不兼容的改动。特别感谢 Philip Lundrigan (@philipbl),他在推动迁移、让更多平台转向使用模板方面投入了大量精力。

模板

这个发布引入了模板功能。你可以在数据被处理前先解析它,或者基于 Home Assistant 内部数据动态生成通知消息。通知组件和新的 Alexa/Amazon Echo 组件都使用了新的模板功能来渲染响应。我们还在应用的开发者工具区域新增了模板编辑器,这样你可以即时验证模板是否正常工作。

The temperature at home is .

更多信息和示例可以在模板文档中找到。

Backward-incompatible changes

模板 will now be the only way to extract data from 'raw' sources like REST, CommandSensor or MQTT. This will replace any specific option that used to do this before. This means that precision, factor, attribute or json_path etc will no longer work.

Affected components and platforms: