0.109:全新集成页面与天气卡片,前端更轻盈了

上周我们写了关于 YAML 未来 的文章。这又引出了不少问题, 于是 PhilRohan 发布了一期 Home Assistant Podcast 特别节目。 在这一期中,他们和 Paulus 一起聊了这些已公布的变化。

点击这里收听 Podcast

Home Assistant Core 0.109 来了!

这个版本带来了很多肉眼不一定立刻看得出来的工作成果。 我们做了大量 bug 修复、稳定性提升和质量改进,真的非常棒! 这次更新远不止表面看到的那些内容。

全新的集成配置页面

先从一个看得见的变化开始。作为配置界面重构的一部分, 我们开始重新打造集成页面。现在,这个页面会为每个已配置的集成显示卡片, 并链接到已过滤的设备页和实体页,而不是再提供自己那套包含设备、选项和实体的详情页。

所有选项现在都放在同一张卡片里。 此外,你现在也可以给已经设置好的集成实例重新命名了。

Screenshot of the new 集成 page 新版集成页面截图。

这些新 Logo 看起来是不是很漂亮? 非常感谢过去几周里努力完善我们 Logo 与图标仓库 的所有人。 我们已经处理了将近 700 次贡献!

感谢每一位参与贡献的人,真的太了不起了! 特别感谢这些承担了最多工作的高手:@adrianmihalko, @BradleyFord, @Klumper, @nldroid, @samrdev! 🥇

在后续版本中,我们还会继续加入搜索、把同一集成的多个条目分组显示, 并为像 ZHA 这样的集成提供专门功能。

全新天气卡片

为了配合新的天气行设计,@zsarnett 重新设计了天气预报卡片。 它更干净,也更适合小屏幕使用。 此外,你现在还可以隐藏天气预报部分。

Screenshot of the new 天气 forecast 卡片 新版天气预报卡片截图。

前端瘦身

Home Assistant 拥有一套翻译系统,这非常棒, 因为它能让每个人都用自己偏好的语言来使用 Home Assistant。

但它也带来了性能代价。每次都会下载所有翻译, 没错,是全部下载。这当然非常低效。 随着越来越多前端新功能加入,以及越来越多集成进入 UI,这个问题也变得越来越明显。

在这个版本中,@balloob 花了很多力气提升这一点。 从现在开始,前端只会获取自己真正需要的翻译。 这让前端加载的数据更少,对浏览器来说也更轻量。

你知道你也可以帮忙翻译 Home Assistant 吗?

你完全不需要学习 git 之类的东西,直接在浏览器里就能参与! 想了解如何帮助翻译 Home Assistant,可以查看我们的 开发者网站

检测事件循环中的阻塞 I/O

这一点稍微有些技术向:在 Home Assistant 里,像从 API 或网站获取数据这类事情, 如果处理方式不正确,就可能让 Home Assistant 短暂卡住。过去这类问题一直很难发现。

这个版本在 Home Assistant Core 中加入了新的检测逻辑, 可以发现某个集成是否做了这类阻塞调用,并把提示写入日志。

Screenshot of an example 日志 entry Screenshot of an example 日志 entry.

如果你在日志里看到了这样的消息,请在我们的 GitHub 上报告问题, 这样我们就能修复这些情况。如果是某个自定义组件导致的日志提示, 则应该反馈给那个自定义集成的作者。

通过解决这些问题,我们将能显著提升 Home Assistant 的性能、响应速度与稳定性。

其他值得注意的变更

  • @timmo001 为 Lovelace 卡片选择器加入了搜索功能。

Screenshot of the search added to the 卡片 picker 卡片选择器新增搜索功能的截图。

  • 现在 MQTT 设备的设备页面中也会显示 MQTT 调试信息,@emontnemery 干得漂亮!

  • @frenck 重新为场景加入了过渡效果支持。现在 scene.turn_onscene.apply 服务都接受 transition 选项,让你的场景切换灯光时可以丝滑过渡。 一个使用示例已经加入到文档中。

  • HomeKit 这次也得到了 @bdraco 的重点照顾。他修掉了很多 bug、提升了整体稳定性,还加入了对吸尘器的支持。此外,HomeKit 配对时现在会显示更易扫描的二维码,让设置过程更加轻松。

  • @Kane610 这次真的下足功夫在打磨 UniFi 集成,带来了大量调整与改进。感谢!

  • iRobot Roomba 集成现在也支持 Braava 了!感谢 @shenxn

新集成

新平台

现已可通过 UI 设置的集成

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

如果你需要帮助……

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

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

不向后兼容的变更

  • Flu Near You - 此integrations is now available to be added from the UI. The monitored_conditions setting has been removed. You will need to reconfigure your existing YAML 集成. - (@bachya - #32858) (flunearyou docs)

  • Synology DSM - 此integrations is now available to be added from the UI. It has been renamed from synologydsm to synology_dsm. Discovery support has been added and the name 配置 key has been removed. - (@Quentame - #32704) (@bdraco - #33729) (synology_dsm docs)

    Example YAML 配置:

    synology_dsm:
      - host: XXX
        username: XXX
        password: XXX
  • UniFi - Site ID has been removed from 设备 tracker 状态 属性 since 集成 and 实体 can only belong to one site and it is already known. - (@Kane610 - #32817) (unifi docs)

  • National 天气 服务 (NWS) - YAML 配置 is no longer supported for NWS 集成, 配置 is now done through the UI. Two 实体 are now 创建 for each configured entry, one for daynight and one for hourly. The mode option is no longer needed and name option is no longer supported. - (@MatthewFlamm - #34267) (nws docs)

  • Withings - Withings sleep 状态 has been removed as it does not work as intended anymore. Withings only provides historical data for this API endpoint and getting recent data is rare. This results in wildly inaccurate 状态 reported by Home Assistant. - (@vangorra - #33817) (withings docs)

  • Slide - 此integrations was previously using the wrong inverted percentage of open/close. A new invert_position fallback option has been added and the 5% offset to round it off as open/close has been extended to 15%. Now it lines up with Home Assistant standards, which makes HomeKit work out of the box. - (@ualex73 - #33739) (slide docs)

  • Roomba - 此integrations can now be added from the 集成 UI and provides additional 传感器! You will need to reconfigure your existing YAML 配置. Please see the 文档 for more details. - (@Cyr-ius - #33302) (roomba docs)

    Example YAML 配置:

    roomba:
    - host: IP_ADDRESS_OR_HOSTNAME
      blid: BLID
      password: PASSWORD
  • UV 传感器 (various) - Some UV 传感器 in the 集成 Metoffice, OpenUV, Rfxtrx and Tellduslive did not have a generalized unit of measurement. However, after this change these 传感器 now have the unit of measurment UV index. This can be a breaking change if you display this kind of 传感器 in external systems such as influxdb, for example. - (@springstan - #34055) (metoffice docs) (openuv docs) (rfxtrx docs) (tellduslive docs)

  • Ecobee - Ecobee now uses HVAC mode heat_cool instead of auto, which is reserved for when the 用户 has no control over the temperature. In Ecobee this was not the case and the 用户 has control over the temperature. - (@balloob - #34193) (ecobee docs)

  • Air Quality (various) - Some air quality 实体 did not have the unit_of_measurement property set. Now all air quality 实体 have the appropriate unit_of_measurement µg/m³ set. This can be a breaking change if you display this kind of 传感器 in external systems such as influxdb, for example. - (@bieniu - #33304) (air_quality docs) (xiaomi_miio docs)

  • SmartThings - This change removes the need (and ability) to use the SmartThings Classic mobile application to 安装 the Home Assistant SmartApp. Going forward, the SmartThings 集成 设置 is completed entirely through the web. This only changes how the 集成 is 设置 and not any functionality once 设置. - (@andrewsayre - #34163) (smartthings docs)

  • Sony Bravia TV - 配置 of new instances will only be possible through 集成 due to the lack of the bravia.conf file, which is necessary for YAML 配置. Existing instances will be imported into config_entry. ignored sources has been added to the options and the missing device_class property has been added to the 实体 class. - (@bieniu - #33774) (braviatv docs)

  • eQ-3 MAX! - Custom vacation preset is replaced with standard away. Additionally, manual preset is removed in favor of HVAC mode heat. This might affect your 脚本, 模板 or 自动化. - (@leppa - #28845) (maxcube docs)

    Other improvements:

    • It wasn't possible to return to automatic (scheduled) operation after switching to manual preset. none preset was added, which 开关 thermostats to automatic (scheduled) operation.

    • Manual preset was removed. HVAC mode Heat now 开关 thermostats into manual mode.

    • hvac_action is implemented, based on the valve position: if it's open (position higher than 0), we assume that hot water is flowing and heating is active. Else, the thermostat is in Idle mode. For wall thermostats, if at least one thermostat in the 房间 has its valve open, then heating is active.

    • Support for Comfort, Eco, Off and On modes was added. Comfort, Eco and On are exposed as presets and 开关 thermostats into manual mode with corresponding temperatures, programmed on the thermostats. Off corresponds to HVAC mode Off.

    • Valve position is exposed as 状态 属性.

  • Recorder - The recorder 配置 purge_interval has been deprecated. The recorder database is now purged every night. This can be disabled with the new auto_purge 配置 though that is usually not recommended. - (@amelchio - #33646) (recorder docs)

  • USCIS - The USCIS now uses name instead of friendly_name in its YAML 配置. You will need to adjust accordingly. - (@chrisrosset - #33431) (uscis docs)

  • Panasonic Viera - This is now its own 集成 and is available through the 集成 UI. You will need to reconfigure your existing YAML 集成. - (@joogps - #33829) (panasonic_viera docs)

    Example YAML 配置:

    panasonic_viera:
      host: 192.168.1.10
  • HomeKit Controller - Support for homekit_controller's legacy pairing data folder .homekit has now been removed. This has not been how pairings are saved since Home Assistant 0.94. If you are running Home Assistant 0.94 or later this does not affect you as your pairings were automatically migrated to the new scheme already. If you are running an older 发布 then you will need to re-pair after upgrading. - (@Jc2k - #34333) (homekit_controller docs)

  • Add Islamic Prayer Times - Islamic Prayer Times is now its own 集成 and can be added using the 集成 UI. You will need to reconfigure your existing YAML 配置. All 传感器 will display the prayer times as per the selected calculation method. Changing the calculation method will 更新 all 传感器 with new prayer times. - (@engrbm87 - #31590) (islamic_prayer_times docs)

    Example YAML 配置:

    islamic_prayer_times:
      calculation_method: makkah
  • AVM FRITZ!Box - 此integrations is now available to be added from the UI. YAML 配置 has been deprecated and should no longer be used, as it will be removed in one of the next releases. - (@escoand - #31240) (fritzbox docs)

  • Plex - Configuring Plex via YAML is now deprecated and will be removed in Home Assistant 核心 0.111. 配置 is now done through the UI.- (@jjlawren - #34546) (plex docs)

  • Google Cast - Connecting to Cast 设备 now depends on mDNS even when IP addresses of the Cast 设备 are manually entered.- (@emontnemery - #33922) (cast docs)

告别以下内容

  • Pushetta
  • Yahoo 天气

Pushetta has been offline since September 2019 and the Yahoo 天气 API has been discontinued. - (@frenck - #34497 #34501)

发布 0.109.1 - April 30

发布 0.109.2 - May 1

发布 0.109.3 - May 2

发布 0.109.4 - May 4

发布 0.109.5 - May 6

发布 0.109.6 - May 7

所有变更

点击查看所有变更!