0.116:实体卡片行编辑器、恢复快照与性能指标

Home Assistant 核心 0.116 来了!

最近怎么样?那个内容爆棚的 0.115 生日版发布,你都消化完了吗?

说实话,我还没有。0.115 的内容实在太多了,对我来说那次发布甚至像是昨天才刚发生。😅

所以这一次,是一个体量更合适、更容易消化的版本,带来了一些比较小而实用的内容。包含大量修复、UI 微调和改进;希望这会是一次顺畅的升级!

这次最大的变化来自 Supervisor。 @ludeeus 拼命敲键盘,为引导流程加入了上传和恢复快照的能力。这是一个获得大量支持票数的 WTH 项目。作为额外惊喜,他还在 Supervisor UI 中加入了性能指标。干得漂亮!

一如既往,祝你享受这个版本!

../Frenck

实体卡片编辑器

你现在可以直接编辑实体卡片中的每一行实体了。 这意味着你不仅能设置实体 ID,还能设置名称、图标和次要信息。

Screenshot of the new editor for the 实体 卡片. You can now edit the 实体 row; adjust the name, icon and secondary info.

另外,使用特殊行时也不再强制要求你切换到 YAML 编辑器了; 你仍然可以继续使用 UI 编辑器来编辑这些特殊行。 未来我们还会为这些特殊行补上专门的 UI 编辑器。

合并用户与人员管理

我们把用户界面和人员界面合并了,这意味着“用户”配置面板现在只会对启用了高级模式的用户显示。

现在,在人员详情对话框中有一个开关,可以直接控制这个人是否拥有 Home Assistant 的访问权限。 打开后,你就可以为这个人设置用户名和密码;关闭后,对应的用户就会被移除。

这样一来,在 Home Assistant 中管理人员就更简单了:所有相关内容都集中在一个地方。

Screenshot of the person "allow to login" option. The person edit dialog now has a 切换 to allow a person to 日志 in.

恢复快照

你现在可以直接通过 UI 上传快照并进行恢复了。 你可以在 Supervisor UI 的快照面板中完成这件事, 也可以在初始引导过程中完成!

Screen recording of restoring a snapshot during onboarding. Screen recording of restoring a snapshot during onboarding.

这意味着你不再需要先设置好 Home Assistant、再安装并配置 Samba 插件,然后才能恢复快照。 现在你只需要在引导流程的第一步选择快照,它就会被直接恢复。

迁移到另一套系统因此变得轻松多了!

Supervisor UI 中的性能指标

The Supervisor now shows performance metrics in its UI, so you'll have a better idea of how much resources are used. Thanks @ludeeus!

Screenshot of the new Supervisor performance metrics. Supervisor UI now shows performance metrics.

Android 的 H.265 流支持

@uvjustin added support for H.265 streaming in the Android app, it will use a native video player that is shown on top of the Home Assistant UI. This player will only work in the more info dialog, and can not be used In Lovelace 卡片.

自动化编辑器现已支持星期选择

@misiu added a nice feature to the 自动化 editor. Using a time 条件 in the UI, now has the ability to select the weekdays the 条件 should test against.

Screenshot of the new weekday 条件. You can now select the days to match in time 条件.

Python 3.7 已弃用

Python 3.9 has been released on 5 October. This means that Python 3.7 support is now deprecated and will be removed after two months (which will be effective in 0.118).

This is only a concern if you are running Home Assistant 核心 directly on Python. You can check the Python 版本 Home Assistant uses by going to the information screen under 设置 > System > Repairs > System information in the three dots menu (top right).

If you run Home Assistant OS, 受监管模式 or 容器, you don't have to worry about this, as the Home Assistant project takes care of this for you. As a Matter of fact, if you use one of those methods, you are already running Python 3.8.

We are currently working on ensuring Python 3.9 is fully supported and tested.

其他值得注意的变化

  • MQTT now supports tag scanning, thanks to @emontnemery.
  • The Hyperion 集成 had a large overhaul by @dermotduffy, ensuring 此integrations now actually works!
  • @Misiu ensured the OpenWeatherMap 集成 supports all languages it can provide.
  • The utility meter now supports a bi-weekly cycle, thanks to @hareeshmu.
  • @timkoers added uptime 传感器 for network clients to the UniFi 集成.
  • The Shelly 集成 now shows power and energy 传感器 for roller mode 设备, thanks to @firstof9.
  • You can now filter history by using glob matching filters. For example, you can now exclude sensor.*_temperature from being recorded. Thanks @bdraco!
  • deCONZ has a new option; You can now disable the automatic addition of new 设备. Furthermore, @Kane610 also added a 服务 to clean up up orphaned 设备. 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.116.1 - October 8

发布 0.116.2 - October 9

发布 0.116.3 - October 15

发布 0.116.4 - October 15

如果你需要帮助……

...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.

自定义 Lovelace 卡片

This 发布 contains backward-incompatible changes for custom 卡片 开发者, check the 开发者 博客 更多信息.

If you have a custom 卡片 that stopped working this 发布, please report this with the custom 卡片 author.

AlarmDecoder

YAML support for AlarmDecoder has been removed in favor of UI 配置. Additionally, the panel_display option has been removed and the 报警 display 传感器 will always be 创建 with AlarmDecoder now. Please see the updated AlarmDecoder 文档 for instructions on how to set up AlarmDecoder via the UI.

