title: '0.104:Sentry、Signal Messenger、IntesisHome、Sure Petcare、KEF' description: '<a href=''/home-assistant/integrations/版本/0.104''<img src=''/home-assistant/images/blog/2020-01-0.104/components.png'' style=''border: 0;box-shadow: none;''</a。' Lovelace 中的多选实体管理,以及忽略已发现设备的能力。

0.104:Sentry、Signal Messenger、IntesisHome、Sure Petcare、KEF

新十年的第一个发布!新年快乐!

我们用一个内容丰富的发布开启新的一年!一起来看看吧!

改进启动时的实体处理

现在,在 Home Assistant 启动时,我们会恢复注册表中存储的所有实体。

在 Home Assistant 启动过程中,所有已配置的集成都会被加载。每个集成都可能带来一个或多个设备和实体。不过,这里面一直有个问题!

有些集成加载得比较慢,导致部分实体无法立刻可用。有时这会影响很多地方,比如 HomeKit、Google、Alexa 中缺少设备,或者 Lovelace 界面里出现那些大大的红框。相信大家多少都遇到过。

从这个版本开始,只要这些实体已注册到实体注册表中,就会以 unavailable 状态被恢复。这样系统的其他部分就能立即使用它们,解决了很多启动期间的常见问题。

这些被恢复的实体会额外带上一个状态属性 restored,因此可以与普通的 unavailable 实体区分开来。

Screenshot of a removing an unavailable 实体 移除不可用实体的截图。

因此,实体将不再“消失”。如上图所示,被恢复的实体和不可用实体现在都可以移除。请注意,如果某个不可用实体仍由某个集成提供,则必须先移除对应集成,否则这些实体无法删除。

忽略已发现的设备与服务

是不是有某个设备总是一遍又一遍地被发现?

现在,你只需一次操作就能忽略某个已发现的设备!

Screenshot of a discovered Hue bridge 已发现 Hue 网关的截图。

这需要对应集成更新后才能支持。在本次发布中,Hue、Axis、deCONZ、WLED 和 HomeKit 集成都已经支持这一新功能。

重载所有 input 项,并告别自动生成的分组

所有 input_* 集成 现在都提供了 reload 服务,让你无需重启 Home Assistant 就能重载这些集成的 YAML 配置。

另外,也是时候和所有自动生成的实体分组 group.all_* 说再见了。你可能从未注意过它们,因为它们默认是隐藏的。不过,如果你的自动化依赖这些分组,就需要进行调整。更多信息请查看不向后兼容的变更

将设备添加到 Lovelace

我们在设备页面新增了一个按钮,可以一键把某个设备的所有实体添加到 Lovelace。Home Assistant 会根据设备提供的实体类型推荐合适的卡片,让你能立刻把它们加入到指定视图中。

如果你使用的是 YAML 模式的 Lovelace,也一样可以使用这个新功能。生成的 YAML 可以直接复制粘贴到你的配置文件中。

Screenshot of a 卡片 suggestion for a 灯光 设备 灯光设备卡片建议的截图。

同样的功能也被加入到了 Lovelace 的未使用实体页面中。

多选实体管理

实体管理从未如此简单;现在你可以一次修改多个实体。选择多个实体后,即可一键移除、启用或禁用它们。

Screenshot of the 实体 配置 page with multi selection 实体配置页面支持多选的截图。

ZHA 配置面板改进

这个版本里,@dmulcahey 为 ZHA 配置面板投入了大量工作。

ZHA 配置面板的导航经过重新设计,在移动端和桌面端都能带来更好的体验。

作为这次重设计的一部分,我们加入了完整的 Zigbee 分组管理功能,让你可以直接在界面中创建和管理 Zigbee 分组。

Screenshot of the ZHA 配置 面板 ZHA 配置面板截图。

在未来的版本中,我们还会加入将设备直接绑定到分组的能力。

移除你的 Lovelace 配置

想把 Lovelace 配置从头开始重做?或者回到自动生成的 Lovelace 界面?

现在你只要在原始配置编辑器中清空 Lovelace 配置并保存即可。

Screenshot of the remove Lovelace confirmation dialog 移除 Lovelace 的确认对话框截图。

其他消息

另外,HassOS 3.8 也发布了!

除了 HassOS 3.8 正式发布之外,HassOS 4.0 的首个 Beta 版也已经可用。这个 Beta 版本新增了对 Hardkernel's ODROID-N2 的支持!

ODROID-N2 是树莓派一个很棒而且性能强劲的替代方案。

自定义正在播放海报 Lovelace 卡片

Brad Crc 做了一个令人印象深刻的演示,展示如何在 Lovelace 楼层平面图中设置自定义的“正在播放”海报卡片。这样你就能在楼层图中显示当前正在播放的媒体!

Bas 展示他的 Lovelace 主题与设备

