0.111:前端更早可用,Elexa Guardian、Unify Circuit、Acmeda

Home Assistant Core 0.111 来了!

实话实说:上一个版本(0.110) 塞满了新功能、大量升级和各种变化,真的非常刺激! 要超越它并不容易。

我个人总是很期待新版本带来的新功能,最喜欢拿来玩一玩! 不过这一次,能“玩”的新花样没那么多。别被这个印象骗了, 这个版本依然包含了 100 位贡献者带来的 400 多项改动!所以我一点也不失望。

这个版本的重点是稳定性、修复、打磨与调优。 老实说,我觉得这真的很棒!

其中最显著的变化,是 Home Assistant 加载前端的方式变了。 现在它会非常快地可用!

这次真的很值得去看看 “All Changes” 部分, 因为里面包含了非常非常多的小改动和修复。

祝你享受这次发布!

../Frenck

让前端更早启动

在这个版本中,我们会在所有集成完成加载之前就启动 Home Assistant 前端和 API 服务器。 这意味着你可以比以前更早开始与 Home Assistant 交互。

以前你可能要等上几分钟,前端才会有响应;而现在它会非常快地可用!

不过,这个改动也意味着 Home Assistant 不再等待所有集成都准备就绪。 因此,并不是所有设备和实体都会立刻可用。

这其实是件好事!因为这表示某个出问题的集成,再也无法阻止前端启动了。 而且当前端可用后,你就能立即修改或移除那个无法正常工作的集成配置。 最后,当发生问题时,你也能更方便地查看日志。

这个改动的核心思路来自 @bdraco 的创意,感谢他!@bramkragten 完成了所有前端工作,而 @pvizeli 则确保 Supervisor 也能处理这个“快得惊人”的前端启动过程。

干得漂亮,各位!

额外说明一点:如果你使用的是自动生成的 Lovelace,它仍然会等到 Home Assistant 完全启动后才显示。 如果你是自己创建的仪表盘,那么对于暂时不可用的实体,它会先显示警告,并在这些实体可用后自动更新。

再补充一点:如果你用自动化来设置默认前端主题,那么它会在 Home Assistant 完全启动后才应用。 启动阶段仍会使用默认主题。

其他启动改进

启动流程还做了更多调优,日志就是其中一个例子。 如果某个集成设置耗时较长,日志中会每 60 秒提示一次,告诉你该集成仍在设置中。

另一个提速点在于集成本身的加载方式。 通常一个集成会先完成基础设置,然后再继续加载各个平台(比如灯光和开关)。

从这个版本开始,Home Assistant 在设置集成后,将不再等待这些平台全部设置完成。 各个平台会在后台继续完成设置,使整体启动流程可以继续推进,从而带来更快的启动速度。

其他值得注意的变更

  • The OpenZwave beta 集成 is moving forward! Support for 温控, 风扇 and 门锁 is added this 发布! If you are using the OpenZWave 插件 with 此integrations, watch closely for updates, as an major 更新 to that 插件 is expected soon.
  • @gadgetmobile went all out on the Blebox 集成, adding support for a lot of platforms!
  • Google Assistant now supports using a select 助手 (aka input_select), amazing work @ZephireNZ!
  • @frenck added two new built-in Home Assistant events, helpful for 自动化: automation_reloaded and scene_reloaded. Using this as a 触发器 can be used for, e.g., re-applying a 场景 when it was changed.
  • The logger has been fixed by @bdraco. The logger has disobeyed default or 用户-configured logging levels for a long time. This is now fixed and your Home Assistant 日志 should be much cleaner now!
  • The Plugwise 集成 has been improved by @bouwew and @CoMPaTech, now supporting not only Anna but also Adam 温控 environments and adding the P1 DSMR monitor.
  • Last triggered timestamp of 自动化 is now set the moment it is triggered (as the name implies). Previously it was set after the 动作 that was part of the 触发器 was done. We don't expect many issues for this to rise, however, it might be affecting very specific use cases. If you use this 属性 to prevent an 自动化 to run quickly (or double), this will actually improve the situation for you.

新集成

新平台

现已可通过 UI 设置的集成

以下集成现在已经可以直接通过 Home Assistant UI 进行设置:

如果你需要帮助……

欢迎前往我们非常活跃的 论坛,或者加入 聊天频道

如果这个版本带来了问题,请到我们的 issue tracker 提交报告,并尽量完整填写 issue 模板中的所有字段。

