0.101:Airly、Apprise、Sinch、Solar-Log、Microsoft Teams

Hacktoberfest 活动

Hacktoberfest 已经快结束了,而今年真的非常精彩。过去一个月里,我们总共合并了 1318 个 PR,其中大多数都包含在这次发布中!

我们共有: 154 authors on home-assistant 184 authors on home-assistant.io 30 authors on home-assistant-polymer

非常感谢所有贡献者!

API 密码与受信任网络

现在已经无法再通过受信任网络,或在 URL 后追加 ?api_password=X 的方式来发起已认证请求。现在你需要先获取认证令牌,再使用该令牌发起请求。

这些功能在 Home Assistant 0.90 和 0.91(大约在 2019 年 4 月发布)中就已经被弃用。原本计划在 Home Assistant 0.96(2019 年 7 月 17 日发布)中移除。

通过 HTTP 配置来设置 API 密码和 Trusted Networks 认证提供程序的支持也已经移除。现在需要在认证提供程序部分中进行配置(文档)。

所谓直接认证,是指你可以不使用 bearer token,仅通过从受信任网络发起请求,或在 URL 中追加 ?api_password=X 的方式来完成认证请求。

这些功能仍然可以作为认证提供程序使用(文档)。

你可以使用长期有效访问令牌,它们可以在前端的个人资料页面中创建。这些令牌不会过期,并且可以加入到请求头中。更多信息请参阅开发者文档。

Screenshot of the Long-Lived Access Tokens interface in the profile page. 个人资料页面中的长期有效访问令牌界面截图。

或者,你也可以使用基于 Webhook 的集成。Webhook 是一个难以猜测的唯一 URL,可用于向 Home Assistant 发送数据。发送到 Webhook 的请求不需要认证。 你的 Webhook 需要可以从互联网访问;如果你订阅了云服务,云端会帮你处理这件事。你可以在云配置页面中找到云端 Webhook URL。

Hassbian

你可能已经看到了,我们将逐步停止维护 Hassbian。

Hassbian 是在 Raspbian 基础上为 Home Assistant 优化的一个发行版。由于开发者时间有限,再加上 Hass.io 这类更简单的替代方案已经出现,现在是时候让 Hassbian 退场了。

衷心感谢所有参与 Hassbian 项目的人,特别是长期推动这个项目的 @landrash,以及 @ludeeus

更多信息,请阅读这篇博客文章

设备 自动化

这个版本改进了对报警、遮盖、门锁和传感器的支持。 在 0.100 中,我们加入了 for 选项,用来指定某个设备处于某个状态持续一段时间后再触发。现在,这项功能也已加入自动化编辑器。

Screenshot of a 设备 触发器 with duration. Screenshot of a 设备 触发器 with duration.

前端

前端这边也发生了很多变化;我们收到了大量来自 Hacktoberfest 的 PR,为前端加入了本地化支持,也进一步改善了用户体验。 特别感谢 @springstan,他完成了大量本地化工作。现在,我们的绝大部分界面都已经可以翻译了!

非常感谢所有贡献者!

多亏了 @timmo001,我们现在有了自己的确认对话框!再也不用面对难看的浏览器原生弹窗了。

Screenshot of a confirm dialog when restarting Home Assistant. 重启 Home Assistant 时的确认对话框截图。

在上一个版本中,我们把所有 JSON 输入都改成了 YAML 输入;而在这个版本中,我们为所有 YAML 和 Jinja2 输入加入了代码编辑器。这让 YAML 的阅读和编写都轻松了许多。

Screenshot of the 服务 dev tools with YAML editor. 带有 YAML 编辑器的服务开发者工具截图。

实体注册表现在也迁移到了数据表格界面,因此你可以更轻松地搜索和排序实体,更快找到自己想要的那一个。

Screenshot of the 实体 registry data table. 实体注册表数据表格截图。

我们还改进了自动化中的设备选择器。现在你可以搜索设备,并查看它所在的区域。

Screenshot of the 设备 picker. 设备选择器截图。

mdonoughe 在自动化编辑器中加入了“激活场景”动作的支持。

Lovelace

所有变更请查看 Lovelace 更新日志

其他消息

New 集成

新平台

发布 0.101.1 - October 31

发布 0.101.2 - November 1

发布 0.101.3 - November 5

如果你需要帮助……

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

问题反馈

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

