0.108:Logo、区域页面、Lovelace 实体卡片、Lovelace 地图历史

在聊这篇博客标题里的内容之前:

谨代表所有参与 Home Assistant 项目的人,我们希望你、你的家人以及你关心的人在这场疫情期间都能平安健康。 我们也向所有深受当前局势影响的人表达关心。

请保持坚强,彼此保持距离,勤洗手,注意安全。

❤️

上一个版本周期里,我们一路发布到了 0.107.7,总共 7 个补丁版本。

很多人注意到并提到,过去几个月我们的补丁版本确实变多了。这并不是因为我们发布的东西都是坏的,而是因为我们希望尽快把任何 bug 修复交付给你,这样你就不用为一个修复等待 3 周。

那么,来聊聊房间里的大象吧:Home Assistant Core 0.108!

Martin Hjelmare 与 Ashton Lafferty 加入 Nabu Casa

我们想先宣布一个消息:Martin Hjelmare 已加入 Nabu Casa

Martin 长期以来一直是核心团队成员,最早在 Home Assistant 0.11(2016 年)时,就通过参与 MySensors 集成的开发开始为项目做贡献!大多数 Home Assistant 贡献者都认识 Martin,因为他在代码审查中总是展现出惊人的耐心。

另外,Ashton Lafferty(cogneato)此前也已经以兼职形式在 Nabu Casa 协助一些工作,比如支持事务。很多人可能早就因为这个认识他了,因为他在我们的 Discord 服务器 上一直非常活跃,热心帮助大家。

我们也很高兴地宣布,Ashton 现在也将全职加入 Nabu Casa!

Congratulations Martin and Ashton! 🎉

集成 Logo 与图标

我们在 GitHub 上创建了一个全新的仓库,其中收录了 Home Assistant 所能集成的各个品牌图标与 Logo。例如,我们的文档中就会使用这些图像。

在 0.108 中,我们开始把这个仓库中的内容用到 Home Assistant 前端里。设备信息页面和集成页面都获得了布局更新。

这些页面现在会显示与对应集成匹配的图标和 Logo。

Screenshot of the 设备 information page showing the Hue logo 显示 Hue Logo 的设备信息页面截图。

想找一个参与 Home Assistant 项目的方式吗? 我们仍然缺少很多图像,所以正在公开征集帮助

更多集成现在可以通过 UI 设置

这个版本里,看到这么多集成完成升级真的太棒了! 许多贡献者纷纷出手,为大量集成加入了通过 Home Assistant 前端进行配置的支持。

虽然并不是所有内容都赶上了这次发布,但现在这份名单已经非常惊艳了:

Yes, @bdraco has been on fire this 发布! Amazing job!

Lovelace 地图历史

在居家隔离期间,这项功能也许不是特别实用;但等我们终于能再次自由出门时,它会非常酷。 @Hoytron 为 Lovelace 地图卡片加入了显示人物或设备追踪器历史轨迹的能力。你可以定义想显示多少小时的历史记录,系统会在这段时间范围内把所有位置点用线连接起来。

Screenshot of the map 卡片 with history 带历史轨迹的地图卡片截图。

全新 Lovelace 卡片:实体

@zsarnett 为 Lovelace 新增了一张卡片:实体卡片。这张卡片看起来和传感器卡片很像,但它支持显示任意实体,而不仅仅是传感器。

Screenshot of the 实体 卡片 实体卡片截图。

区域配置页面

我们为区域新增了一个总览页面。在这个页面上,你不仅可以看到该区域中的所有设备,还能看到会影响该区域的自动化、场景和脚本。

Screenshot of the 区域 config page 区域配置页面截图。

Horizontal stack 现在能更好处理不同高度

创建 Horizontal stack 时,堆叠中的卡片并不总能对齐得很好。这个问题现在已经得到改进。Horizontal stack 现在能更好地处理堆叠中卡片高度不同的情况。

Before and after screenshot for the Horizontal Stack improvements. Horizontal Stack 改进前后的对比截图。

其他值得注意的变更

  • "Alexa, show the front door 摄像头." 😲 Alexa now has support for 摄像头, thanks @ochlocracy!

  • 选择默认 Lovelace 仪表盘的入口现在已经移到用户资料页面。

  • 很多配置页面已经迁移到数据表格,这意味着你现在可以在自动化、场景、脚本、用户和区域中直接搜索。

  • 面板视图中的 Lovelace 卡片现在也可以通过 UI 编辑器进行编辑。

  • 传感器卡片中的图表现在也可以作为页脚,用在实体卡片等卡片中。

  • Markdown 卡片新增了一个 user 变量,可用于显示当前登录用户。

  • With the ZHA Zigbee 集成, Zigbee groups now dynamically create 实体 for 灯光, 开关 and 风扇 that are grouped together. This enables near-simultaneous control over a large group of 灯光 allowing them to 打开 or off at the exact same time. Thank you @dmulcahey!

  • 通过 ONVIF 集成添加的摄像头,现在会自动使用摄像头自身提供的静态图像,而不再由 Home Assistant 生成。@roleoroleo 干得漂亮!

  • WLED 获得了不少内部升级,新增了 Wi-Fi 传感器,现在还加入了可控制 WLED 设备特效的服务。

  • Home Assistant 的 Docker 镜像现在开始使用 Jemalloc,以减少内存碎片并加快内存分配速度。结果就是更低的内存占用,以及整体更快的 Home Assistant。

新集成

新平台

如果你需要帮助……

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

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

