0.61:Coinbase、Discogs、iGlo、Sochain

这次发布有将近 100 位贡献者参与 🎉 这就是跳过一次发布后的“能量爆发”。虽然稍微晚了一点,但还是要说一声“新年快乐”,欢迎来到 2018 年的第一个版本:0.61。

本次发布包含一些不向后兼容的变更。如果你在升级后遇到问题,请务必查看下方对应章节。

助手配置

我们在 Google Assistant 和 Alexa 集成的基础配置上犯了一个错误:之前把配置存放在 customize 里。这个位置并不合适,所以现在已经迁移到各自组件下方。如何迁移请查看不向后兼容变更章节。

Hass.io 更新

@pvizeli 通过新增服务让 Hass.io 的快照创建与恢复变得更简单。这样一来,你就能轻松自动化夜间快照创建。更新器也已修复,现在会正确提示可用的 Hass.io 新版本。

加载速度提升

@amelchio 让 Home Assistant 启动速度 更快 了。现在所有服务描述都会在前端需要时才加载,而不是在启动阶段全部加载。为此我们加强了服务命名规范检查,并修复了少数不符合规范的平台:

todoist.new_task -> calendar.todoist_new_task

snapcast.snapcast_snapshot -> media_player.snapcast_snapshot
snapcast.snapcast_restore -> media_player.snapcast_restore

mopar.remote_command -> sensor.mopar_remote_command

broadlink.learn_command_192_168_0_107 -> switch.broadlink_learn_command_192_168_0_107
broadlink.send_packet_192_168_0_107 -> switch.broadlink_send_packet_192_168_0_107

新平台

发布 0.61.1 - January 16

需要帮助?

如果你需要帮助,欢迎前往我们非常活跃的 论坛,或加入 聊天频道。发布说明虽然开放评论,但我们更推荐你使用前面的社区渠道。谢谢!

问题反馈

如果你遇到由本次发布引入的问题,请在我们的 issue tracker 提交反馈。请确保完整填写 issue 模板中的所有字段。