不向后兼容的变更

  • 前端

    The 前端 is now available sooner. As a result, not all 设备 and 实体 are available immediately.

    (@bdraco - #36093, #36264) (http docs)

    Lovelace 卡片 getCardSize can now be async, custom 卡片 might need to adapt to this. Check the dev 博客 for more info.

  • Zigbee

    The zigbee 集成 has been renamed to xbee, as it is an 集成 for XBee 设备. This is done to avoid confusion with ZHA, which is the general 集成 to go to when having Zigbee needs.

    (@frenck - #35613) (xbee docs)

  • Insteon

    The 后端 module for the Insteon 集成 has changed from insteonplm to pyinsteon, enabling significant improvements which include:

    • Consistent 状态 status for changes to 状态 outside of Home Assistant (i.e., three-way 开关)
    • Improved Insteon 场景 triggering.
    • Full coexistence with the Insteon Hub app

    As a result, the 实体 ID of some 实体 will be changing. Specifically, the following 实体 types:

    • X10 dimmers, 开关, and 传感器
    • SmokeBridge 传感器

    Additionally, X10 实体 for:

    • x10_all_units_off
    • x10_all_lights_on
    • x10_all_lights_off

    No longer appear as 实体 as they are not needed.

    (@teharris1 - #35198) (insteon docs)

  • Environment Canada

    The radar imagery used is no longer associated with fixed radar stations. As a result:

    • The station and location 属性 have been removed
    • 实体 names will change, as they are no longer related to the value of the station 属性

    The 集成 can still be configured using a station identification code, so existing 配置 using this method remain valid.

    (@michaeldavie - #36010) (environment_canada docs)

  • ZHA

    ZHA Roller shades, drapes, and tilt-only blinds are now a proper cover 实体 instead of a switch.

    Keen vent "dampers" are also now cover 实体 instead of light.

    (@Adminiuga - #36059, #36080) (zha docs)

  • Blink

    The Blink battery has been moved from the sensor platform to the binary_sensor platform since it only reports "OK" or "Low" as a status. The blink.trigger_camera 服务 now takes the entity_name as the payload instead of the name of the 摄像头 itself.

    (@fronzbot - #35620, #35635) (blink docs)

  • HomeKit

    To solve a stability problem, HomeKit now uses the 实体 unique id to generate accessory ids when available. This change allows HomeKit to retain accessory 设置 when 集成 change naming formats or after renaming 实体. As a result, some accessories may need a one time reset by calling the homekit.reset_accessory 服务 for them to function again.

    Home Assistant 核心 0.109 introduced persistent storage for HomeKit accessory ids. When upgrading from 0.108 or earlier, it is highly is recommended to 升级 to 0.110 first to allow the system to store the accessory ids and avoid the need to call the homekit.reset_accessory 服务.

    If the 升级 path skips both 0.109 and 0.110, it may be necessary to unpair and repair the HomeKit Bridge.

    Furthermore, the zeroconf options for HomeKit have been removed. HomeKit now uses a system shared instance for zerconf. If you were previously setting the zeroconf interface choice in HomeKit, you should set the interface choice in the zeroconf 集成 instead.

    (@bdraco - #35691, #35687) (homekit docs)

  • Prometheus

    The Prometheus exporter will now report 0 (STATE_OFF) as expected, instead of reporting the brightness level when the 灯光 is off. You may need to adapt Prometheus data processing.

    (@nbarrientos - #36134) (prometheus docs)

  • De Lijn

    The stopname has been removed from 属性 since it is the same as the 传感器 name.

    (@Emilv2 - #36276) (delijn docs)

  • deCONZ

    Updated 二元sensor and 传感器 设备 classes to follow official ones.

    二元sensor 设备 classes:

    • Carbon monoxide changed to gas
    • Vibration changed to vibration

    传感器 设备 classes:

    • 报警 has been removed
    • Consumption has been removed
    • Daylight has been removed
    • Power has been added as power

    (@Kane610 - #36352) (deconz docs)

  • Synology DSM

    The following 传感器 are now 二元sensor:

    • disk_exceed_bad_sector_thr
    • disk_below_remain_life_thr

    The following 传感器 have been removed:

    • volume type (RAID, SHR ...)
    • disk name (Drive [X])
    • disk 设备 (/dev/sd[Y])

    The disk and volume 传感器 have been replaced: sensor.synology_status_sda to sensor.synology_drive_1_status, sensor.synology_average_disk_temp_volume_1 to sensor.synology_volume_1_average_disk_temp, etc.

    (@Quentame - #35565) (synology_dsm docs)

  • Plugwise

    To improve 用户 friendly 配置 and support Adam and P1 设备 in addition to Anna's, starting today Plugwise is configured through 配置 -> 集成 instead of updating the 配置 file. Please remove the applicable lines from your YAML 配置 file before upgrading. After upgrading add each Smile as an 集成 as described in the 文档. Note that this 更新 also makes slight changes with regard to 实体 names to handle more than Anna.

    (@CoMPaTech, @bouwew - #33691, #36219, #36378, #36383) (plugwise docs)

  • Daikin AC

    配置 via YAML for the Daikin 集成 is deprecated and will become invalid in 发布 0.113.0. All 配置 should be done via the 集成 tab in the GUI. 用户 should remove the Daikin 配置 YAML section before 0.113.0 is released.

    (@fredrike - #35768) (daikin docs)

  • OpenUV

    The OpenUV 集成 can now only be configured via the UI. If you already had OpenUV configured, all you need to do is remove the corresponding lines from your YAML 配置.

    (@bachya - #36148) (openuv docs)

  • History / Recorder

    The history function states_to_json is now a protected function _states_to_json and is not expected to be called from outside the module. This is included as a breaking change in case there are custom 集成 which potentially make use of this.

    (@bdraco - #35721) (history docs) (recorder docs)

  • Dune HD

    The Dune HD is 集成 is now available for 配置 via the UI, your current YAML 配置 is important into the UI automatically. The sources 配置 option has been removed.

    (@bieniu - #36345) (dunehd docs)

  • Plex

    Support for Plex 配置 via YAML 配置 was deprecated in 0.109 and has now been removed. Existing Plex 配置 entries in YAML can be removed without impact, if upgrading from 0.100 or later.

    (@jjlawren - #36388) (plex docs)

  • 自动化

    Last triggered timestamp of 自动化 is now set the moment it is triggered. Previously it was set after the 动作 that was part of the 触发器 was done.

    (@basnijholt - #35671) (自动化 docs)

    Command Line 传感器

    The fix for command line 传感器 removing quotes with 模板 breaks any 传感器 where the quote has been escaped using a backslash. E.g. to work around the previous bug a quote could be added using " and this must now be replaced with simply "

    (@shenxn - #35559) (command_line docs)

告别以下内容

The 集成 below have been removed:

发布 0.111.1 - June 11

发布 0.111.2 - June 13

发布 0.111.3 - June 16

发布 0.111.4 - June 17

所有变更

点击查看所有变更!