Bas Nijholt 总是在 Reddit 上看到自己的主题被人提起,于是决定亲自展示一下使用这套漂亮主题的 Lovelace 仪表盘。

I keep seeing my own theme on Reddit, so now it's my turn! [OC] from r/homeassistant
<脚本 async src="//embed.redditmedia.com/widgets/platform.js" charset="UTF-8">

他的主题已经公开发布在 GitHub 上配置文件也同样开源。

新集成

新平台

如果你需要帮助……

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

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

不向后兼容的变更

  • Default groups - 实体 集成 will no longer automatically maintain the hidden groups with all of their 实体. The following groups are no longer automatically 创建 and maintained:

    • group.all_automations
    • group.all_covers
    • group.all_devices
    • group.all_fans
    • group.all_lights
    • group.all_locks
    • group.all_plants
    • group.all_remotes
    • group.all_scripts
    • group.all_switches
    • group.all_vacuum_cleaners
    • group.calendar
    • group.remember_the_milk_accounts

    The 自动化 and 脚本 配置 面板 are updated to show and manage all 自动化/脚本. If you want to show 卡片 in your Lovelace UI with all 实体 for a single domain, use the auto-实体 卡片. If you want to target all 实体 in a 服务 call, use all as value for entity_id.

    (@balloob - #23789) (自动化 docs) (日历 docs) (遮盖 docs) (device_tracker docs) (风扇 docs) (灯光 docs) (门锁 docs) (plant docs) (remember_the_milk docs) (遥控器 docs) (脚本 docs) (开关 docs) (吸尘器 docs).

  • Hue - Hue will no longer import existing 认证 from disk. It has not written this 认证 to disk since March 2018. The config option has been deprecated and will be removed in 0.106. (@balloob - #30000) (hue docs)

  • deCONZ - Due to changes to 配置 handling, deCONZ groups will be assigned new identifiers in Home Assistant. As a result, deCONZ groups will be duplicated. Remove any group 设备 from the registry prior to upgrading or alternatively delete the obsolete entries after the 升级 to eliminate the duplicates. ([#30875]) (deconz docs)

  • UPnP - UPnP/IGD units of measurement have been aligned with other 集成 and common uses, they're now kB and kB/s instead of kbyte and kbyte/sec respectively. - (@scop - #29552) (upnp docs)

  • Worx Landroid - The worxlandroid 传感器 has been changed to not return the hardcoded 状态 values manual-stop, charging, charging-complete, going-home, mowing, instead use the 状态 given from the Landroid to Home Assistant.

    This includes the 状态 idle, which means that something is broken with the mower. You can use this as a 通知 to check the physical 状态 of the mower.

    You need to 更新 any 自动化 that depend on the 状态 of the 传感器.

    (@geraldhansen - #27453) (worxlandroid docs)

  • Apple iCloud - The iCloud component is no longer part of the 设备 tracker platform and is now an 集成, which is configurable via the UI. The iCloud cookie folder moved from [HA_dir]/icloud to [HA_dir]/.storage/icloud.- (@Quentame - #28968) (icloud docs)

  • Pi-hole - The default value for host is removed, and now must be specified manually. - (@johnluetke - #27569) (pi_hole docs)

    Example 配置:

    pi_hole:
      - host: pi.hole
        ssl: false
      - host: backup.pi.hole
  • HERE Travel Time - HERE has deprecated the usage of app_code and new 用户 can only generate an api_key. If you are already using HERE Travel Time, you have to follow the migration guide to retrieve the, now required, api_key. - (@eifinger - #29966) (here_travel_time docs)

    Example 配置:

    sensor:
      - platform: here_travel_time
        api_key: "YOUR_API_KEY"
        origin_latitude: "51.222975"
        origin_longitude: "9.267577"
        destination_latitude: "51.257430"
        destination_longitude: "9.335892"
  • ZHA - The default divisor for active_power has changed. Now, multiplier and divisor both default to 1 if the 设备 does not support these 属性 or when getting those 属性 from the 设备 fails. - (@Adminiuga - #30130) (zha docs)

  • Keba - The unique_ids of the 实体 have changed and are now more future proof. The default name and entity_id of the 实体 have also changed. You need to clear stale entries from the 实体 registry and 更新 concerned 自动化 and 脚本. - (@dannerph - #30125) (keba docs)

  • Tesla - Config flow has been added for Tesla. 设备 tracker 实体 names have changed due to this. They now follow the naming convention of the rest of the Tesla 实体. The id 设备 tracker 实体 属性 was also removed because it is a duplicate of trackr_id. - (@alandtse - #28744) (tesla docs)

  • Huawei LTE - The Huawei LTE 通知 服务 name is now configurable. The default name for the Huawei LTE 通知 服务 has changed to notify.huawei_lte to avoid conflicts with other 通知 服务. An option to provide a name for the 服务 has also been added. - (@scop - #30208) (huawei_lte docs)

    Example 配置:

    huawei_lte:
      - url: ...
        password: ...
        notify:
          name: sms
  • Amcrest (Removed) - Amcrest 传感器 and 开关 that were deprecated in previous releases have now been removed. - (@pnbruckner - #30308) (amcrest docs)

    Example 配置:

    amcrest:
    - ...
      sensors:
        # This sensor type is no longer supported and must be removed.
        - motion_detector
      # All switch types are no longer supported and must be removed.
      switches:
        - motion_detection
        - motion_recording
  • MQTT - Added separate command and 状态 topics for the MQTT 门锁. Two new properties are introduced with state_locked (default: LOCKED) and state_unlocked (default: UNLOCKED). If you are using the same topic as state_topic as for the command_topic you can reestablish the old behavior by setting state_locked to 门锁 and state_unlocked to UNLOCK. Effectively, this change allows you to distinguish commands and 状态 in two topics with different values. - (@tuxbox - #29808) (MQTT docs)

    Example 配置:

    lock:
      - platform: mqtt
        command_topic: "/dev/ha/lock/cmd"
        state_topic:   "/dev/ha/lock/state"
        value_template: ""
        state_locked: "locked"
        state_unlocked: "unlocked"
  • LG webOS Smart TV - The component 设置 now uses the webostv domain instead of media_player. The host 配置 option is now required and the timeout and filename options have been removed. The 状态 handling for webOStv has also been cleaned up. An 实体 will have on when the tv is on instead of playing or paused as was previously the case. You need to 更新 自动化 that depend on the 实体 状态. - (@bendavid - #29296 #30416) (webostv docs)

    Example 配置:

    webostv:
        name: LG TV
        host: 192.168.1.53
        #other settings
        turn_on_action:
            service: wake_on_lan.send_magic_packet
            data:
              mac: "00:00:00:00:00:00"
        standby_connection: true
  • Axis - Axis 集成 will no longer accept manual 配置 of 设备, all 配置 of the Axis 集成 will now be handled from the 集成 面板. - (@Kane610 - #30365) (axis docs)

    TL;DR This will no longer work:

    axis:
  • WLED - Improved WLED pure white support for RGBW LED strips. When using WLED with RGBW strips, setting the color in Home Assistant to white, will 关闭 the RGB LEDs of the strip and use the W channel only. - (@frenck - #30477) (wled docs)

  • Timer - Fire restarted event on restarting an active timer. This can break 自动化 that should 触发器 on every timer start event. - (@mnigbur - #30475) (timer docs)

  • Vizio - Removed suppress_warning from 配置 options for Vizio 集成. The pyvizio package now suppresses insecure HTTPS request 警告 in a way that doesn't affect global requests from other 集成 or Home Assistant itself. There is no need to globally suppress insecure 警告 now. - (@raman325 - #30536) (vizio docs)

    Example 配置:

    media_player:
      - platform: vizio
        host: "<IP>:<PORT>"
        access_token: "<AUTH_TOKEN>"
        device_class: tv
  • RFXtrx - Bump pyRFXtrx to 0.25. This 更新 开关 the commands for open and close for RFXtrx 遮盖 of the "Rollertrol" type, as they were switched (clicking open resulted in closing of the 遮盖 and vice versa). Existing 自动化 should be updated. - (@Ernst79 - #30566) (rfxtrx docs)

  • Ring - Ring is now configurable via a config entry. This means it will no longer store the username and 密码 and you're able to 配置 accounts that use 2FA. It's no longer possible to set scan interval, monitored 条件 or FFmpeg arguments. The defaults are used. - (@balloob - #30564) (ring docs)

  • Binary 传感器 (门锁) - Updated ON/OFF 条件 and 触发器 to match the 文档 and UI. This change inverts the logic of 自动化 relating to 二元sensor with the lock 设备 class, but only for 自动化 triggering on the 门锁 状态 (rather than triggering a 门锁/unlock 动作).

    If you already 创建 自动化, you will need to check those, as they probably need to be inverted. The text displayed in the 触发器 or 条件 dropdowns in Lovelace will now be correct.

    One possible scenario is if you have set an 自动化 using the 状态 of one 门锁 to 触发器 an 动作 on other 门锁(s). This change would cause the 动作 to 触发器 on locking if it was previously triggering on unlocking. - (@davet2001 - #30663) (binary_sensor docs)

  • Google Assistant - The api_key for manual installs is now deprecated and will be removed in 0.105. To correct this you will need to remove api_key from the configuration.yaml and 开关 to using service_account instead. - (@elupus - #30402) (google_assistant docs)

Beta 修复

发布 0.104.1 - January 16

发布 0.104.2 - January 17

发布 0.104.3 - January 21

所有变更