0.118:Grid 与日志簿卡片、快速导航,以及模板原生类型

Home Assistant 核心 0.118 来了!

这是 2020 年倒数第二个版本,意味着这一年已经慢慢走到尾声。

这也意味着,今年只剩最后一个版本了……而且我们打算用一场大爆发来为这一年收尾!另外,我们也宣布了 Home Assistant Conference。我真的非常期待!今年最后一次重大发布会在 12 月 13 日的大会期间到来。

回到 0.118!这次发布带来了一些很棒的新内容:可以用 Quick Bar 在各处导航(哦,我真的太喜欢这个功能了)、几张新的 Lovelace 卡片、模板中的原生类型现在默认启用,以及 Nest 恒温器支持回归了!🎉

总的来说,这是一个很不错的版本,而更令人兴奋的还在后面。

../Frenck

目录

Home Assistant 大会

激动人心的消息!Home Assistant 今年将举办一场线上大会

这是一场用来庆祝我们的社区、分享想法、历史与作品,同时纪念重要里程碑的活动! 大会将在 12 月 13 日(星期日)举行。

Home Assistant 创始人 Paulus Schoutsen 将带来开场与闭幕主题演讲, 其他 Home Assistant 开发者也会一同参与。 中间则安排了三条不同主题的演讲线路(大众用户、进阶用户和开发者),总计 16 场分享。

欢迎查看大会日程,了解演讲主题和讲者名单。

Home Assistant Conference 将在线上会议平台 Hopin 举办。 参与门票价格为 1 美元,用于覆盖平台成本。

Get your ticket

大会也会提供免费的 YouTube 直播,不过直播内容仅限主题演讲和“大众用户”线路。 你将无法参与聊天互动,也少了那种真正在线参会的感觉,所以我们还是推荐你购买门票!

如需获取最新信息,请查看我们的 Home Assistant Conference 专题页面。

Home Assistant Conference header

补充:我们都讨厌广告!但我们也想展示我们的用户!

对于没有持续关注发布说明的朋友,我们在配置面板中加入了一条关于大会的公告。它本来就设定为在大会结束后自动消失;如果你想更早关掉它,直接点 x 就行!

我们也理解,这确实会让人担心未来是否会出现广告,而且这次实现方式本可以更好。事实上,在 beta 期间围绕这件事的一些讨论里(没错,有时还挺激烈),大家提出了不少很好的想法和示例,指向一个更像“社区新闻”集成的方案。这样的集成未来可以汇聚社区活动、新闻和项目亮点,并像其他集成一样自由启用或禁用。目前则先用这个横幅,下一次发布它就会被移除。

Grid 卡片

Ever since the start of Lovelace, 用户 have been making grids. However, this was not easy as it involved fiddling by combining horizontal and vertical stacks — a confusing and frustrating experience.

@balloob to the rescue! This 发布 adds a new Grid 卡片. You won't have to write a complicated YAML soup combining both horizontal and vertical stacks.

The Grid 卡片 offers straight forward options to mimic these 设置 and adds an option to force each 卡片 to be square to boot.

Screenshot of the Grid 卡片 Screenshot of Grid 卡片.

*Note that the square option won't work with all 卡片.

Quick Bar 导航

The Quickbar, which was introduced in Home Assistant 0.117, really took off! We are happy to see you like it.

If you haven't tried the new Quick Bar yet... you should! It is a quick and easy way to get to 实体 or run commands. From anywhere in Home Assistant; press e for 实体 or c for commands.

This 发布, support for navigating Home Assistant via the Quick Bar was added. You can now jump to any place, from any place. Amazing job @donkawechico

Screenshot of navigating around using the Quick Bar Screenshot of navigating around using the Quick Bar.

模板原生类型支持

Announced in 0.117, but now by default enabled. Native 模板 types allow 模板 to result in not just strings (text), but also other types.

Ever tried to make a list of 实体 or set an RGB color via a 模板? If so, you probably would have learned, that it is not that simple. In Home Assistant, the result of a 模板 always has been a piece of text (a string), even if you made a list.

script:
  my_script:
    alias: "Example"
    description: Example script with native lists in templates
    variables:
      entities:
        - light.living_room_window
        - light.living_room_table
      color: [255, 0, 0]
    sequence:
      service: light.turn_on
      target:
        entity_id: ""
      data:
        rgb_color: ""

This is an extremely powerful change to our 模板 engine, that allows for more advanced future additions and can significantly reduce the complexity of existing 模板 in your set up.

It should be mostly compatible with your existing 模板; However, be sure to check the backward-incompatible changes section for known possible breaking scenarios.

日志簿卡片

Another new Lovelace 卡片 this 发布. @zsarnett added the Logbook 卡片.

This 卡片 allows you to show the 日志 of one (or more) 实体 on a Lovelace 仪表盘. This can be really helpful if you want to monitor, for example, the motion events of a 传感器 or a 摄像头.

Screenshot of the new Logbook 卡片 Screenshot of the new Logbook 卡片.

页眉和页脚编辑器

实体 卡片 in Lovelace have support for customizing the header and footer of that 卡片. This is really useful for adding a nice 图像, a couple of 按钮 or a graph to the 卡片.

Up until now, you needed some YAML magic to achieve that. Thanks to @zsarnett we now have a Header & Footer editor available in the UI making this feature much easier to use.

Screenshot of the new Header/Footer editor. Screenshot of the new Header/Footer editor.

Supervisor 网络配置

Expected to be available soon, a new Supervisor 版本 which includes a new network layer with added support for wireless networks, multiple network interfaces and even VLANs.

This should 遮盖 most of the feature requests we had around networking.

New Supervisor Network 配置 UI New Supervisor Network 配置 UI

The next step is that we use all the information from our new network 后端 to simplify some 插件. Also, updates for Snapshot/恢复 of these network 设置 are planned.

Home Assistant OS

The last few days, two new Home Assistant OS releases have been published.

While 4.17 continues to make small improvements in the 4.x 发布 series, the latest pre-发布 5.5 comes closer to our goals to declare 5.x 发布 series stable. In particular, this pre-发布 includes the Linux 5.4 kernel for all Raspberry Pis! We also intend to declare 64-bit the recommended 安装 method for 树莓派 4.

发布 5.5 is also the first 发布 to support Hardkernel's ODROID-C4, a very cost-effective single board computer featuring the Amlogic S905X3 SoC and 4GB of DDR4 memory (thanks @ubergeek801). Testers welcome!

其他值得注意的变化

  • The new Nest SDM 集成 now supports thermostats! Thanks, @allenporter!
  • 实体 pickers in the UI will now show the full name of the 实体. Thanks, @spacegaier!
  • The Roon media player now supports media browsing but also has support for grouping and transferring between different players. Thanks @pavoni
  • @cnorick added a 按钮 to duplicate 脚本 from the UI.
  • The Shelly 集成 now has real-time status updates, which has been implemented by @thecode!
  • @apop880 prepared the WLED 集成 for Christmas by adding a 服务 for loading WLED presets.
  • Date pickers in 实体 卡片 have been replaced with a modern, good looking 版本. Thanks, @thomasloven!
  • @joshmcrty Made numbers shown in the 前端 formatted in a way that matches your language 设置.
  • @spacegaier has been busy improving the 前端, making it more accessible to people with disabilities. In this case, ARIA (Accessible Rich Internet Applications) labels have been added, so screen readers can use our + 按钮. Thanks!

新集成

We welcome the following new 集成 this 发布:

新平台

The following 集成 got support for a new platform:

现在可通过 UI 设置的集成

The following 集成 are now available via the Home Assistant UI:

发布 0.118.1 - November 19

发布 0.118.2 - November 20

发布 0.118.3 - November 23

发布 0.118.4 - November 26

发布 0.118.5 - December 5

如果你需要帮助……

...don't hesitate to use our very active forums or join us for a little chat.

Experiencing issues introduced by this 发布? Please report them in our issue tracker. Make sure to fill in all fields of the issue 模板.

不向后兼容的变更

Below is a listing of the breaking change for this 发布, per subject or 集成. Click on one of those to read more about the breaking change for that specific item.

PTVSD

The ptvsd 集成 has been marked as deprecated and will be removed in Home Assistant 核心 0.120. A full-featured replacement is available with the debugpy 集成, which is now considered stable.

