0.51: History 大幅提速、自动化编辑器完成、官方吸尘器支持
:::important 这个版本需要执行一次性数据库迁移,对于大型数据库可能会耗费较长时间(约 20 分钟)。在此期间前端将无法使用。迁移过程中请不要停止 Home Assistant。 :::
0.51 版本已经到来,其中包含不少非常棒的更新。
数据库提速
首先是 @OverloadUT 在 #8748 中带来的惊人数据库优化。所有经过测试的查询都能在 1 秒内完成,即使是在使用 MySQL、拥有 600 万行数据和约 300 个实体的树莓派上也是如此。哪怕你查询的是一个大得不太现实的时间范围,也依旧如此!
启动 Home Assistant 时,数据库升级会花费一些时间。在此期间,Home Assistant 前端将无法访问。请耐心等待其完成,不要关闭 Home Assistant。
前端更新
我们已经完成了前端迁移,现在它由 Polymer 2 驱动。这不仅让 Safari/iOS 设备上的速度大幅提升,也修复了大量问题。
我们也完成了自动化编辑器。现在所有触发器与动作都已实现,大多数条件也已支持(目前还缺少 and、or)。此外,自动化编辑器不再只支持 Chrome,现在在 Safari 中也可以使用。
前端的另一个变化是我们重新组织了面板。Z-Wave 与自动化配置面板已经合并进统一的配置面板中。
吸尘器
随着越来越多的吸尘器加入 Home Assistant,是时候为它们建立一个官方组件了。因此 @azogue 在 #8623 中引入了新的吸尘器组件。这让吸尘器在 Home Assistant 中拥有了一等公民级别的集成支持。开箱即可支持 Dyson、Xiamo 和 Roomba 平台。
新平台
- Added Lutron Caseta 场景 Support (@kfcook - #8690) (lutron_caseta docs) (场景.lutron_caseta docs) (new-platform)
- New 媒体播放器 platform for Russound 设备 using the RIO protocol (@wickerwaka - #8448) (媒体播放器.russound_rio docs) (new-platform)
- New component: bluesound (@thrawnarn - #7192) (媒体播放器.bluesound docs) (new-platform)
- Add mochad 灯光 component (@mtreinish - #8476) (灯光.mochad docs) (new-platform)
- geizhals 传感器 component (@JulianKahnert - #8458) (传感器.geizhals docs) (new-platform)
- Xiaomi 吸尘器 as platform of new
vacuumcomponent derived from ToggleEntity, and 服务 (@azogue - #8623) (breaking change) (new-platform) - Wi-Fi enabled Roomba support (@pschmitt - #8825) (吸尘器.roomba docs) (new-platform)
- Add support to Dyson 360 Eye robot 吸尘器 using new 吸尘器 platform (@CharlesBlonde - #8852) (dyson docs) (吸尘器 docs) (风扇.dyson docs) (传感器.dyson docs) (吸尘器.dyson docs) (new-platform)
- Add Initial Mailbox 面板 and 传感器 (@PhracturedBlue - #8233) (asterisk_mbox docs) (new-platform)
- Add Leviton Decora Smart WiFi 设备 Platform (@tlyakhov - #8529) (灯光.decora_wifi docs) (new-platform)
- Add RainMachine 开关 platform (@bachya - #8827) (开关.rainmachine docs) (new-platform)
- Add new 设备 tracker for Huawei Routers. (@abmantis - #8488) (device_tracker.huawei_router docs) (new-platform)
- Add Shodan 传感器 (@fabaff - #8902) (传感器.shodan docs) (new-platform)
发布 0.51.1 - August 12
- Fixed a bug in the 自动化 editor that would break if no 条件 available in the config file. (@balloob)
发布 0.51.2 - August 14
- Fix zwave power_consumption 属性 (@andrey-git - #8968) (zwave docs)
- Turn foscam verbose mode off (@andrey-git - #8967) (摄像头.foscam docs)
- fix stack trace in pushbullet (@Danielhiversen - #8965) (通知.pushbullet docs)
- Harmoney 遥控器: Fix call to ha_send_commands (@MartinHjelmare - #8956) (遥控器.harmony docs)
- fix DeviceException handling when updating xiaomi 吸尘器 (@azogue - #8954) (吸尘器.xiaomi docs)
- Sabnzbd: do not assume discovery info is a dict (@balloob - #8951) (传感器.sabnzbd docs)
- Fix login 按钮 (@balloob)
- Add workaround for broken toggles in Safari (@balloob)
- Fix weblink opening twice (@azogue)
如果你需要帮助……
欢迎使用我们非常活跃的 论坛,或加入 聊天频道 与我们交流。虽然发布说明也开放评论,但我们更推荐使用前面的沟通渠道。谢谢。
反馈问题
如果你遇到了这个版本引入的问题,请前往我们的 issue tracker 提交反馈,并确保填写 issue 模板中的所有字段。
不向后兼容的变更
- Efergy 传感器: change units from KW to W (@emlt - #8761) (传感器.efergy docs) (breaking change)
- Xiaomi 吸尘器 is now a platform of new
vacuumcomponent derived from ToggleEntity, and 服务 (@azogue - #8623) (breaking change) (new-platform)
全部变更
- 升级 pushbullet.py to 0.11.0 (@fabaff - #8691) (通知.pushbullet docs)
- 升级 mypy to 0.521 (@fabaff - #8692)
- Added Lutron Caseta 场景 Support (@kfcook - #8690) (lutron_caseta docs) (场景.lutron_caseta docs) (new-platform)
- Remove deprecated host and ssl logic from Kodi (@armills - #8700) (媒体播放器.kodi docs)
- Remove deprecated substitute interfaces (@armills - #8701) (binary_sensor docs) (媒体播放器 docs)
- Remove deprecated sensor_class config options (@armills - #8702)
- directv: add 配置 glue for Genie slaves (@sielicki - #8713) (媒体播放器.directv docs)
- bump python-telegram-bot to 7.0.1 for fully support Bot API 3.2 (@azogue - #8715) (telegram_bot docs)
- Add proxy support for telegram_bot (@azogue - #8717) (telegram_bot docs)
- python-insteonplm module 版本 bump (@nugget - #8736) (insteon_plm docs)
- New 媒体播放器 platform for Russound 设备 using the RIO protocol (@wickerwaka - #8448) (媒体播放器.russound_rio docs) (new-platform)
- Add 切换 to 遥控器 (@alanfischer - #8483) (遥控器 docs) (遥控器.apple_tv docs) (遥控器.harmony docs) (遥控器.itach docs)
- added invert_state optional parameter (@gwhiteCL - #8695) (遮盖.rpi_gpio docs)
- buienradar dates tz-aware (@mjj4791 - #8767) (传感器.buienradar docs) (天气.buienradar docs)
- Change units from KW to W (@emlt - #8761) (传感器.efergy docs) (breaking change)
- Clean up 遥控器 component (@MartinHjelmare - #8728) (遥控器 docs) (遥控器.apple_tv docs) (遥控器.harmony docs) (遥控器.itach docs) (遥控器.kira docs)
- Wink discovery (@w1ll1am23 - #8739) (wink docs)
- Enable/Disable Motion detection for Foscam 摄像头 (@viswa-swami - #8582) (摄像头.foscam docs)
- Allow sonos to select playlists as a source (@mcolyer - #8258) (媒体播放器.sonos docs)
- mpd improvements (@StevenLooman - #8655) (媒体播放器.mpd docs)
- Add support for file attachments in pushbullet (@tsvi - #8763) (通知.pushbullet docs)
- Honeywell fixes and improvements (@dansarginson - #8756) (温控.honeywell docs)
- Catch exception (fixes #8724) (@fabaff - #8731) (传感器.google_wifi docs)
- use updated osram lightify 1.0.6 component, including bugfix allowing more than 27 设备 (@tfriedel - #8774) (灯光.osramlightify docs)
- flux_led: support for property "available" (@pezinek - #8764) (灯光.flux_led docs)
- New component: bluesound (@thrawnarn - #7192) (媒体播放器.bluesound docs) (new-platform)
- Add 'forecast' ability to yr 天气 传感器 (@tinloaf - #8650)
- Feature alexa launch request (@steverhoades - #8730) (alexa docs)
- Fixes UnboundLocalError: local variable 'setting' referenced before assignment (@syssi - #8782) (温控.tado docs)
- 升级 pyasn1 to 0.3.1 and pyasn1-modules to 0.0.10 (@fabaff - #8787) (通知.xmpp docs)
- 升级 sphinx-autodoc-typehints to 1.2.1 (@fabaff - #8783)
- Improvements (配置 and validation) (@fabaff - #8785)
- Fix referencing unset variable in tado 温控 component (causes 更新 to fail when tado 区域 is in manual mode) (@luukd - #8723) (温控.tado docs)
- MQTT 开关: add voluptuous for availability topic (@abmantis - #8797) (开关.MQTT docs)
- Add mochad 灯光 component (@mtreinish - #8476) (灯光.mochad docs) (new-platform)
- 更新 numpy 1.13.1 (@pvizeli - #8806) (image_processing.opencv docs)
- 升级 aiohttp to 2.2.4 (@fabaff - #8805)
- Catch divide by zero 错误 when a sleep type is 0 (@mezz64 - #8809) (传感器.eight_sleep docs)
- InfluxDB component improvements (@haimgel - #8633) (influxdb docs)
- When Sonos gets a tts source - dont't show an 图像 (@andrey-git - #8777) (媒体播放器.sonos docs)
- Polymer 2 (@balloob - #8815) (group docs)
- geizhals 传感器 component (@JulianKahnert - #8458) (传感器.geizhals docs) (new-platform)
- Xiaomi 吸尘器 as platform of new
vacuumcomponent derived from ToggleEntity, and 服务 (@azogue - #8623) (breaking change) (new-platform) - 更新 yweather.py (@fanthos - #8820)
- Make HA discover sabnzbd and add it to the Configurator (@Hellowlol - #8634) (传感器.sabnzbd docs)
- Fix Dyson 传感器 if 设备 are configured without standby monitoring. Fixes #8569 (@CharlesBlonde - #8826) (dyson docs) (风扇.dyson docs) (传感器.dyson docs)
- Block dependencies that depend on enum34 (@balloob - #8698)
- 升级 aiohttp to 2.2.5 (@fabaff - #8828)
- History query and schema optimizations for huge performance boost (@OverloadUT - #8748) (history docs) (breaking change)
- 更新 xiaomi 吸尘器 tests and include in coverage (@azogue - #8845) (吸尘器 docs) (吸尘器.xiaomi docs)
- Egardia (@jeroenterheerdt - #8389)
- Do not call 更新() in constructor. (@fabaff - #8837) (传感器.systemmonitor docs)
- 升级 sendgrid to 4.2.1 (@fabaff - #8839)
- Do not call 更新() in constructor (@fabaff - #8840) (传感器.vasttrafik docs)
- Make 'monitored_conditions' optional (@fabaff - #8843) (传感器.radarr docs)
- Do not call 更新() in constructor (@fabaff - #8849) (传感器.synologydsm docs)
- Make 'monitored_conditions' optional (@fabaff - #8848) (传感器.sonarr docs)
- Do not call 更新() in constructor (@fabaff - #8847) (传感器.pocketcasts docs)
- Catch ConnectionRefusedError (@fabaff - #8844) (传感器.supervisord docs)
- 升级 sqlalchemy to 1.1.13 (@fabaff - #8850) (recorder docs)
- 升级 pylast to 1.9.0 (@fabaff - #8854) (传感器.lastfm docs)
- Wi-Fi enabled Roomba support (@pschmitt - #8825) (吸尘器.roomba docs) (new-platform)
- Add support to Dyson 360 Eye robot 吸尘器 using new 吸尘器 platform (@CharlesBlonde - #8852) (dyson docs) (吸尘器 docs) (风扇.dyson docs) (传感器.dyson docs) (吸尘器.dyson docs) (new-platform)
- 升级 pyasn1 to 0.3.2 and pyasn1-modules to 0.0.11 (@fabaff - #8856) (通知.xmpp docs)
- Allow to set coordinates (@fabaff - #8858) (传感器.zamg docs) (天气.zamg docs)
- Added rounding to Google WiFi (@fronzbot - #8866) (传感器.google_wifi docs)
- Fix off_delay for zwave 触发器 传感器 (@turbokongen - #8864) (zwave docs) (binary_sensor.zwave docs)
- Do not use pychromecast.Chromecast for Cast Groups (@foxel - #8786) (媒体播放器.cast docs)
- Allow get local ip to work without internet (@balloob - #8855)
- Do not call 更新() in constructor (@fabaff - #8859)
- Add new 服务
clean_spotto 吸尘器 (@azogue - #8862) (吸尘器 docs) (吸尘器.xiaomi docs) - Warn instead of raise on duplicate YAML key (@balloob - #8834)
- Add Initial Mailbox 面板 and 传感器 (@PhracturedBlue - #8233) (asterisk_mbox docs) (new-platform)
- Add Leviton Decora Smart WiFi 设备 Platform (@tlyakhov - #8529) (灯光.decora_wifi docs) (new-platform)
- Consolidate config 面板 (@balloob - #8857) (自动化 docs) (zwave docs)
- Fix spelling 错误 and 更新 link (@Klikini - #8869)
- Implement Roomba 风扇 speed (@pschmitt - #8863) (吸尘器.roomba docs)
- Add nuki 门锁'n'go and unlatch 服务 and add 属性 (@pschmitt - #8687) (门锁.nuki docs)
- RFLink: Add send_command 服务 (@leppa - #8876) (rflink docs)
- Do not call 更新() in constructor (@fabaff - #8881) (binary_sensor.rest docs) (传感器.rest docs)
- Add RainMachine 开关 platform (@bachya - #8827) (开关.rainmachine docs) (new-platform)
- Allow usage of colorlog 3.0.1 (@fabaff - #8885)
- Change level (@fabaff - #8883) (传感器.statistics docs)
- 升级 youtube_dl to 2017.8.6 (@fabaff - #8880) (media_extractor docs)
- Fix media_extractor for some sites (@AlexxIT - #8887) (media_extractor docs)
- Do not call 更新() in constructor (@fabaff - #8878)
- Do not call 更新() in constructor (@fabaff - #8892) (binary_sensor.command_line docs) (传感器.command_line docs) (开关.command_line docs)
- Changed Pi-hole graphs from stacked bar to line (@bachya - #8896) (传感器.pi_hole docs)
- Add longer text strings to mailbox demo to test string truncation (@PhracturedBlue - #8893) (mailbox.demo docs) (mailbox.demo.txt docs)
- added support for setting/getting position of lutron caseta 遮盖 (@kfcook - #8898) (遮盖.lutron_caseta docs)
- Fix for Neato D3 Connected 状态 obtaining (@karlkar - #8817) (传感器.neato docs) (开关.neato docs)
- 更新 simplisafe-python 版本 (@w1ll1am23 - #8908) (alarm_control_panel.simplisafe docs)
- LIFX: improve performance of multi-灯光 transitions (@amelchio - #8873) (灯光.lifx docs)
- Support media position and media duration (will display progressbar in ui) (@molobrakos - #8904) (媒体播放器.squeezebox docs)
- Add new 设备 tracker for Huawei Routers. (@abmantis - #8488) (device_tracker.huawei_router docs) (new-platform)
- Add Shodan 传感器 (@fabaff - #8902) (传感器.shodan docs) (new-platform)
- Added possibilities to use 模板 in the command_line 传感器 (@mar-schmidt - #8505) (传感器.command_line docs)
- Honor PEP8 naming convention (@fabaff - #8909) (updater docs)
- Remove not needed call to 更新 (@MartinHjelmare - #8930) (开关.rachio docs)
- fixing emulated hue issue and testing it (@cribbstechnologies - #8928) (emulated_hue docs)
- 更新 roombapy to 1.3.1 to avoid installing all the mapping dependencies (@pschmitt - #8925) (吸尘器.roomba docs)
- 更新 python-wink 版本 to fix Dome water valve bug. (@w1ll1am23 - #8923) (wink docs) (开关.wink docs)
- Fix SET_TEMPERATURE_SCHEMA in 温控 component (@MartinHjelmare - #8879) (温控 docs)


