title: '2021.10.0:Z-Wave S2 支持、Tuya、安全 ESPHome 与 400 个新图标' description: '<a href=''/home-assistant/integrations/版本/2021.10''<img src=''/home-assistant/images/blog/2021-10/social.png'' style=''border: 0;box-shadow: none;''</a。' 以及 400 个新的 MDI 图标!

2021.10.0:Z-Wave S2 支持、Tuya、安全 ESPHome 与 400 个新图标

十月!我太喜欢这个月份了!

对你们中的大多数人来说(和我一样),这意味着冬天要来了。大家又会更多待在室内。这不正是多花点时间折腾智能家的绝佳理由吗?😃

这也是通过参加 Hacktoberfest 来庆祝开源的月份!如果你为任何开源项目提交 4 次贡献(比如 Home Assistant 😘),就能拿到一件免费的 T 恤!

对 Home Assistant 项目来说,这意味着又是忙碌的一个月。不过没关系,看到新朋友参与贡献总是件很棒的事!

与此同时,Home Assistant 已经 8 岁了!真不可思议!而今年的生日公告更是让人兴奋(下面会讲到更多)。

回到这次发布本身:Z-Wave JS 又更进一步了!如果你家里有 Z-Wave 网络,却还没开始用 Z-Wave JS……那么……也许现在就是下定决心切换的时候了。你不会后悔的。

这次发布还带来了大家讨论很多的全新 Tuya 集成,而且它是由 Tuya 官方自己支持的!我很期待它接下来会发展成什么样。

当然,今天稍晚我们也会直播 2021.10 发布派对!欢迎在欧洲中部夏令时间 21:00 加入我们:https://youtu.be/QWy4jWzKUEw

祝你享受这次发布!

../Frenck

Home Assistant Yellow

如果你错过了这条消息:Home Assistant 已经 8 岁了!🥳 为了庆祝这件事,我们正式发布了 Home Assistant Yellow

Home Assistant Yellow 通过众筹活动启动,而且已经达成了筹资目标!这实在太棒了!

而且……你现在依然可以支持这项众筹,入手属于你自己的 Home Assistant Yellow!

Go to campaign on CrowdSupply »

Z-Wave JS 更新!

这次发布里,我们有两个很棒的 Z-Wave JS 更新想和你分享。

现在支持 S2

安全性是我们都非常在意的事情。像门锁、会触发报警系统的运动传感器这类设备,我们都不希望它们被篡改。对于 Z-Wave 设备来说,这一点同样重要!

从这个版本开始,Home Assistant 的 Z-Wave JS 集成支持 S2 了!

S2 是 Security 2 的简称,是 Z-Wave 设备的新一代安全标准,它会为网络中的每台设备提供不同的密钥。它是此前 S0 版本更安全的升级版。

除了更安全之外,支持 S2 的设备通常也更可靠、续航更好,并且相比 S0 延迟更低。

Z-Wave JS 集成会自动选择当前可用且最合适的安全方式。

Screenshot of Z-Wave JS pairing a new 设备 with S2 security 添加新的 Z-Wave 设备时,会自动使用最佳可用安全方式。

如果你在这次更新前,就已经把支持 S2 的 Z-Wave 设备配对到了 Home Assistant,那么你需要重新配对它们,才能启用新的 S2 功能。

从旧版 Z-Wave 集成迁移的向导

你还在使用旧的、已经弃用的 zwave 集成吗?如果是,那你可能一直因为迁移工作量而迟迟没有升级到 Z-Wave JS。现在也许该重新考虑了……

Home Assistant 现在为旧版 Z-Wave 集成用户提供了迁移向导,可以更轻松地迁移到新的 Z-Wave JS 集成。

为了避免意外情况,向导会明确告诉你它将执行什么、哪些内容能迁移、哪些不能迁移。

旧版且已弃用的 Z-Wave 集成仍会在技术允许的范围内继续工作,但不会再获得更新。

新的 Tuya 集成

没错!Tuya 集成已经升级到了全新版本:由 Tuya 自己的开发团队开发并维护!

目前,它已经支持灯光、开关、场景、风扇和温控设备。和旧版集成相比,遮盖支持暂时还缺席,我们希望能在后续发布中补上。另外,这个新集成现在还会主动把更新推送到 Home Assistant!

如果你之前已经在使用 Tuya 集成,那么这次需要从头重新设置,因为这个集成已经被完全重写,并且改用了不同的 API。

更多信息,请参阅 Tuya 集成文档

更新后的 Material Design Icons

Material Design Icons 已经更新到 v6!

这个新版本的 MDI 带来了将近 400 个新图标(其中还有 75 个以上是专门为 Home Assistant 标注的)❤️

Sample image showing some of the new Material Design Icons available 这次发布加入了一些非常实用的新 MDI 图标!

v6 中有一些图标被移除或重命名了,不过我们确保它们在接下来的两个版本中仍然可用。如果你正在使用受影响的图标,Home Assistant 会在日志中写入警告。更多信息请查看下方的破坏性变更部分。

ESPHome 的加密通信支持

ESPHome 与 ESPHome 集成现在已经支持彼此之间的加密通信。@OttoWinter 一直在努力把这层加密加入 ESPHome API,而它使用的是 noise protocol

除了这个版本的 Home Assistant 之外,你还需要至少 ESPHome 2021.9.0,并为你的 ESPHome 设备开启加密通信配置。

太棒了,@OttoWinter

关于如何配置的更多信息,请查看 ESPHome 文档

其他值得注意的变化

这次发布还有很多内容,下面是其中一些值得关注的变化:

  • 能源仪表板现在支持以 kWh 为单位的燃气传感器。

  • 我们还提供了一个新的长期统计开发者工具。当你需要排查或修复统计相关的问题或警告时,它会很有帮助。

  • Shelly 团队最近很忙,加入了对新一代 Shelly 设备的支持,也就是所谓的 Gen2 或 Plus 设备(基于 WebSocket RPC)。

  • TP-Link Kasa Smart 集成得到了大量改进:支持更多新设备、可通过 UI 配置,并加入了设备发现功能。它还修复了那个著名又令人头疼的 “unavailable” bug!感谢 @rytilahti

  • @Aohzan 为 Logitech Harmony 集成加入了一个可切换活动的 select 实体,非常实用!

  • HomeKit now supports the select and input_select 实体, thanks to @ha0y!

  • @Kane610 为 deCONZ 加入了对 Siren 实体的支持。

  • manual 报警控制面板现在支持度假模式了,感谢 @mbo18

  • @koying 新增了一个模板方法 regex_findall,可以返回正则表达式的全部匹配结果列表。

  • @emontnemery 还带来了更多模板增强,新增了 is_number 函数和过滤器,可快速判断一个值是不是数字。

  • Lovelace 实体卡片现在支持在实体处于激活状态时让图标变色(state_color)。感谢 @spacegaier

  • SwitchBot 集成也得到了 @RenierM26 的大力改进!加入了不少新平台,还支持通过 UI 配置,干得漂亮!

新集成

欢迎以下新集成加入这次发布:

现在可在 UI 中配置的集成

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

发布 2021.10.1 - October 7

发布 2021.10.2 - October 8

发布 2021.10.3 - October 10

发布 2021.10.4 - October 11

发布 2021.10.5 - October 15

发布 2021.10.6 - October 18

发布 2021.10.7 - November 1

如果你需要帮助……

……欢迎随时使用我们非常活跃的 论坛,或者加入我们的 聊天频道

如果你遇到了这次发布引入的问题,请到我们的 issue tracker 提交反馈,并确保填写问题模板中的所有字段。

破坏性变更

下面按主题或集成列出了本次发布中的破坏性变更。点击对应项目即可阅读该条变更的更多说明。

The following template filters and functions will now 日志 a 警告 instead of silently returning the input if the input is invalid and no default value is specified:

  • acos
  • as_timestamp
  • asin
  • atan
  • atan2
  • cos
  • float
  • log
  • multiply
  • round
  • sin
  • sqrt
  • strptime
  • tan
  • timestamp_custom
  • timestamp_local
  • timestamp_utc

The float filter will now 日志 a 警告 instead of silently returning 0 if the input is invalid and no default value is specified.

In Home Assistant 核心 2021.12 the template will fail to render if no default value is specified. You can specify a default value by passing to the filter like this: ``.

(@emontnemery - #56453)

The Material Design Icons have been upgraded to v6, which brings in around 400 new icons and removes and renames some others.

The removed and renamed icons will keep working for this and the next release, Home Assistant will write a warning to the logs in case you are using one of the removed or renamed icons.

The following icons have been removed:

  • adobe-acrobat
  • adobe
  • amazon-alexa
  • amazon
  • android-auto
  • android-调试-bridge
  • bandcamp
  • battlenet
  • blogger
  • buffer
  • cash-usd-outline
  • cash-usd
  • cellphone-android (alternative: cellphone)
  • cellphone-iphone (alternative: cellphone)
  • concourse-ci
  • currency-usd-circle
  • currency-usd-circle-outline
  • do-not-disturb-off (alternative: minus-circle-off)
  • do-not-disturb (alternative: minus-circle)
  • douban
  • file-pdf (alternative: file-pdf-box)
  • file-pdf-outline (alternative: file-pdf-box)
  • file-pdf-box-outline (alternative: file-pdf-box)
  • google-photos
  • home-currency-usd
  • laptop-chromebook (alternative: laptop)
  • laptop-mac (alternative: laptop)
  • laptop-windows (alternative: laptop)
  • microsoft-edge-legacy
  • microsoft-yammer
  • pdf-box (alternative: file-pdf-box)
  • plus-one (alternative: numeric-positive-1)
  • poll-box (alternative: chart-box)
  • poll-box-outline (alternative: chart-box-outline)
  • tablet-ipad (alternative: tablet)
  • telegram
  • untappd
  • vk
  • xamarian-outline
  • xing
  • y-combinator

The following icons have been renamed:

  • apple-airplay to cast-variant
  • application to application-outline
  • application-cog to application-cog-outline
  • application-设置 to application-设置-outline
  • bolnisi-cross to cross-bolnisi
  • boom-gate-up to boom-gate-arrow-up
  • boom-gate-up-outline to boom-gate-arrow-up-outline
  • boom-gate-down to boom-gate-arrow-down
  • boom-gate-down-outline to boom-gate-arrow-down-outline
  • buddhism to dharmachakra
  • cellphone-erase to cellphone-remove
  • celtic-cross to cross-celtic
  • christianity to cross
  • christianity-outline to cross-outline
  • face to face-man
  • face-outline to face-man-outline
  • face-profile-woman to face-woman-profile
  • face-shimmer to face-man-shimmer
  • face-shimmer-outline to face-man-shimmer-outline
  • flash-circle to lightning-bolt-circle
  • floor-lamp-variant to floor-lamp-torchiere-variant
  • gif to file-gif-box
  • gradient to gradient-vertical
  • hand to hand-front-right
  • hand-left to hand-back-left
  • hand-right to hand-back-right
  • hinduism to om
  • human-greeting to human-greeting-variant
  • iframe to application-brackets
  • iframe-outline to application-brackets-outline
  • iframe-array to application-array
  • iframe-array-outline to application-array-outline
  • iframe-braces to application-braces
  • iframe-braces-outline to application-braces-outline
  • iframe-parentheses to application-parentheses
  • iframe-parentheses-outline to application-parentheses-outline
  • iframe-variable to application-variable
  • iframe-variable-outline to application-variable-outline
  • islam to star-crescent
  • judaism to star-david
  • monitor-clean to monitor-shimmer
  • pharmacy to mortar-pestle-plus
  • sparkles to shimmer
  • teach to human-male-board
  • television-clean to television-shimmer
  • text-subject to text-long
  • twitter-retweet to repeat-variant
  • voice-off to account-voice-off

Removes the support for legacy fan speeds.

Using speeds ('off', 'low', 'medium' or 'high') for the 风扇 platform became deprecated with Home Assistant Core 2021.07, while preset modes and percentage support was added.

(@jbouwh - #55174) (alexa docs)

In order to introduce the new link status binary 传感器, the previous connectivity 传感器 has been renamed to connection.

Please check both your Lovelace 配置 and your automations to reflect this change.

(@chemelli74 - #55446) (fritz docs)

The API endpoint /api/discovery_info now only return blank values. This endpoint is scheduled to be removed in Home Assistant Core 2022.1.

As a regular user of Home Assistant, this change should not affect you.

(@ludeeus - #56097) (api docs)

The DLNA Digital Media Renderer 集成 migrated to 配置 via the UI. Configuring DLNA Digital Media Renderer via YAML 配置 has been deprecated and will be removed in a future Home Assistant release.

Your existing YAML 配置 is automatically imported on upgrade to this release; and thus can be safely removed from your YAML 配置 after upgrading.

(@chishm - #55267) (dlna_dmr docs)

When an iOS 设备 wakes up it has to refresh all the A records for each paired accessory. When there are many paired accessories this can result in HomeKit timing out before it can refresh all the records and declaring some accessories unavailable.

We now use the same server name for all HomeKit bridges and accessories on a single Home Assistant instance. This allows the system to avoid doing multiple lookups since it only needs to find one A record when waking from sleep.

iOS 设备 and Home Hubs (Apple TVs / HomePods / iPads) may cache the server name even if it expires and may require a reboot to see the new name. If this is the case, accessories may show unavailable when outside the home until ALL home hubs are rebooted.

(@bdraco - #55860)

The polling interval of the Honeywell Lyric 集成 has been decreased to 300 seconds to reduce chances of hitting API limit.

(@timmo001 - #56393) (lyric docs)

The (non-working) pressure 传感器 has been removed.

(@fredrike - #56934) (point docs)

The Modem Caller ID 集成 migrated to 配置 via the UI. Configuring Modem Caller ID via YAML 配置 has been deprecated and will be removed in a future Home Assistant release.

Your existing YAML 配置 is automatically imported on upgrade to this release; and thus can be safely removed from your YAML 配置 after upgrading.

(@tkdrob - #46677) (modem_callerid docs)

The Moon 实体 would never have a primary moon phase state. So the state of the moon would go from Waxing gibbous directly to Waning gibbous, without being Full Moon in between.

Now the Moon 实体 will correctly have the primary moon phases: New Moon, First Quarter, Full Moon and Third Quarter.

If you have automations relying on the state of the moon, please review them to check if they still behave as intended.

(@stefanroelofs - #55518) (moon docs)

The NETGEAR 集成 migrated to 配置 via the UI. Configuring NETGEAR via YAML 配置 has been deprecated and will be removed in a future Home Assistant release.

Your existing YAML 配置 is automatically imported on upgrade to this release; and thus can be safely removed from your YAML 配置 after upgrading.

(@starkillerOG - #54479) (netgear docs)

The extra attribute 状态 is removed from all 传感器, since it is already exposed as an own 传感器.

If you relied on this attribute for your automations or script, you might need to adjust to this change.

(@mib1185 - #56078) (nut docs)

The OpenGarage 集成 has previously been migrated to 配置 via the UI. Configuring OpenGarage via YAML 配置 has now been deprecated and will be removed in a future Home Assistant release.

Your existing YAML 配置 is automatically imported on upgrade to this release; and thus can be safely removed from your YAML 配置 after upgrading.

(@Danielhiversen - #56829) (opengarage docs)

The extra attribute domains_blocked is removed from all 传感器, since it is already exposed as an own 传感器.

If you relied on this attribute in your automations or script, you need to adjust those to match this change.

(@mib1185 - #56076) (pi_hole docs)

The previously deprecated YAML 配置 of the ReCollect Waste 集成 has been removed.

ReCollect Waste is now configured via the UI, any existing YAML 配置 has been imported in previous releases and can now be safely removed from your YAML 配置 files.

(@bachya - #55426) (recollect_waste docs)

The extra state attribute last_update has been normalized to the UTC timezone.

If you have any 自动化 or scripts that relied on this, you might need to adjust those to take this into account.

(@epenet - #54745) (renault docs)


sensor.charge_mode has been moved to select.charge_mode (note: unique_id is unchanged).

(@epenet - #55494) (renault docs)

The previously deprecated YAML 配置 of the RFXCOM RFXtrx 集成 has been removed.

RFXCOM RFXtrx is now configured via the UI, any existing YAML 配置 has been imported in previous releases and can now be safely removed from your YAML 配置 files.

(@elupus - #54173) (rfxtrx docs)

The previously deprecated YAML 配置 of the Speedtest.net 集成 has been removed.

Speedtest.net is now configured via the UI, any existing YAML 配置 has been imported in previous releases and can now be safely removed from your YAML 配置 files.

(@engrbm87 - #55642) (speedtestdotnet docs)

The Sure Petcare 集成 has previously been migrated to 配置 via the UI. Configuring Sure Petcare via YAML 配置 has now been deprecated and will be removed in a future Home Assistant release.

Your existing YAML 配置 is automatically imported on upgrade to this release; and thus can be safely removed from your YAML 配置 after upgrading.

(@Danielhiversen - #56209) (surepetcare docs)

The following additional state attributes have been removed from the existing 传感器:

  • available
  • filesystem
  • load_average
  • load_idle
  • load_system
  • load_user
  • mount
  • size
  • type
  • used

You should update any automations and scripts that depend on these state attribute to use the separate 传感器 available for these states.

(@timmo001 - #53892) (system_bridge docs)

The TP-Link Kasa Smart 集成 migrated to 配置 via the UI. Configuring TP-Link Kasa Smart via YAML 配置 has been deprecated and will be removed in a future Home Assistant release.

Your existing YAML 配置 is automatically imported on upgrade to this release; and thus can be safely removed from your YAML 配置 after upgrading.

(@rytilahti - #56701) (tplink docs)

The previous Tuya API is no longer maintained by Tuya officially and the new 集成 will be officially maintained by the Tuya Developer Team.

If you used the 集成 before this release, you'd need to set it up again from scratch. To do that, remove any existing instances from the 集成 仪表盘. After that, use our documentation for guidance on setting up the new 集成.

The cover platform is not ready for this release but will be included later. If you have cover 设备, they will not available for control at the moment.

(@zlinoliver - #56820) (tuya docs)

UPnP/IGD 集成 no longer supports the local_ip 配置 option. If you still have this configured in your YAML 配置, please remove it.

(@StevenLooman - #55540) (upnp docs)

The Velbus 集成 migrated to 配置 via the UI. Configuring Velbus via YAML 配置 has been deprecated and will be removed in a future Home Assistant release.

The Velbus 服务 calls will now need an interface parameter, this is to allow support for multiple Velbus connections. If you are using Velbus 服务 in your automations or scripts, you may been to adjust those to this change.

(@Cereal2nd - #54032) (velbus docs)

The model and mode attributes have been removed. The preset_mode attribute is available in place of the mode attribute.

The 设备 model is available in the 设备 info window.

(@bieniu - #55846) (xiaomi_miio docs)

The unused ruamel.yaml utility functions have been removed. They were never in use nor documented. If your custom 集成 relied on ruamel.yaml being installed, make sure it's part of your manifest.

(@balloob - #55672)

向以下集成告别

The following 集成 are no longer available as of this release:

  • Trackr has been removed. The API is no longer available and has therefore been removed. (@FuzzyMistborn - #55917)
  • Tesla has been removed due to increased Tesla login security preventing third-parties to log in. (@alandtse - #55988)

全部变更