Backward-incompatible changes

  • Removed - The following 集成 have been removed:

    • Direct 认证 via trusted networks or API password - It is no longer possible to make authenticated requests using trusted networks or by appending ?api_password=X to the URL. You will now first need to get an 认证 token and use that token to make requests. Auth providers for trusted networks and API passwords are still available. - (@balloob - #27656) (auth docs) (http docs) (websocket_api docs)

    • Stride - The Stride 通知 集成 was discontinued in February 2019 due to a take over by Slack. - (@hmmbob - #27934)

    • Hipchat - The Hipchat 通知 集成 was discontinued in February 2019, also due to a take over by Slack. - (@fabaff - #27399)

  • Deprecated - Python 3.6 support is deprecated (to be removed completely by December 2019), as 版本 3.8.0 is now out - (@scop - #27680)

  • Scene - 场景 have to be configured more strictly from now on. Each 实体 must be configured with a valid 状态. Furthermore, the 属性 that can be used must be device state attributes. This means that they should be listed under developer-tools -> states. - ([场景 docs])

  • Ecobee - Adds turn_on method to ecobee 温控 platform. Previously, calling climate.turn_on would cause the ecobee thermostat to 打开 in heat mode, regardless of the mode when the thermostat was turned off. Now, the thermostat will 打开 to the last "active" HVAC mode (i.e., "heat", "cool", or "auto") (or, if the thermostat was "off" when Home Assistant started, to "auto"). - (@marthoc - #27103) (ecobee docs)

  • Genius Hub - This addresses an issue that requires the unique_id of 温控 and water_heater 实体 to be changed. After upgrading HA with this change, 用户 will have stale 实体 in the 实体 registry that they may wish to clear out. - (@zxdavb - #27916) (geniushub docs)

  • Abode - The 配置 variables were removed: name, exclude and lights, which were all previously optional. Existing 用户 of the abode 集成 that use these 配置 variables will have to remove them from the configuration.yaml file. 实体 that 用户 wish to disable can be done from the 实体 Registry in the 配置 UI. - (@shred86 - #26699) (abode docs)

  • AdGuard Home - The AdGuard Home 集成 has been made compatible with AdGuard Home v0.99.0. However, support for lower versions is now limited. Upgrading to AdGuard Home v0.99.0 or newer is advised. - (@frenck - #27926) (adguard docs)

  • UniFi - Previously, UniFi POE control 开关 had 属性 showing network usage for receiving and transmitting data of that 实体. This has been replaced with separate 传感器, a pair per network client; one for received data and one for transmitted data. The default 配置 is to keep this disabled so, if you want to use this, either enable select 实体 in the 实体 registry or go to your UniFi 集成 options and enable it for all clients (see HASS 0.98 博客 post for guidance). - (@Kane610 - #27229) (unifi docs)

  • IKEA Tradfri - The Tradfri 传感器 (e.g., 按钮 遥控器 and motion detectors) are now being represented as battery 实体 and will no longer have remaining battery power represented as an 属性. Use the 传感器 状态 instead to monitor the remaining battery power. - (@ggravlingen - #27245) (tradfri docs)

  • Jewish Calendar

    • The output of the timestamp 传感器 have been streamlined, so they're easier to use in 自动化. All the timestamp 传感器 will return UTC time in ISO 8601 format. 属性 have been added to get a UNIX timestamp. - (@tsvi - #26940) (jewish_calendar docs)
    • The holiday type 传感器 has been removed and added as an 属性 to the holiday 传感器. The holiday name 传感器 has been renamed to holiday. (@tsvi - #27654) (jewish_calendar docs) (breaking change)
  • Onkyo - Added max_receiver_volume, which sets the maximum volume of the receiver - this will default to 80, which worked with older Onkyo models. See 文档 for details on how to find your receivers' max volume.

    The max_volume is now a percentage instead of a number from 0 to 80. If you have a max_volume setting of 80, you will need to change this to 100, if you have it as 40 you will need to change this to 50. To work out the new max volume setting use this formula: ( / 80) * 100 - (@foxy82 - #27218) (onkyo docs)

  • MQTT - Allow MQTT JSON 灯光 floating-point transition. The MQTT 灯光 with JSON schema will now send a float instead of an int with the transition key. In this way, transitions shorter than 1s can be used (0.5 seconds, for instance) if the MQTT 灯光 supports it. 灯光 that are based on the "ArduinoJson" module should not experience problems due to the change from int to float (the float value will be truncated to an int). - (@starkillerOG - #27253) (MQTT docs)

  • Somfy - 用户 that have already 创建 their app in the Sofy developer console will need to 更新 the redirect URI to be able to 授权 a new account. You need to change the redirect URI for your app on https://developers.somfy.com to /auth/external/callback instead of /auth/somfy/callback. - (@balloob - #27727) (somfy docs)

  • Glances - Glances is now its own 集成 and configured through config flow. Configured 传感器 with platform type glances should be edited as shown below. - @engrbm87] - #27221) (glances docs) (breaking change)

    Example 配置 YAML:

    Before:

    sensors:
      - platform: glances
        host: 192.168.1.1
        resources:
          - 'cpu_use_percent'

    After:

    glances:
      - host: 192.168.1.1
  • Tesla - Tesla entity_id and unique_id have changed. This is necessary so that multi-vehicle households have a way to distinguish vehicles by basing the name off the name in the app. 用户 should remove old tesla entries from the 实体 registry after the 升级 and 更新 自动化 where tesla entity_ids are used. - (@alandtse - #27957) (tesla docs)

  • Roku - Roku TVs will now report "standby" instead of "off" when they are turned off. Roku TVs can be turned on directly to a source by selecting from the source list. When a media_player returns STATE_OFF it loses access to the source list. By returning STATE_STANDBY instead, the 状态 is more accurately reflected and the source_list 属性 is now accessible when the TV screen is off. - (@Villhellm - #28148) (roku docs)

All changes