不向后兼容的变更

  • Lovelace themes - We discovered our theme logic was wrong, when you didn't specify a theme for a Lovelace 卡片 or view. It would default to the 后端 selected theme, even when your local theme was different, or your view had a different theme. To fix this we removed the options default and Backend selected from the Lovelace theme selection, and when there is not theme selected it will not set a theme. This will make sure the element has the same theme as its parent.

  • Freebox - Freebox is now available as an 集成 from the 集成 UI! You will need to re-授权 Home Assistant to access the Freebox router. - (@Quentame - #30334) (freebox docs)

  • UniFi - Manual 配置 has been deprecated as the UI 集成 now supports all of the previous available options and more. Your existing YAML 配置 has previously been imported so just remove it. - (@Kane610 - #32699) (unifi docs)

  • Emulated Hue - The emulated_hue and emulated_hue_hidden 属性 have been deprecated. Use the existing entities hidden 配置 instead. - (@bdraco - #32718) (emulated_hue docs)

    Example YAML 配置:

    emulated_hue:
      host_ip: 192.168.1.186
      listen_port: 8300
      advertise_ip: 10.0.0.10
      advertise_port: 8080
      off_maps_to_on_domains:
        - script
        - scene
      expose_by_default: true
      exposed_domains:
        - light
      entities:
        light.bedroom_light:
          name: "Bedside Lamp"
        light.ceiling_lights:
          hidden: true
  • Roku - Roku is now available as an 集成 from the 集成 UI! The roku_scan 服务 has been removed in favor of discovery via ssdp. - (@ctalkington - #31988) (roku docs)

  • MQTT - Deprecated features from MQTT platforms are now removed. - (@emontnemery - #32909) (MQTT docs)

    • For MQTT 灯光 设置 through MQTT discovery, it's no longer possible to specify schema with platform 配置 variable. Instead, schema must be specified by the schema 配置 variable.
    • For MQTT alarm_control_panel, MQTT binary_sensor and MQTT sensor set up through MQTT discovery: The undocumented implicit setting of state_topic is no longer supported. Instead, state_topic must be explicitly set.
    • Support for json_attributes is removed from MQTT 传感器, json_attributes_topic should be used instead.
  • Harmony - Harmony is now available as an 集成 from the 集成 UI! The YAML 配置 now requires a host/ip. - (@bdraco - #32919) (harmony docs)

    Example YAML 配置:

    remote:
      - platform: harmony
        name: Bedroom
        host: 10.168.1.13
  • Sonos - Sonos 属性 have been cleaned up for radio streams. - (@amelchio - #33063) (sonos docs)

    • Sonos 实体 playing radio streams used to merge the radio name, the artist and the song name into two 属性. They now have media_artist and media_title 属性 that match the playing music (when available).
    • Radio station artwork is no longer available for Sonos 实体 in polling mode (i.e., on a network separate to the network Home Assistant is on).
  • Monoprice - Monoprice is now available as an 集成 from the UI! Please remove the 配置 from YAML and add the Monoprice 集成 from the 集成 page. - (@OnFreund - #30337) (monoprice docs)

  • Lutron Caseta - As a result of some cleanup, the Device ID and Zone ID 属性 of Lutron Caseta 设备 have been renamed to device_id and zone_id to match the convention of the rest of Home Assistant. If you have any 自动化 that reference these 属性, they will need to be updated. - (@swails - #33144) (lutron_caseta docs)

  • NuHeat - NuHeat is now available as an 集成 from the UI! The previous 服务 has been removed and is now handled by set_hvac_mode (温控 1.0). - (@bdraco - #32885) (nuheat docs)

  • ElkM1 - ElkM1 is now available as an 集成 from the UI! An auto 配置 mode has been introduced which avoids the need to 设置 the complex include and exclude filters. This functionality still exists when configuring from YAML for power 用户 who want more control over which 实体 elkm1 generates. As 实体 IDs can now be changed, the alarm_control_panel 属性 changed_by_entity_id is now changed_by_keypad and will show the name of the Elk keypad instead of the 实体 ID. - (@bdraco - #33297) (elkm1 docs)

  • HmIP - After HmIP Cloud Maintanance (17.3.2020) it's possible to define labels for each channel of a multi 设备. If the labels of a multi channel 设备 have been changed in the native Homemamtic IP Cloud App, then the 实体 names will change accordingly. - (@SukramJ - #32925) (homematicip_cloud docs)

  • Slack - The Slack 集成 got an overhaul and added support for async and Slack's Block Kit. As the YAML 配置 schema for 此integrations has changed, please be sure to read the 文档. Additionally, because it represents an unacceptable security risk, 遥控器 files (i.e., those that do not exist in a whitelisted directory local to Home Assistant) can no longer be sent to Slack via 此integrations. - (@bachya - #33287) (slack docs)

    Example YAML 配置:

    notify:
      - platform: slack
        api_key: !secret slack_api_key
        default_channel: "#home-assistant"
  • Network UPS Tools (NUT) - The NUT 集成 is now available as an 集成 from the UI! (@bdraco - #33457) (nut docs) (breaking change)

    The following 传感器 are no longer supported:

    • ups.time
    • ups.date
    • ups.model
    • ups.mfr
    • ups.mfr.date
    • ups.serial
    • ups.vendorid
    • ups.productid
    • ups.firmware
    • ups.firmware.aux

告别以下内容

  • 报警.com
  • Mopar

These 集成 have been removed. The websites for both have changed, causing the 集成 to break because they relied on web scraping, which is no longer allowed (ADR-0004). - (@frenck - #33056 #33066)

发布 0.108.1 - April 8

发布 0.108.2 - April 9

发布 0.108.3 - April 10

发布 0.108.4 - April 13

发布 0.108.5 - April 15

发布 0.108.6 - April 16

发布 0.108.7 - April 21

发布 0.108.8 - April 22

发布 0.108.9 - April 24

  • Fix Google Assistant 设备 being disconnected from their 房间 (@balloob - #34622)

所有变更

点击查看所有变更!