0.19: Empowering 脚本 and Alexa
这次发布很重磅。到目前为止,我们的自动化和脚本一直比较静态。从今天开始,它们会变得更动态一些。
脚本 现在可用于自动化,也可用于响应 Alexa/Amazon Echo。这两个组件现在都会暴露可在脚本模板中使用的数据(包括 from_state!)。你还可以通过向脚本服务传递数据,把变量传给脚本实体。
实体命名空间(Entity namespaces) 允许你控制特定平台生成的实体 ID。例如,你可以通过下面的配置把 light.living_room 变成 light.holiday_home_living_room:
- 自动化: allow 脚本 syntax for 动作 (@balloob)
- 自动化: expose
triggervariable to 脚本 模板 (@balloob) - 脚本: allow passing variables for 脚本 模板 in the 脚本 服务 calls (@balloob)
- Alexa/Amazon Echo: allow 脚本 syntax for 动作 (@balloob)
- Alexa/Amazon Echo: expose intent variables to 脚本 模板 (@balloob)
- 脚本 syntax: 条件 now supported to interrupt execution (@balloob)
- 自动化: use new 条件 syntax (@balloob)
- 脚本 syntax: two new 条件
andandorto combine 条件 (@balloob) - Any platform: Allow setting 实体 namespace to prefix entity_ids. (@balloob)
- 开关: 树莓派 generic 433 Mhz GPIO adapters now supported (@milaq)
- Z-Wave: use more sane defaults (@danieljkemp)
- Media Player: Snapcast now supports picking a source (@happyleavesaoc)
- MySensors: major cleanup (@MartinHjelmare)
- 二元sensor: Command line 传感器 now supports classes (@fabaff)
- MQTT: allow client key 认证 (@timharton)
- 传感器: Forecast.io now supports minutely, hourly and daily summaries (@aceat64)
- Media Player: Pioneer AVR now supported (@kylehendricks)
- 开关: Acer Projectors now supported (@deisi)
- New HVAC component added with Z-Wave support (@turbokongen)
- Support added for OctoPrint (@w1ll1am23)
- 配置.yaml can now refer to environment variables using
!env_var(@bah2830) - 门锁: Z-Wave now supported (@devdelay)
- New Dweet component to export data (@fabaff)
- Media Player now supports stop command + initial kodi support (@hmronline)
- Zigbee: push updates now supported (@flyte)
- Wink 设备 with battery level will now show these (@w1ll1am23)
- 模板: new
as_timestampmethod now available (@srcLurker) - API: Add [
/api/discovery_info] with basic instance info (@robbiet480) - 传感器: Google Maps travel time added (@Danielhiversen)
- HTTP: Allow adding CORS headers (@robbiet480)
- 传感器: Fitbit support added (@robbiet480)
- Bug fixes and tweaks by @turbokongen, @danieljkemp, @Danielhiversen, @TheRealLink, @persandstrom, @sander76, @fabaff, @ishults, @Bart274, @robbiet480, @Cinntax, @blackdog70, @gwendalg, @JshWright, @kylehendricks, @bradsk88, @shaftoe, @molobrakos, @bah2830, @nkgilley
Deprecations
- 条件 in 自动化 should now specify which 条件 to use with
condition:instead ofplatform:. For examplecondition: state. - RFXtrx has a new config format.
Old RFXtrx config format:
New RFXtrx config format:

