0.91:更多流媒体、更好的 Zigbee、ESPHome 摄像头

0.91 发布来了,而这次发布的核心主题就是摄像头流媒体。Home Assistant 0.90 已经允许用户在前端播放摄像头流,也能把摄像头画面投到 Chromecast 上。本次发布新增支持:

  • 通过摄像头集成新增的录制服务,将摄像头流保存到磁盘
  • 支持通过 Google Assistant 让你的摄像头画面显示在智能屏幕或 Chromecast 上
  • 支持预加载流媒体,让设备打开视频流时几乎瞬间完成;这可以在每个摄像头的更多信息对话框中单独配置

Thanks to @hunterjm for all this work on this! ❤️ Check the latest 发布 of the Home Assistant podcast for an interview with @hunterjm about streams in Home Assistant.

我们仍在持续更新更多摄像头集成,以支持 stream 组件。如果你今天就想试用,最简单的方式是配置一个带 stream_sourcegeneric 摄像头,或者购买一台支持标准 ONVIF 协议的摄像头。

还要特别感谢 @awarecan,他把我们的 CI 基础设施迁移到了 CircleCICodecov。CircleCI 的高级缓存和代码拆分控制显著加快了测试速度,而 Codecov 会跟踪代码覆盖率,并为每次贡献生成详细报告,以查看测试覆盖情况。

如果你错过了公告,我们也即将开始着手开发官方 Android 应用。另外,如果你还不确定,我们此前说会偶尔在 UI 中展示广告 的那条消息,其实只是愚人节玩笑 😁。

值得注意的破坏性变更

我们已经完成了这次大迁移。所有内置平台现在都位于各自独立的文件夹中。这意味着,如果你的自定义组件或平台与内置组件同名,就必须重命名。如果你的 custom_components/ 目录中仍保留旧格式的平台文件,比如 sensor/my_platform.py,请把它改成 my_platform/sensor.py。目前它仍然可用,但未来版本将不再支持。

Thanks to @Swamp-Ig, @robbiet480 and @cgtobi for their work on this!

Trusted networks 现已支持受信任用户

@awarecan 更新了 trusted networks,现在可以指定特定 IP 地址允许登录哪些用户。如果某个用户通过 trusted networks 登录,且系统中只有一个用户,你现在还可以配置为跳过登录表单并自动登录。更多信息请查看文档

ESPHome 摄像头

This 发布 adds 摄像头 support to the ESPHome 集成. If you haven't heard about ESPHome yet, it allows you to create your own 传感器 and smart 设备 and 配置 them using YAML. With Home Assistant 0.91, it is now possible to integrate 摄像头. This means that you can have a WiFi enabled 摄像头 that integrates automatically into Home Assistant for as little as $9 😲.

Check this cool demo, part of this 博客 post:

Zigbee ZHA 配对体验

@dmulcahey@damarco@Adminiuga 的努力下,我们的 Zigbee 集成每个版本都在进步。本次发布带来了全新的配对体验。启用配对模式后,任何正在加入的设备都会立刻显示出来,让用户可以马上配置名称和区域。

VSCode Hass.io 插件

If you run hass.io on an Intel NUC and haven't seen it yet, check out the VS Code 插件 by Frenck.

新平台

发布 0.91.1 - April 4

发布 0.91.2 - April 8

发布 0.91.3 - April 10

发布 0.91.4 - April 16

如果你需要帮助……

欢迎使用我们非常活跃的论坛,或者加入我们的聊天频道。虽然发布说明开放评论,但我们更希望你使用前面这些沟通渠道。谢谢。

反馈问题

如果你遇到了这个版本引入的问题,请在我们的 issue tracker 中报告。请务必填写 issue 模板中的所有字段。

