0.89:Nissan Leaf、PlayStation 4、Point 报警控制、Owlet 婴儿监护器

0.89 发布时间到!这又是一次精彩的新版本,带来了不少酷炫的新功能、bug 修复和改进。第一个亮点是,又有一款汽车接入了 Home Assistant:Nissan Leaf。deConz 和 SmartThings 集成也继续扩展,覆盖了更多设备。

本次发布引入了一个新的 mobile_app 集成。也参与 iOS 应用开发的 @robbiet480 提取了 Home Assistant iOS app 集成中最优秀的部分,并将其改造成一个任何移动应用都可以构建于其上的标准化 API。这将让各种移动应用都能以优秀的用户体验集成 Home Assistant。如果你是移动应用开发者,请查看更新后的 app integrations docs。我们会在后续版本中继续打磨这个 API,也欢迎反馈。

值得注意的向后不兼容变更

自定义组件文件结构变更: Home Assistant 底层工作方式发生了一项重要变化,现在如果组件路径存在,平台解析将被强制基于该组件路径进行。

目前,如果你愿意,你可以覆写 Hue 的灯光平台,但不能覆写 Hue 集成的其他部分。如果未来的更新改动了 Hue 组件,移除了或更改了自定义平台所依赖的内部方法,那么你的自定义平台就会开始失效(就像这个报告里描述的情况)。

为避免这种情况,我们将__不再允许自定义组件只局部覆写__(仅覆写某个平台)。换句话说,如果你想覆写内置平台,你需要覆写整个组件

这一点通过优先把平台解析为组件来实现;如果该组件存在,就会把查找路径限制在该组件路径下。

举个例子:如果我查找 hue 组件,而它来自某个自定义组件,那么该组件下的所有平台查找也都会在这个自定义组件目录中进行。反过来也是一样:如果用户只想覆写 hue/light.py,却没有提供 hue/__init__.py,那么这个自定义平台会被忽略。

如果你想了解更多,Paulus 已经在开发者博客上详细介绍了这项变更:The Great Migration by Paulus

Existing SmartThings 配置 entries will be removed, including the SmartApp/自动化 from the SmartThings app. Home Assistant will prompt you to 配置 the 集成 again or it can be invoked from the 集成 page. The 配置 process is the same as before. To prepare, have your personal access token and a mobile 设备 with the SmartThings Classic App handy. This will not affect the naming of 设备 or 实体 and is a one-time inconvenience. The implementation 开关 over to the SmartApp access token to synchronize subscriptions during 设置 of the config entry, which cannot be done using the personal access token.

新平台

发布 0.89.1 - March 8

发布 0.89.2 - March 12

如果你需要帮助……

欢迎使用我们非常活跃的论坛,或者加入我们的聊天频道。虽然发布说明开放评论,但我们更希望你使用前面这些沟通渠道。谢谢。

反馈问题

如果你遇到了这个版本引入的问题,请在我们的 issue tracker 中报告。请务必填写 issue 模板中的所有字段。

向后不兼容的变更

  • HomeMatic component's wireless actors are having two RSSI values. The way the component was programmed one of them was being overwritten. With this new change, the rssi 属性 of HomeMatic 实体 has been removed. As a replacement the 属性 rssi_device and rssi_peer have been added. The 属性 of rssi will no longer be available, you'll need to update to rssi_device, and you can add rssi_peer now as well! (fixes #20900) (@dagobert - #20902) (homematic docs) (breaking change)
  • You can now specifiy an 动作 when calling the yeelight_start_flow service on your yeelights. The default 动作 will be 'recover' if you do not specify something else. This 动作 will be taken after the flow stops. (@zewelor - #21195) (灯光.yeelight docs) (breaking change)
  • Custom platforms that override a built-in platform that has a component, should now also include the component in the custom_components/ folder. So if you want to override hue/light.py with a custom 版本, you will also need to provide/copy over hue/__init__.py. See details in main section about this change. (@balloob - #21070) (breaking change)
  • Automatic discovery of TP-Link 开关, bulbs and dimmers. This is a continuation of #15329 and adds support for automatic discovery of TP-Link bulbs, 开关, and dimmers based on the new config flow. The 集成 needs to be enabled either in the integration 配置 or alternatively by adding tplink component to the 配置 file. As the 设备 are now configured on the component, this is a breaking change for 灯光.tplink and 开关.tplink. (@rytilahti - #18091) (tplink docs) (灯光.tplink docs) (开关.tplink docs) (breaking change)
  • Enhance SmartThings component subscription. See details in main section about this change. (@andrewsayre - #21124) (smartthings docs) (breaking change) (new-feature)
  • The iperf3 传感器 platform has been separated into a component and a 传感器 to remove the 服务 from the 传感器 platform. 配置 options have changed, please review the documentation and select the correct options. (@rohankapoorcom - #21138) (iperf3 docs) (传感器.iperf3 docs) (breaking change) (new-platform)
  • The google_travel_time platform no longer has an 更新 服务, use homeassistant.更新 with the appropriate entity_id(s) instead. (@rohankapoorcom - #21153) (传感器.google_travel_time docs) (breaking change)
  • Add ADB server functionality to Fire TV. This change removes the get_source 配置 option. (@JeffLIrion - #21221) (媒体播放器.firetv docs) (breaking change)
  • With the addition of the SmartThings Cover platform, the SmartThings Sensor platform will no longer represent Door, Garage Door and Window Share 属性. Additionally, if the 遮盖 设备 reports battery status, the value will be present as a state attribute (battery_level) and not a discrete 传感器. (@andrewsayre - #21192) (遮盖 docs) (smartthings docs) (breaking change) (new-platform)
  • The Toon component was broken some time ago, so now requires a Toon API developer account and can be configured using the Home Assistant 集成. Support for 开关 & Smoke detectors has been removed. (@frenck - #21186) (toon docs) (breaking change) (new-platform)
  • Addition of config for trusted networks auth provider. It is a backward-incompatible changes for 用户 who manually configured trusted network auth provider. An invalid config 错误 will be thrown and HA won't be able to fully started. (It is NOT a backward-incompatible changes for 用户 who didn't manual configured trusted network auth provider.) (@awarecan - #21111) (breaking change)
  • For some HomeMatic 设备 the sabotage 属性 is replaced by error. The value (if not 0) is a 设备 specific 错误 code. (@dagobert - #21009) (homematic docs) (breaking change)

Beta 修复

所有变更