不向后兼容的变更

  • Threshold 二元传感器现已支持区间范围,也就是说你现在可以同时设置 upperlower。(@DanNixon - #11110) (binary_sensor.threshold docs) (breaking change)

  • Steam game 平台有以下变更:

    • 如果当前没有正在游玩的游戏,device_state_attributes 中将不再设置 game 属性;也就是说不会再传入字符串 "None",而是直接不再提供这个属性。
    • 状态值现在统一使用小写蛇形命名。
    • PlayTrade 状态已分别重命名为 looking_to_playlooking_to_trade。 (@frwickst - #11182) (传感器.steam_online docs) (breaking change)
  • tile 平台现在默认只显示处于活动状态的 Tile;如果想显示全部 Tile(包括过期或未激活的),需要将 show_inactive 设为 true。同时移除了以下状态属性:last_seenlast_updated。(@bachya - #11172) (device_tracker.tile docs) (breaking change)

  • isy994 组件移除了 hidden_string 功能。此前,如果 ISY 设备名称或文件夹路径中包含某个已配置字符串,就可以让对应实体在 Home Assistant 中“隐藏”。之所以移除,是因为如今隐藏设备应通过 customization 功能完成。 请注意,这项功能被新的 ignore_string 配置项取代了。现在,匹配该字符串的设备会被 Home Assistant 彻底忽略,不会再被导入为 Home Assistant 设备。如果你的 ISY 里有一些在 Hass 中完全没用的节点(比如红外发射器节点),这个选项会非常有帮助。(@OverloadUT - #11243) (isy994 docs) (binary_sensor.isy994 docs) (遮盖.isy994 docs) (风扇.isy994 docs) (灯光.isy994 docs) (门锁.isy994 docs) (传感器.isy994 docs) (开关.isy994 docs) (breaking change)

  • egardia 报警面板 平台不再需要用户额外运行一个单独的 Egardiaserver 组件,现在它也可以直接运行在 HASS.io 上。(@jeroenterheerdt - #11344) (alarm_control_panel.egardia docs) (breaking change)

  • DoorBird 集成中的二元传感器平台已被删除,因此请从你的 binary_sensor 配置中移除 DoorBird。改为将 doorbird 组件的 doorbell_events 选项设为 true。同时,摄像头组件中的 last_visitor 选项也已移除,因为它现在会始终作为实体自动添加。(@Klikini - #11193) (摄像头.doorbird docs) (breaking change)

  • The following 属性 of the TP-Link 开关 and 灯光 platform have been renamed:

    • 灯光: current_consumption -> current_power_w, daily_consumption -> daily_energy_kwh and monthly_consumption -> monthly_energy_kwh
    • 开关: current -> current_a, current_consumption -> current_power_w, total_consumption -> total_energy_kwh and daily_consumption -> today_energy_kwh (@DanNixon - #10979) (灯光.tplink docs) (开关.tplink docs) (breaking change)
  • Move IMAP Email Content body to an 属性 (@notoriousbdg - #11096) (传感器.imap_email_content docs) (breaking change)

  • 自动化 which were using state that was returning target_temperature of the netatmo 温控 platform needs an 更新. (@ciotlosm - #11345) (温控.netatmo docs) (breaking change)

  • The default availability payloads for the MQTT 开关 platform have changed from "ON" and "OFF" to "online" and "offline" (in order to match the majority of MQTT platforms that already supported availability reporting). (@DanNixon - #11336) (breaking change)

  • Customizations for how 实体 are exposed to Alexa are no longer set via customize. Instead they are set via the 配置 of the cloud component:

    cloud:
      alexa:
        entity_config:
          switch.kitchen:
            name: "Name for Alexa"
            description: "Description for Alexa"
            display_categories: "LIGHT"

    (@balloob - #11461) (cloud docs) (alexa.smart_home docs) (breaking change)

  • The extension of the alpha_vantage requires an 更新 of the 配置 as now are exchange data available as well. (@ChristianKuehnel - #11427) (传感器.alpha_vantage docs) (breaking change)

  • The prometheus component now supports pushing all 传感器 and fixes wrong metrics. If may require that you 更新 your 配置. (@michaelkuty - #11159) (prometheus docs) (breaking change)

  • Insteon local 设备 will now use their address as the entity_id and name. The friendly name can be customized using the standard customization configuration. (@camrun91 - #11088) (insteon_local docs) (风扇.insteon_local docs) (灯光.insteon_local docs) (开关.insteon_local docs) (breaking change)

  • Google Assistant is no longer configured via customize but instead has its 配置 under the google_assistant entry in your configuration.yaml. The 属性 will no longer have to be prefixed with google_assistant_ either.

    Old optionNew option
    google_assistantexpose
    aliasesaliases
    google_assistant_namename
    google_assistant_typetype

    Before:

    homeassistant:
      customize:
        switch.kitchen:
          google_assistant: false
          google_assistant_name: nice lights
          google_assistant_type: light
          aliases:
            - roof lights
    
    google_assistant:

    After:

    google_assistant:
      entity_config:
        switch.kitchen:
          expose: false
          alias: "roof lights"
          name: nice lights
          type: light

(@balloob - #11499) (cloud docs) (google_assistant docs) (breaking change)

  • The climate.set_aux_heat 服务 is no longer available for the Sensibo 温控 platform. Now call climate.turn_on or climate.turn_off. (@andrey-git - #11579) (温控.sensibo docs) (breaking change)

  • 发布 0.61.0 introduced a lazy 服务 loading strategy that relied on all components and platforms following our naming convention. After the 发布 we realized that not all 服务 did, which have been addressed by this fix. This results in certain 服务 changing names:

    todoist.new_task -> calendar.todoist_new_task
    
    snapcast.snapcast_snapshot -> media_player.snapcast_snapshot
    snapcast.snapcast_restore -> media_player.snapcast_restore
    
    mopar.remote_command -> sensor.mopar_remote_command
    
    broadlink.learn_command_192_168_0_107 -> switch.broadlink_learn_command_192_168_0_107
    broadlink.send_packet_192_168_0_107 -> switch.broadlink_send_packet_192_168_0_107

    (@amelchio - #11677) (日历.todoist docs) (媒体播放器.snapcast docs) (媒体播放器.soundtouch docs) (开关.broadlink docs) (开关.scsgate docs) (breaking change)

全部变更