向后不兼容的变更

  • Z-Wave - The usb_path in 配置.yaml now overrides config entry usb_path. This is potentially a breaking change if people have a stale usb_path setting in 配置.yaml that's no longer accurate. This should help reduce the number of people that need to manually edit the storage/核心.config_entries file if their usb_path changes. (@cgarwood - #22038) (zwave docs)

  • iOS - Improves the text description of ATTR_BATTERY_STATE_UNPLUGGED from Unplugged to Not Charging as many new iOS 设备 now use Wireless charging and there is no concept of "Plugging In". This is potentially a breaking change if you have 自动化 making use of "unplugged". (@FattusMannus - #22152) (ios docs)

  • Iliad Italy - Removed - This was removed because it uses webscraping. (@eliseomartelli - #22175)

  • Netgear lte - The previous three components (network, 通知, and 传感器) now fall under one netgear_lte component. Check the updated 文档 更多信息. (@amelchio - #22105) (netgear_lte docs)

  • API streams sensor - Removed - This 传感器 component was designed to count connected front-end clients. However, it depended on the implementation details of other components, and has therefore been broken since 0.80, so it has been removed. The replacement 传感器 is now the websocket_api 传感器, which does basically the same thing apart from the rename. (@Swamp-Ig - #22200) (websocket_api docs)

  • Public Transit (GTFS)

    • The 状态 for this 传感器 component was a countdown in minutes. If the next departure was in a few hours, this number became quite large and a tad harder to rapidly calculate mentally (463 minutes anyone?). The 传感器's 状态 output has been changed from minutes to an ISO 8601 UTC timestamp, which allows the UI to interpret the 状态 as needed. (@renemarc - #21053) (gtfs docs)
    • 传感器 updates were running many database queries to populate 属性, on top of the bus schedule queries themselves. This is doubled with two 传感器. That led to a lot of slowdowns for everything else when using an SD 卡片! Considering that some data never changes (agency, routes...) and that others like departure times are good until invalidated, now we fetch such metadata at first and then only when relevant changes do occur. GTFS 传感器 属性 are now named using the standard snake_case format. (@renemarc - #20966) (gtfs docs)
  • Yeelight - This is now its own component and has been broken out from the 灯光 platform. More Yeelights are being released with more features and this will make if possible to support them. Examples would be adding 传感器 for a ceiling 灯光, getting the current power mode (daylight/nightlight), or supporting 开关 to turn moonlight on or off without having to use a 服务 call. Make sure to visit the updated 文档. (@zewelor - #21593) (yeelight docs)

  • Axis - Events supplied from component might differ. Events will not be configurable in the beginning but will instead provide a subset set of events supported per 设备. This will be configurable in a later stage when config entry options are available. 配置.yaml support for Axis component will be removed in the future so make sure to remove references to Axis component after 升级. (@Kane610 - #18543) (axis docs)

  • HTTP - Lower severity level of 日志 messages from http.view (@thomasloven - #21091) (http docs)

  • Dark Sky - Dark Sky provides hourly forecasts for various monitored 条件. This change creates new 传感器 for each hourly forecasted 条件 with suffix _<hour>h while adding the suffix _<day>d to the daily forecasted 条件. For example, now a sensor.dark_sky_summary_<day>d and sensor.dark_sky_summary_<hour>h will be 创建 if the forecast and hourly_forecast parameters are populated. (@rtclauss - #21820) (darksky docs)

  • Konnected - This will change the internal unique_id for Konnected 开关 (i.e., 警报器, buzzer, generic 开关). 用户 will need to manually remove the orphaned 开关 实体 from the 实体 registry after updating and re-配置 any changes stored in the 实体 registry (i.e., name and entity_id), as their unique IDs will change. (@heythisisnate - #22389) (konnected docs)

  • Mopar - The mopar 传感器 platform has been broken up into a base component with 传感器, 开关, and 门锁 platforms. The 传感器.mopar_remote_command 服务 has been removed since the functionality has been folded into the new platforms and the new mopar.sound_horn 服务. Please view the 文档 to see the new 设置 instructions. (@rohankapoorcom - #21526)

Beta 修复

所有变更