(@ajschmidt8 - #37998) (alarmdecoder docs)

自动化

状态 条件 with 属性 specified: When testing against a non-string 属性 value, you now need to specify the value in your 配置 in the same type as it is in the 属性 (instead of as a string).

(@balloob - #41261)

Canary

Canary is now available for 配置 via the UI. This also means it's no longer configured in YAML. Existing 配置 should be automatically transitioned to 配置 via UI. You can safely remove you Canary YAML 配置 after ugprading. YAML support will be fully removed in Home Assistant 0.118.0.

(@ctalkington - #40055) (canary docs)

HomeKit Controller、Plant、SmartThings、Xiaomi

Some 集成 (homekit_controller, plant, smartthings and xiaomi_miio) previously used lux as their unit of measurement for 实体 that covered illuminance. Now, these 实体 use lx as their unit of measurement to be consistent with other 集成.

This could be a breaking change for using such 实体 in, for example, influxdb.

(@springstan - #40171)

Hyperion

Fixes the Hyperion 集成 to work with the current Hyperion-NG 发布. Refactors to rely on the hyperion-py client.

The default_color, hdmi_priority and effect_list parameters no longer have any effect. Instead, 用户 should use 灯光 profiles as default color.

The effect_list is now automatically populated.

The hdmi_priority parameter no longer make sense with Hyperion-NG and will be removed in a future 发布.

(@dermotduffy - #39738) (hyperion docs)

KNX

We changed the way how we handle 二元sensor in the underlying library. It is no longer possible to support 自动化 based on the binary_sensor schema. Instead, you can use the new counter 状态 属性 for any given KNX 二元sensor.

Before this change:

-  name: cover_abstell
   state_address: "2/0/33"
   automation:
     - counter: 1
       hook: "on"
       action:
         - entity_id: cover.sonne_abstellkammer
           service: cover.open_cover
     - counter: 1
       hook: "off"
       action:
         - entity_id: cover.sonne_abstellkammer
           service: cover.close_cover

After this change:

# binary_sensor.yaml
- name: cover_abstell
  state_address: "2/0/33"
# automation.yaml
automation:
  - alias: "Binary sensor test counter=1 on"
    trigger:
      platform: numeric_state
      entity_id: binary_sensor.cover_abstell
      attribute: counter
      above: 0
      below: 2
    condition:
      - condition: state
        entity_id: binary_sensor.cover_abstell
        state: "on"
    action:
      - service: cover.open_cover
        target:
          entity_id: cover.sonne_abstellkammer

  - alias: "Binary sensor test counter=1 off"
    trigger:
      platform: numeric_state
      entity_id: binary_sensor.cover_abstell
      attribute: counter
      above: 0
      below: 2
    condition:
      - condition: state
        entity_id: binary_sensor.cover_abstell
        state: "off"
    action:
      - service: cover.close_cover
        target:
          entity_id: cover.sonne_abstellkammer

If you intend to use the counter feature (counter > 1) make sure you also enable ignore_internal_state (default: true) for your binary_sensor and set the new context_timeout 属性 to the time in between you want it to react to your 传感器 clicks (defaults to 1 - which should be fine). Otherwise, the counter will not work correctly.

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

日志簿

Message and domain are now removed from the logbook state_changed events.

These are now handled by the 前端 as we move closer to making the logbook localized.

(@bdraco - #40070) (logbook docs)

Material Design 图标

The Material Design Icons are updated to v5.6.55, the mdi:scooter icon is replaced by a new icon, the old icon is available as mdi:human-scooter

Pilight

灯光 using the Pilight 集成 will now 打开 to the last used brightness instead of its maximum brightness.

If you want to retain you 灯光 turning on to its maximum brightness you can set the default intensity in the light_profiles.csv file.

The steps to set this up:

  1. In the your main config folder (where you'll find configuration.yaml) create a new file called light_profiles.csv.
  2. For each of 灯光 add an line with its 实体 id and the brightness you want, as a value from 0 to 255.

Example:

light.<deviceentityid>.default,0,0,255

(@daniel-jong - #39549) (pilight docs)

Synology

The Synology 集成 is now deprecated. You should now use the Synology DSM instead. Support for 摄像头 has been added to the Synology DSM 集成 making it a full replacement.

(@shenxn - #39958) (synology docs)

系统监视器

Not really a breaking change, since the overall logic did not change. Arguments that were previously mandatory for 传感器 of 此integrations are still mandatory and optional arguments remain optional.

However, we now enforce those mandatory arguments to be present, since otherwise 此integrations creates 实体 that cannot do anything, e.g., the 传感器 for IPv4 addresses cannot do anything if no network interface is specified from which to take the IP.

If the 集成 fails to load, check the 日志 to see which arguments are missing in your 配置. The 文档 also has been updated to clearly show which arguments are mandatory.

(@spacegaier - #39687) (systemmonitor docs)

TekSavvy

The TekSavvy 集成 has been removed. The API that was used by this 集成 is no longer available.

(@mikeodr - #40762)

通用设备 ISY994 / LCN

The Kelvin unit no longer includes the degree sign in accordance with scientific standards. If you use the isy994 and lcn 集成 you may need to 更新 自动化 or data collectors that depend on the unit of measurement.

(@RichieFrame - #40574) (isy994 docs)

VeSync

The auto 风扇 mode for the 风扇 platform has been removed. The auto mode isn't supported by the 实体 model in Home Assistant and was initially added overlooking our 实体 model.

If you have 自动化 or 脚本 targeting the VeSync 风扇 实体 should review these and 更新 as needed.

(@TheGardenMonkey - #40559) (vesync docs)

ZHA

The ieee_address parameter was renamed to ieee for zha.permit and zha.remove 服务.

This makes all 服务 to use consistently named parameters.

(@Adminiuga - #40652) (zha docs)

所有变更

点击查看所有变更!