0.50: 语音控制、History 改进与 Xiaomi
上周三,我们发布了 Hass.io,这是一个用于处理家庭自动化环境中各种更新烦恼的操作系统,而且它还远不止于此。这是 Home Assistant 的一个重要里程碑,因为它是我们朝着“自备硬件、完整集成方案”迈出的第一步。
这次发布非常成功。BRUHAutomation 制作的20 分钟介绍视频 在短短 4 天内就获得了 1.25 万次观看和超过 150 条评论。
Hass.io 将会成为更大、更完善集成功能的坚实基础,敬请期待。
为集成加入语音能力
不过先聊到这里,别忘了 Home Assistant 本身。这次发布彻底改造了我们处理语音集成的方式。我们把 Home Assistant 变成了一个可编写语音应用的平台,无论语音处理发生在何处都适用。它可以由 Alexa、Google Assistant,或 Home Assistant 用户界面来完成。
我们对这项新功能非常兴奋,也希望它能催生一类构建在 Home Assistant 之上的全新应用和系统。这个版本加入了购物清单来展示新能力。作为用户,你可以通过语音把任意物品加入购物清单,也可以直接询问购物清单里有什么。
为了让这些应用更容易测试,我们更新了 conversation 组件。现在你可以配置句子,让它们直接接入新的语音功能。配合全新的界面,这会带来很多很棒的交互方式!更多信息请查看开发者文档。
History 改进
最近 @OverloadUT 花了很多时间优化历史记录数据库查询。这次发布包含了 PR #8632,这是他正在推进的一系列改进中的第一项。这个 PR 通过针对单个实体使用优化查询,显著提升了这类请求的性能。
在他的一些测试中,这项改动大约快了 300 倍(从 30 秒缩短到 0.1 秒!)。(由于多实体查询会随着当前 recorder 运行时间变长而变得更慢,因此理论上没有固定的性能上限。)
Xiaomi 集成
Yes, it has happened! After being in beta for a while, the Xiaomi support is now available to all. @danielhiversen did an amazing job and we now support 传感器, 开关, 灯光 and 遮盖.
Velbus 集成
另一个很棒的集成是由 @thomasdelaet 贡献的 Velbus 家庭自动化系统。它集成了他们的传感器、遮盖、风扇、灯光和开关。
通过 MQTT 控制的手动报警
多亏了 @colinodell,手动报警组件现在推出了支持完整 MQTT 控制的新版本。借助它,你可以构建自己的控制面板来远程布防/撤防报警。例如,可以使用树莓派打造一个报警控制面板。
新平台
- Initial support for Google WiFi/OnHub (@fronzbot - #8485) (传感器.google_wifi docs) (new-platform)
- Xiaomi gw support (@danielhiversen - #8555) (xiaomi docs) (binary_sensor.xiaomi docs) (遮盖.xiaomi docs) (灯光.xiaomi docs) (传感器.xiaomi docs) (开关.xiaomi docs) (new-platform)
- Add Intent component (@balloob - #8434) (alexa docs) (intent_script docs) (shopping_list docs) (snips docs) (breaking change) (new-platform)
- Manual 报警 with MQTT control (@colinodell - #8257) (alarm_control_panel.manual_mqtt docs) (new-platform)
- Add component 灯光 TPLink (@gollo - #8643) (灯光.tplink docs) (new-platform)
- Velbus (@thomasdelaet - #8076) (velbus docs) (binary_sensor.velbus docs) (灯光.velbus docs) (new-platform)
- Add uk_transport component. (@robmarkcole - #8600) (传感器.uk_transport docs) (new-platform)
发布 0.50.2 - July 31
直接来到 0.50.2。由于上传到 PyPi 时出现错误,我们将 0.50 版本以 0.50.1 的形式发布了。
- Fix TP-Link 灯光 brightness issue #8744. (@gollo - #8755)
- Fix typo in 脚本 错误 (@n8henrie - #8754)
- Fix tradfri 错误 spam (@MartinHjelmare - #8738) (灯光.tradfri docs)
- Media Player - Pioneer: Suppress exception if host is not available (fixes #8684) (@fabaff - #8732) (媒体播放器.pioneer docs)
- Telegram Bot: Retry set_webhook up to three times, reduce timeout to 5s again (@azogue - #8716) (telegram_bot.webhooks docs)
- Fixed 传感器 issue with Google WiFi routers in bridge mode (@fronzbot - #8710) (传感器.google_wifi docs)
- Fix alexa 卡片 (@balloob - #8708) (alexa docs)
- Fix Kodi reconnection after websocket disconnect (@armills - #8704) (媒体播放器.kodi docs)
- Move I/O outside of properties for 灯光/tplink platform (@gollo - #8699) (灯光.tplink docs) (new-platform)
- Correctly discover GE 风扇 Controllers (@armills - #8682) (zwave docs)
- Fix Z-Wave barrier discovery for new API (@armills - #8706) (zwave docs) (遮盖.zwave docs)
如果你需要帮助……
欢迎使用我们非常活跃的 论坛,或加入 聊天频道 与我们交流。虽然发布说明也开放评论,但我们更推荐使用前面的沟通渠道。谢谢。
反馈问题
如果你遇到了这个版本引入的问题,请前往我们的 issue tracker 提交反馈,并确保填写 issue 模板中的所有字段。
不向后兼容的变更
- 自动化: The 状态 触发器 keyword
stateand the time 触发器 keywordafterwere deprecated in 0.46. They have now been removed. Usetoandatinstead. (@amelchio - #8510) (自动化.状态 docs) (自动化.time docs) (breaking change) - Wink: the component is no longer supporting the
access_tokenin the config. Use the new OAuth 认证 or add your username and 密码 to the config. (@w1ll1am23 - #8208) (wink docs) (breaking change) - Alexa/API.AI/Snips.ai/Conversation: configuring responses to intents/sentences has been moved to a new component called
intent_script. Conversation now allows configuring sentences to map to intents. (@balloob - #8434) (alexa docs) (intent docs) (intent_script docs) (shopping_list docs) (snips docs) (breaking change) (new-platform)
- 开关 fritzdect: 属性 have been renamed to use underscores and no capital letters (@thomasklingbeil - #8436) (breaking change)
- Yahoo 天气: no longer allow configuring forecasts but include all instead. (@fanthos - #8626) (breaking change)
- The Home Assistant Z-Wave 遮盖 implementation has been updated to support the latest development 版本 of OpenZWave. If you are currently applying a workaround to your OpenZWave 安装 to support the barrier command class, you'll need to make sure you 更新 your workaround to the latest development 版本 of OpenZWave. (@firstof9 - #8574) (遮盖 docs) (遮盖.zwave docs) (breaking change)
全部变更
- Make deps directory persistent over upgrades (@MartinHjelmare - #7801)
- Fix check for running inside venv (@MartinHjelmare - #8481)
- Bump to KNXIP 0.5 (@open-homeautomation - #8492) (knx docs)
- Expose all components on hass [Concept] (@balloob - #8490) (灯光 docs)
- Add bind_hass to components (@balloob - #8502)
- Persistent 通知 import (@balloob - #8507)
- Added additional 属性 to OwnTracks device_tracker (@binarybucks - #8503) (device_tracker.owntracks docs)
- Added 传感器 状态 rounding (@fronzbot - #8499) (传感器.pi_hole docs)
- fix for a bug introduced with media support in #8282 (@MikeChristianson - #8513) (通知.twitter docs)
- handle timeout 错误 without logging.exception when updating hue 灯光; double quotes in 日志 msgs (@azogue - #8524) (灯光.hue docs)
- Remove deprecated 自动化 keywords (@amelchio - #8510) (自动化.状态 docs) (自动化.time docs) (breaking change)
- Citybikes: Allow None as result for empty slots (@janLo - #8528) (传感器.citybikes docs)
- Return a 0 temperature value when none is found (@phil-lavin - #8518) (温控.maxcube docs)
- Fix #6469 and #6828 (@titilambert - #8537)
- 更新 docstrings (@fabaff - #8536)
- 升级 TwitterAPI to 2.4.6 (@fabaff - #8535) (通知.twitter docs)
- Decora: Fix set brightness and improve reconnection (@titilambert - #8522) (灯光.decora docs)
- Initial support for Google WiFi/OnHub (@fronzbot - #8485) (传感器.google_wifi docs) (new-platform)
- Fix exception dlib_face_identify when 图像 is not recognized by face_recognition module (@tchellomello - #8552) (image_processing.dlib_face_identify docs)
- [media_extractor] Add support for custom stream queries for media_extractor (@minchik - #8538) (media_extractor docs)
- Report Harmony 遥控器 off if 状态 is unknown (@jawilson - #8547) (遥控器.harmony docs)
- 升级 the alarmdecoder dependency library from 0.12.1 to 0.12.3. (@viswa-swami - #8542) (alarmdecoder docs)
- turn_on_action and turn_off_action with 脚本 syntax (@azogue - #8558) (媒体播放器.kodi docs)
- Extends Pi-hole 传感器 to support the new 传感器: (@tchellomello - #8549) (传感器.pi_hole docs)
- Support for Wink 开关 and 灯光 groups also fix 风扇 speed selection (@w1ll1am23 - #8501) (wink docs) (风扇.wink docs) (灯光.wink docs) (开关.wink docs)
- Added a 服务 to write to KNX group addressed including 文档 (@open-homeautomation - #8491) (knx docs)
- Handle manual edits to emulated_hue_ids.json (@jawilson - #8560) (emulated_hue docs)
- Enhance python_script to support "getitem" (@sdague - #8541) (python_script docs)
- 更新 persistent deps dir 版本 in config.py (@balloob - #8479)
- Xiaomi gw support (@danielhiversen - #8555) (xiaomi docs) (binary_sensor.xiaomi docs) (遮盖.xiaomi docs) (灯光.xiaomi docs) (传感器.xiaomi docs) (开关.xiaomi docs) (new-platform)
- fix #8263 corrected Adafruit DHT library 版本 from 1.3.0 to 1.3.2 (@namadori - #8562) (传感器.dht docs)
- xiaomi bug fix (@danielhiversen - #8576) (binary_sensor.xiaomi docs)
- Bumped python-simplisafe 版本 (@bachya - #8578) (alarm_control_panel.simplisafe docs)
- Added Time Remaining and Time Elapsed 传感器 for octoprint (@w1ll1am23 - #8581) (传感器.octoprint docs)
- upgade xiaomi lib to 0.2 (@danielhiversen - #8584) (xiaomi docs)
- 设备 support for different new 传感器 of the xiaomi aqara gateway (@syssi - #8577) (xiaomi docs) (binary_sensor.xiaomi docs) (传感器.xiaomi docs) (开关.xiaomi docs)
- Extends Fitbit 传感器 to track the 设备 battery level (@tchellomello - #8583) (传感器.fitbit docs)
- xiaomi 二元sensor bug fix (@danielhiversen - #8586) (binary_sensor.xiaomi docs)
- 升级 pywebpush and PyJWT (@perosb - #8588) (通知.html5 docs)
- Support for Wink oauth application authorization (@w1ll1am23 - #8208) (wink docs) (breaking change)
- Add Intent component (@balloob - #8434) (alexa docs) (intent docs) (intent_script docs) (shopping_list docs) (snips docs) (breaking change) (new-platform)
- Remove code in wink.py overwriting hass.data configurator (@w1ll1am23 - #8595) (wink docs)
- bump python-mirobo 版本 for more robust protocol handling, make the platform to 更新 on startup (@rytilahti - #8602) (开关.xiaomi_vacuum docs)
- 二元sensor ping fixed for hassio (@gollo - #8573) (binary_sensor.ping docs)
- Simplified percent conversion, better logging (@open-homeautomation - #8568) (传感器.knx docs)
- make 属性 in the fritzdect module easier to process (@thomasklingbeil - #8436) (breaking change)
- Allow set_cover_position in 场景 (@peckham - #8613)
- better but still not great (@cribbstechnologies - #8618)
- 升级 youtube_dl to 2017.7.23 (@fabaff - #8617) (media_extractor docs)
- 升级 mypy to 0.520 (@fabaff - #8616)
- REST 二元sensor value_template optional (@philhawthorne - #8596) (binary_sensor.rest docs)
- added onvif 摄像头 fix for non-virtual env 安装 (@matt2005 - #8592) (摄像头.onvif docs)
- Cleanup old device_tracker stuff (@pvizeli - #8627)
- Add support for using credstash as a secret store (@justin8 - #8494)
- Added support for default value when environment variable is missing (@devspacenine - #8484)
- Manual 报警 with MQTT control (@colinodell - #8257) (alarm_control_panel.manual_mqtt docs) (new-platform)
- Catch and 日志 Lyft API 错误 (@armills - #8635) (传感器.lyft docs)
- Tweak conversation/intent/shopping list (@balloob - #8636) (conversation docs) (shopping_list docs)
- 更新 dependencies cast + discovery (@balloob - #8646) (媒体播放器.cast docs)
- Add component 灯光 TPLink (@gollo - #8643) (灯光.tplink docs) (new-platform)
- Fixes Fitbit 传感器 to report battery level with the expected 设备 (@tchellomello - #8647) (传感器.fitbit docs)
- 升级 aiolifx (@amelchio - #8648) (灯光.lifx docs)
- Velbus (@thomasdelaet - #8076) (velbus docs) (binary_sensor.velbus docs) (灯光.velbus docs) (new-platform)
- Yahoo 天气 更新, supports forecast for more days (@fanthos - #8626) (breaking change)
- History performance improvements for single-实体 requests (@OverloadUT - #8632) (history docs)
- Add transition support to 灯光.zha (@jawilson - #8548) (灯光.zha docs)
- Add uk_transport component. (@robmarkcole - #8600) (传感器.uk_transport docs) (new-platform)
- Added support for SerenaHoneycombShades to Lutron Caseta (@kfcook - #8662) (遮盖.lutron_caseta docs)
- MQTT 开关: add availability_topic for online/offline status (@abmantis - #8593) (MQTT docs) (开关.MQTT docs)
- Adding support for mapping keys to value in statsd (@Khabi - #8665) (statsd docs)
- 升级 fuzzywuzzy to 0.15.1 (@fabaff - #8671) (conversation docs)
- 升级 libnacl to 1.5.2 (@fabaff - #8670) (device_tracker.owntracks docs)
- 升级 sqlalchemy to 1.1.12 (@fabaff - #8669) (recorder docs)
- 升级 pyhomematic to 0.1.30 (@danielperna84 - #8673) (homematic docs)
- Hass.io: logo support / timeout handling (@pvizeli - #8668) (hassio docs)
- Updated pysnmp to 4.3.9 (@bgehrich - #8675) (device_tracker.snmp docs) (传感器.snmp docs)
- Fix COMMAND_CLASS_BARRIER_OPERATOR for dev branch of OpenZwave (@firstof9 - #8574) (遮盖 docs) (遮盖.zwave docs) (breaking change)
- Shopping List: edit name / complete status (@balloob - #8666) (shopping_list docs)
- Support for Wink 本地控制 (@w1ll1am23 - #8607) (wink docs)
- Persist shopping list + clear completed (@balloob - #8697) (shopping_list docs)


