0.94: SmartHab, Watson TTS, Azure Event Hub

又到了 0.94 发布,这次带来了不少非常棒的内容。我们正在努力打磨各个部分,为重大的 Home Assistant 1.0 发布做准备,而且已经越来越接近了。甚至接近到:这是第一个无需接触文本编辑器就能完成安装和配置的版本!从引导、配置集成,到管理自动化和脚本,都可以直接在 UI 中完成。

This milestone has been achieved thanks to the hard work by @emontnemery who contributed the ability to store the 核心 config in storage: name, location, unit system, time 区域. We still allow 用户 to store their 核心 配置 in configuration.yaml, which will take precedent when defined. This means that it is a non-breaking change. 核心 config is now set during onboarding and can be edited in the general page of the config 面板.

Another cool new feature is the total revamp of how you manage which 实体 are exposed to Google Assistant via Home Assistant Cloud. From the cloud UI you can now click "Manage 实体" and you are brought to the Google Assistant 实体 manager. From here you can enable which 实体 are exposed and, if you deem appropriate, choose to disable the two factor 认证 on your garage door (the asking for a pin).

Screenshot of the new 用户 interface to manage which 实体 are exposed to Google Assistant. Screenshot of the new 用户 interface to manage which 实体 are exposed to Google Assistant.

发现

Discovery has been modernized thanks to @Kane610 and with the input from @Jc2k. Each 集成 is now able to specify how they can be discovered in their manifest, and the new zeroconf and ssdp 集成 will do the rest. The new discovery is non-obtrusive: no 设备 are set up without approval by the 用户. Instead, you will need to approve each discovered 集成. You can find them in the discovered section of the 集成 page in the config. Only a handful of 集成 have been migrated to the new approach in this 发布: Hue, LIFX, Deconz, Trådfri, Axis, ESPHome, HomeKit Controller.

The new discovery is now part of the default config. If you are not using the default config, add ssdp: and zeroconf: to your 配置.yaml.

弃用 Python 3.5 支持

This 发布 has deprecated support for the almost 4 year old 版本 3.5 of Python. The first Home Assistant 发布 after August 1 will drop support. This is part of our newly adopted Python support approach.

This will only impact you if you are running a custom 安装 of Home Assistant. This will not impact anyone using Hass.io or Docker. If you are using hassbian, you can 升级 Python by following these instructions.

现代化设备追踪器

This 发布 also introduces a long overdue overhaul of how the 设备 tracker works. We are introducing this overhaul piece by piece, focusing first on 设备 tracker platforms that push their updates to Home Assistant: mobile app, OwnTracks, GeoFency, GPSLogger and Locative.

These 集成 will no longer use known_devices.yaml but instead use 实体, like all other 集成 in Home Assistant. You can change the name and 实体 ID via the UI. It is no longer posible to merge the 设备 with other 设备 tracker 实体, this includes using the see 服务. This was flaky at best. You should now use the new person 集成 for this.

改进后的 Hass.io 构建流程

We have been working hard on improving Hass.io builds. It's our goal to make the 更新 process faster and more predictable. A build can now be online in as little as 30 minutes after a new 发布 has been tagged. This is thanks to a new wheel-based infrastructure build by @pvizeli with input from @frenck. With Python wheels, we will build all the requirements of 集成 ahead of time, and so a new 版本 of Home Assistant is now just putting pieces together.

Because of this, we changed how packages are 已安装 when running Home Assistant inside a Docker 容器. It will now 安装 the packages into the Python environment inside the 容器, instead of storing them in the config/deps folder, which lived outside the 容器.

Note: Because of the new way packages are 已安装, Home Assistant on Hass.io will take longer to start the first time it is launched after an 升级. Don't worry and let it finish! We are working on making this process faster in the future.

Note 2: If you are using Hass.io or a dockerized 版本 of Home Assistant, this 发布 will one time clear the deps folder in your config folder.

New 集成

New Platforms

发布 0.94.1 - June 7

发布 0.94.2 - June 11

发布 0.94.3 - June 12

发布 0.94.4 - June 19

如果你需要帮助……

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

反馈问题

如果这次发布引入了问题,请前往我们的 issue tracker 提交反馈。请务必填写 issue 模板中的所有字段。

Backward-incompatible changes

  • Sun - Inspired by a reddit report, the sun.sun 传感器 has been tuned so that it doesn't 更新 nearly as frequently. Previously the sun.sun 传感器 was updating every 30 seconds, day and night. Now it updates dependent on the solar elevation. This could possibly be a breaking change for some 用户 as it updates less frequently. (@Swamp-Ig - #23832) (sun docs)

  • Doorbird -Refactored- This change cleans up the code for the component quite a bit. Schedule manipulation has been removed and HTTP views have been consolidated. The 配置 changes should result in an overall easier experience for setting up a Doorbird in HA and allow for new Doorbird events to be utilized without having to 更新 the component as often. No changes for 开关 or 摄像头 集成 of this component. (@oblogic7 - #23892) (doorbird docs)

    Example 配置:

    doorbird:
      devices:
        - host: 10.10.10.10
          token: 12345678abcd
          name: Side Entry
          username: abcd1234
          password: abcd4321
          events:
            - button_1
            - unit_1_button
            - movement
            - relay_1
            - lock_relay
  • Plex

    • 配置 option include_non_clients has been removed. The component was unnecessarily complicated with separate 更新 methods for Plex 设备 and Plex sessions. This change always updates all known Plex clients regardless of type. The previous design also had issues where the Plex sessions are never polled if there are no Plex clients connected at startup and only 'session' client types connect after that point. This leads to a failure to discover new 设备. This is a breaking change if the config option include_non_clients is being used since it has been removed. (@jjlawren - #24038) (plex docs)

    • 配置 options use_custom_entity_ids and entity_namespace have been removed. This change will prepend the display name (and therefore the default entity_id) of each newly 创建 实体 with 'Plex' for easy identification. 用户 may customize each display name and entity_id as desired via the 实体 Registry. 实体 创建 before this PR will not be affected as the unique_id remains the same. (@jjlawren - #24072) (plex docs)

  • Verisure - Base entity_id of alarm_control_panel on alias of 安装 set by giid rather than first 安装. This is a breaking change as it will change entity_id of alarm_control_panel in cases where a 用户 is configuring an 安装 using giid that is not the first 安装. (@tkjacobsen - #23606) (verisure docs)

  • Zestimate - Changed name property to return Zestimate and the property address. This will make it easier to distinguish multiple Zestimate 传感器 实体 in the UI and is a breaking change as it will change entity_id of Zestimate 传感器. If you have 自动化 relying on your Zestimate 传感器(s) you may need to revisit them to fix the ID's to the new ones. Also, you may need to 更新 your Zestimate 传感器(s) in your Lovelace UI. (@dreed47 - #23770) (zestimate docs)

  • Python - Deprecation - Python 3.5.3 support will be removed in the first 发布 after August 1, 2019. This 发布 will print a 警告 if a soon to be unsupported Python 版本 is used. A 通知 will be present if Home Assistant is run under 3.6.0. (@balloob - #24177)

  • Async - Developers only - hass.components.frontend.async_register_built_in_panel is no longer an async function. This allows removing 面板 form the 前端 on the fly, and fires and event when 面板 are added/removed so the 前端 knows when to 重载. (@balloob - #24184)

  • TP-Link - Distress Signal - Add a deprecation 警告 for tplink device_tracker (@rytilahti - #24236) (tplink docs)

Beta Fixes

All changes