0.15: Unforked Open Z-Wave, templated 服务 calls, extended 场景 support

两周过去了,0.15 来了!我们这段时间非常专注于质量,确保系统更加稳定、可靠。我通常会在发布说明里重点介绍一项很酷的更新,但这次发布有 4 条令人兴奋的公告!

  • @fabaff has upgraded the codebase to follow the PEP257 文档 standard.
  • @partofthething has migrated us to use the main Python Open Z-Wave library instead of our forked 版本.
  • To make our 自动化 more powerful, @persandstrom added the option to use 模板 to dynamically create 服务 calls. This works for 自动化, Alexa, universal media player, 模板 开关. Learn more.
  • @MartinHjelmare has upgraded our 场景 support to now support all built-in 服务 and components.

除错误修复外,这次发布还带来了:

# Example using templates for service and data in service call.
# Works for automation, Alexa, universal media player, template switch.
automation:
  - trigger:
      - platform: state
        entity_id: switch.bathroom
    action:
      service: >
        
          switch.turn_on
        
          switch.turn_off
        
      target:
        entity_id: switch.

Backward-incompatible changes

  • Media Player: 属性 to call 服务 play_media has been renamed to media_content_type and media_content_id, to match the corresponding media player 状态 属性. This change affects 自动化, 脚本 and 场景.