(@frenck - #42351)

Flu Near You

Per ADR-0010, this PR deprecates YAML 配置 for Flu Near You until 0.119.

Existing YAML 配置 has already been imported automatically in the previous releases and can now safely be removed from your 配置 files.

(@bachya - #42535) (flunearyou docs)

DirecTV

DirecTV has fully transitioned to 配置 via UI. YAML 配置 is no longer supported. Existing YAML 配置 has already been imported automatically in the previous releases and can now safely be removed from your 配置 files.

(@ctalkington - #41961) (directv docs)

Roku

Roku has fully transitioned to 配置 via UI. YAML 配置 is no longer supported. Existing YAML 配置 has already been imported automatically in the previous releases and can now safely be removed from your 配置 files.

(@ctalkington - #41960) (roku docs)

模板 - 移除 extract_entities

This breaking change is for custom component 开发者 only!

The template.helpers.extract_entities has been removed as it has not been used in 核心, been deprecated, and thrown 警告 since the new 模板 system tracking was introduced.

homeassistant.helpers.event.async_track_template_result should be used instead.

(@bdraco - #42601)

OpenWeatherMap

OpenWeatherMap has fully transitioned to 配置 via UI. YAML 配置 is no longer supported. Existing YAML 配置 has already been imported automatically in the previous releases and can now safely be removed from your 配置 files.

Additionally, previously the OpenWeatherMap 集成 used Pa as their unit of measurement for air pressure. However, air pressure is measured and reported as hPa so the unit of measurement has been changed to hPa. This could be a breaking change for using such 实体 in, for example, influxdb.

(@nzapponi - #39839) (@randyxxl - #42801) (openweathermap docs)

Shelly

Shelly 设备 configured with new (fw >= 1.9) property "appliance_type" can now be added to the 灯光 domain instead of the 开关 domain.

(@chemelli74 - #42508) (shelly docs)

Epson

The Epson 集成 is now configured via the UI. Existing YAML 配置 if automatically imported on 升级 and can be safely removed afterward.

The SSL option has been remove, as there is no signs that anybody used it with success.

(@pszafer - #39697) (epson docs)

全球灾害警报与协调系统 (GDACS)

The 集成 will not consider bounding box geometries anymore when calculating the distance to an event from the feed. In practice it has turned out that these bounding boxes are way too large around the event to make them useful for the purpose of notifying 用户 about these events.

Any existing 配置 will continue to work and does not need to be 修改. However, please consider changing the radius defined for your 集成 to match your expectations, especially if your main concern are widespread and moving events such as tropical cyclones.

(@exxamalte - #42957) (gdacs docs)

模板

This feature was introduced as an opt-in beta feature in Home Assistant 核心 0.117, and is now enabled by default.

A 模板 would always result in a string (text). This made it hard to use things like lists, or numbers as a result of a 模板. For example, returning a list of 实体 or an RGB/HS/XY color.

This change may impact your existing 模板, as 模板 now can return other types; For example, string, float, integer, boolean, lists or dictionaries.

The following 模板 can be impacted by this:

  • 实体 with templated 属性. 属性 keep their native Python type, thus if the 属性 is used/processed in a 模板 again later, the type might be different.
  • 模板 working with lists or mappings (dictionaries). Previously, such collection would be returned as a text, for example [1, 2, 3, 4, 5]. We’ve seen examples where such results are decoded using text processing again (e.g., by splitting the result on a, to get the separate values). The additional processing is no longer needed, as the returned value will be a collection now.
  • Note: The 实体 状态 in Home Assistant is always a text (string). Even with native types being supported in 模板 now if a result is stored as an 实体 状态, they will be converted to a string.

In case this new feature causes a problem for you, you can enable the old-style 模板 rendering again, by setting the following 配置:

homeassistant:
  legacy_templates: true

Please note, this option is a temporary/transitional option, that will be removed in the future. Adjusting your 模板 to the new situation is therefore advised.

(@frenck - #42967)

犹太历

实体 for 此integrations now use a "timestamp" 设备 class. Therefore, the timetamp 属性 have been removed.

(@yuvalabou - #41397) (jewish_calendar docs)

Sisyphus

This 发布 contains updates to improve stability and support newer Sisyphus table firmwares. There is a small chance that older firmwares will have issues with this 发布; if you have trouble with the Sisyphus 集成 after this 更新, make sure your table is running at least firmware 1.10.73.

(@jkeljo - #42995) (sisyphus docs)

Neurio energy

As of July 26, 2020, due to an API change; You now must provide a sensor_id for the Neurio 传感器 to work; otherwise, an 错误 returns that the request is unauthorized.

(@czechmark - #42728) (neurio_energy docs)

AirVisual

Per ADR-0010, this PR deprecates YAML 配置 for AirVisual until 0.119. If you already use the AirVisual 集成, you do not need to take 动作, as your 配置 has already been imported into the UI.

(@bachya - #42581) (airvisual docs)

Notion

Per ADR-0010, this 发布 deprecates YAML 配置 for Notion until 0.119.

Existing YAML 配置 will be imported automatically when upgrading and can be safely removed from your 配置 files afterward.

(@bachya - #43026) (notion docs)

FRITZ!

The default value for 密码 was set to "admin" in the fritz and fritzbox_callmonitor 集成. This has been corrected and moved to be the default value for the 配置 option of username.

Tile

Per ADR-0010, this 发布 deprecates YAML 配置 for Tile until 0.119.

Existing YAML 配置 will be imported automatically when upgrading and can be safely removed from your 配置 files afterward.

(@bachya - #43064) (tile docs)

KNX

The parameter context_timeout is now optional for 二元sensor and will default to None. If you've previously not specified this parameter you'll have to adjust your 配置 and add it like this:

knx:
  binary_sensor:
    - name: sensor
      state_address: "1/2/3"
      context_timeout: 1.0

This prevents 用户 that do not use this feature from waiting one second until 自动化 are triggered.

The parameter reset_after for 二元sensor expects seconds now instead of milliseconds to streamline the different 配置 options. (context_timeout also uses seconds).

The parameter ignore_internal_state for 二元sensor now defaults to False as most 用户 do not use this feature. It defaulted to True before.

If you have validation 错误 of your 配置 after the 更新 and you are using the operation_modes parameter for your 温控 设备, please add all erroneous entries to the new controller_modes parameter.

(@marvin-w - #42026) (knx docs)

告别以下内容

  • The iAlarm 集成 has been removed. It was using webscraping to gather its data, which is not allowed. (@frenck - #43010)

所有变更

点击查看所有变更!