0.63:实体注册表、SQL 传感器、Mercedes 车辆
Python 3.4 停止支持时间已确定
正如我们在 去年 10 月的公告 中提到的,Home Assistant 将在 2018 年停止支持 Python 3.4。现在我们确定:再过两个版本(0.65)后,最低支持的 Python 版本将提升到 3.5.3。这对大多数用户不会有影响。如果你使用的是 Hass.io、Debian Stable(Stretch)或其衍生发行版(如 Raspbian、Ubuntu),通常无需担心。
实体注册表
本次发布引入了实体注册表。实体注册表允许集成为设备预留实体 ID。这意味着系统会自动为设备分配实体 ID,并且该 ID 会被保留,不会再被其他设备占用。同时,作为用户,你也可以为这些设备自定义实体 ID。
要让集成使用实体注册表,需要为每个实体定义唯一 ID。这个唯一 ID 必须能够稳定、唯一地识别设备,且不可配置。例如序列号和 MAC 地址是合适的,而 IP 地址或设备名称不合适。
本次发布中,已定义唯一 ID 的集成包括:Z-Wave、Hue、Nest、LIFX、Sonos 和 Apple TV。
如果你想修改设备将被分配的实体 ID,请编辑 <config>/entity_registry.yaml 并重启 Home Assistant(未来版本计划支持无需重启的热重载)。
实体注册表会在设备首次被发现时分配实体 ID。默认情况下,这个 ID 应与过去一致;如果不一致,请更新注册表条目,将其改回旧的实体 ID。
围绕实体注册表,我们还有很多很酷的计划,敬请期待!
新平台
- Adds allergy/disease 传感器 platform from Pollen.com (@bachya - #11573) (传感器.pollen docs) (new-platform)
- Add Goalfeed platform (@craigjmidwinter - #11098) (goalfeed docs) (new-platform)
- Add Melissa (HVAC/温控) component (@kennedyshead - #11503) (melissa docs) (传感器.melissa docs) (new-platform)
- Mediaroom (@dgomes - #11864) (媒体播放器.mediaroom docs) (new-platform)
- Add Xiaomi Universal IR 遥控器 (Chuangmi IR) (@cnrd - #11891) (遥控器.xiaomi_miio docs) (new-platform)
- SQL 传感器 (@dgomes - #12142) (传感器.sql docs) (new-platform)
- Add Mercedes me component (@ReneNulschDE - #11743) (new-platform)
发布 0.63.1 - February 12
- Fix Alexa Step Volume (@lucasweb78 - #12314) (alexa docs)
- Remove unique ID from netatmo (@balloob - #12317) (binary_sensor.netatmo docs) (摄像头.netatmo docs) (传感器.netatmo docs)
- Allow overriding name via 实体 registry (@balloob - #12292)
- Respect 实体 namespace for 实体 registry (@balloob - #12313)
- Fix Report 状态 for Alexa Brightness Controller (@lucasweb78 - #12318) (alexa docs)
- Always return lockState == LOCKED when handling Alexa.LockController (@lucasweb78 - #12328) (alexa docs)
- Fix platform dependencies (@balloob - #12330)
发布 0.63.2 - February 14
- Fix MercedesMe - add check for unsupported features (@ReneNulschDE - #12342) (mercedesme docs) (binary_sensor.mercedesme docs) (device_tracker.mercedesme docs) (传感器.mercedesme docs)
- Fix WUnderground names (@OttoWinter - #12346) (传感器.wunderground docs)
- Updated beacontools (@citruz - #12368) (传感器.eddystone_temperature docs)
- Introduce zone_id to identify player+区域 (@sdague - #12382) (媒体播放器.yamaha docs)
- Downgrade limitlessled to 1.0.8 (@amelchio - #12403) (灯光.limitlessled docs)
发布 0.63.3 - February 17
- python-miio 版本 bumped. (Closes: #12389, Closes: #12298) (@syssi - #12392) (风扇.xiaomi_miio docs) (灯光.xiaomi_miio docs) (遥控器.xiaomi_miio docs) (开关.xiaomi_miio docs) (吸尘器.xiaomi_miio docs)
- Fixed 3 small issues in isy994 component (@OverloadUT - #12421) (isy994 docs)
- Reduce the load on met.no servers, yr.no 传感器 (@danielhiversen - #12435)
- Fix for contentRating 错误 (@ryanm101 - #12445) (媒体播放器.plex docs)
- Fix 灯光 模板 to return brightness as int (@andrey-git - #12447) (灯光.模板 docs)
- Optimize recorder purge (@amelchio - #12448)
- [SQL 传感器] always close session (@dgomes - #12452) (传感器.sql docs)
需要帮助?
如果你需要帮助,欢迎前往我们非常活跃的 论坛,或加入 聊天频道。发布说明虽然开放评论,但我们更推荐你使用前面的社区渠道。谢谢!
问题反馈
如果你遇到由本次发布引入的问题,请在我们的 issue tracker 提交反馈。请确保完整填写 issue 模板中的所有字段。
不向后兼容的变更
-
updated 传感器 name (@philklei - #12084) (传感器.tahoma docs) (breaking change)
-
过去 Canary 摄像头是按位置添加的,并且只显示因运动触发而捕获的图像。现在改为按设备添加(每个位置可以有多个设备),并支持实时视频流。(@snjoetw - #11949) (canary docs) (摄像头.canary docs) (breaking change)
-
为避免 influxdb 占满连接池,
retry_queue_limit这个 influxdb 配置项已不再生效,可以直接删除。(@amelchio - #12182) (influxdb docs) (breaking change) -
一些默认实体名称中的拼写错误已经修复(@OttoWinter - #12041),因此会导致以下
entity_id发生变化:- Seven segments display:
image_processing.seven_segement_ocr_[...]→image_processing.seven_segment_ocr_[...] - Rain Bird 开关:
switch.sprinker_[...]→switch.sprinkler_[...] - OpenEVSE 传感器:
sensor.ambient_termperature→sensor.ambient_temperature - Fido:
sensor.[...]_internaltional_remaining→sensor.[...]_international remaining
- Seven segments display:
-
从 0.64 版本开始,Home Assistant 默认会清理超过 10 天的历史状态记录。如果你想保留更长时间的数据,就必须配置保留天数:
如果你想维持之前“永不删除历史记录”的默认行为,请使用以下配置:
-
Fix duplicate entity_ids in System Monitor (@fanaticDavid - #12124) (传感器.systemmonitor docs) (breaking change)
-
仅针对开发者:以下 EntityComponent 方法已被移除:
extract_from_service、async_update_group、async_reset、prepare_reload。(@balloob - #12237) (breaking change)
全部变更
- Map media_stop to idle 状态 (@akloeckner - #11819)
- Adds allergy/disease 传感器 platform from Pollen.com (@bachya - #11573) (传感器.pollen docs) (new-platform)
- check_config.py: allow colorlog==3.1. (@dotlambda - #11927)
- Weblink - Allow relative urls in config (@ReneNulschDE - #11808)
- Panel_Iframe - Allow relative urls in config (@ReneNulschDE - #11832) (panel_iframe docs)
- Python 3.6 invalid escape sequence deprecation fixes (@scop - #11941)
- tests: Use assertEqual instead of deprecated assertEquals (@scop - #11943)
- huawei_router: Fix 文档 link (@scop - #11961) (device_tracker.huawei_router docs)
- Spelling fixes (@scop - #11940)
- 升级 sqlalchemy to 1.2.2 (@fabaff - #11956)
- 升级 youtube_dl to 2018.01.21 (@fabaff - #11955) (media_extractor docs)
- 升级 sphinx-autodoc-typehints to 1.2.4 (@fabaff - #11954)
- 升级 coinmarketcap to 4.2.1 (@fabaff - #11953) (传感器.coinmarketcap docs)
- Bump dev to 0.63.0.dev0 (@fabaff - #11952)
- 更新 xiaomi_aqara.py (@MGWGIT - #11969) (传感器.xiaomi_aqara docs)
- panasonic_viera: Set 设备 name from discovery info (@scop - #11990) (媒体播放器.panasonic_viera docs)
- 更新 panasonic_viera to 0.3 (@scop - #11989) (媒体播放器.panasonic_viera docs)
- Fix 11982 - uvc don't handle null as username (@bratanon - #11984) (摄像头.uvc docs)
- Add Goalfeed platform (@craigjmidwinter - #11098) (goalfeed docs) (new-platform)
- Added support for hourly percent change in coinmarketcap component (@kevindgoff - #11996) (传感器.coinmarketcap docs)
- 升级 coinbase to 2.0.7 (@fabaff - #11992) (coinbase docs) (传感器.coinbase docs)
- 升级 pyota to 2.0.4 (@fabaff - #11991) (iota docs)
- Fixed Canary temperature 传感器 and remapped air quality value (@snjoetw - #11355) (canary docs) (传感器.canary docs)
- Refactor Alexa Smart Home API (@bitglue - #12016) (alexa docs)
- Report 状态 (@bitglue - #11973) (alexa docs)
- alexa: Add 媒体播放器 InputController support (@philk - #11946) (alexa docs)
- emulated_hue: allow customization within emulated_hue 配置 (@jackwilsdon - #11981) (emulated_hue docs)
- Flake8 35 (@scop - #11972) (feedreader docs) (spc docs) (媒体播放器.bluesound docs) (媒体播放器.clementine docs) (传感器.fritzbox_callmonitor docs) (传感器.qnap docs) (传感器.synologydsm docs)
- Typing fixes (@scop - #12015)
- Fix DoorBird push 通知 for 安装 with an API 密码 (@Klikini - #12020) (doorbird docs)
- Bump upstream lib 版本. (@Cinntax - #12021) (温控.venstar docs)
- 传感器.deutsche_bahn: add only_direct option (@akloeckner - #11999) (传感器.deutsche_bahn docs)
- Fix MQTT 遮盖 availability subscription (@OttoWinter - #12036) (遮盖.MQTT docs)
- Spelling fixes (@OttoWinter - #12041) (breaking change)
- Online 状态 for samsungtv is jumping when TV is idle (@kennedyshead - #11998) (媒体播放器.samsungtv docs)
- 升级 astral to 1.5 (@fabaff - #12042)
- Refactor alexa smart_home tests (@bitglue - #12044)
- Handling of payload not for this 实体. (@freol35241 - #11836) (binary_sensor.MQTT docs)
- Refactor Google Assistant query_device (@philk - #12022) (google_assistant docs)
- 实体 registry (@balloob - #11979) (group docs) (温控.nest docs)
- Return all 属性 that are not None in base 门锁 实体 class (@snjoetw - #12049) (门锁 docs)
- Extract requirements (@balloob - #12051)
- Prepare for recorder purge to be active by default (@amelchio - #11976) (breaking change)
- Bumped up pymochad requirement to 0.2.0 as a fix for #11928 (@aosadchyy - #12014) (mochad docs)
- Publish 错误 on the event bus (@postlund - #11964) (system_log docs)
- Unique ID for LIFX 灯光 (@amelchio - #12064) (灯光.lifx docs)
- Deconz use 实体 registry (@Kane610 - #12067) (deconz docs) (binary_sensor.deconz docs) (灯光.deconz docs) (传感器.deconz docs)
- Flake8 bugbear fixes (@scop - #12072) (plant docs) (rfxtrx docs) (zwave docs) (温控.heatmiser docs) (媒体播放器.plex docs) (通知.kodi docs)
- Fix demo platform support (@ciotlosm - #12070)
- fix event channel name (@craigjmidwinter - #12077) (goalfeed docs)
- fixed timestamp problem in firefox (@escoand - #12073) (天气.openweathermap docs)
- Handle more file closing using context manager (@scop - #11942) (灯光.greenwave docs) (通知.gntp docs) (传感器.onewire docs)
- Influx import improvements (@RePeet13 - #11988)
- Set flux default stop time to dusk (@infernix - #12062) (开关.flux docs)
- Add 条件 to forecast (@escoand - #12074) (天气.openweathermap docs)
- Squeezebox Fix duplicate server from discovery (@mezz64 - #12063) (媒体播放器.squeezebox docs)
- 升级 keyring to 11.0.0 (@fabaff - #12082)
- Correct use of middleware async handling. (@pelson - #12078) (http docs)
- updated 传感器 name (@philklei - #12084) (传感器.tahoma docs) (breaking change)
- Fix detection of mobile browsers (@c727 - #12075) (前端 docs)
- 更新 tahoma api to 版本 0.0.11 (@philklei - #12099) (tahoma docs)
- added media_stop (@jodur - #12100) (媒体播放器.vlc docs)
- Goalfeed channel (@craigjmidwinter - #12086) (goalfeed docs)
- 更新 jinja2 to 2.10 (@arsaboo - #12118)
- Downgrade Sonarr and Radarr 'Host is not available' 错误 to 警告 (@timmo001 - #12119) (传感器.radarr docs) (传感器.sonarr docs)
- Fixes away_mode 错误 on startup (@ciotlosm - #12121) (温控.generic_thermostat docs)
- except vol.MultipleInvalid in Broadlink #11795 (@danielhiversen - #12107) (传感器.broadlink docs)
- Adds SUPPORT_TARGET_TEMPERATURE_HIGH and SUPPORT_TARGET_TEMPERATURE_LOW support (@hawk259 - #12110) (温控.ecobee docs)
- Dark sky precip accumulation (@nordlead2005 - #12127) (传感器.darksky docs)
- fixed wrong check for valid range of 'rgb' values (@PaulAnnekov - #12132) (灯光.xiaomi_aqara docs)
- OpenALPR Cloud API - transfer 图像 in body of POST request (@ReneNulschDE - #12112) (image_processing.openalpr_cloud docs)
- Add support for "off" function to iTunes (@lexam79 - #12109) (媒体播放器.itunes docs)
- Remove asyncio.test_utils to fix tests in Docker/Python 3.7 (@ubnt-marc-khouri - #12102)
- Add Mercedes me component (@ReneNulschDE - #11743)
- Spelling fixes (@scop - #12138) (plant docs) (开关.pulseaudio_loopback docs)
- 更新 volumio component (@titilambert - #12045) (媒体播放器.volumio docs)
- Adding information about current TV channel to WebOS media player (@led-spb - #11339) (媒体播放器.webostv docs)
- Fix #8475 设备 tracker ubus tracks unauthenticated and unassociated 设备 (@aarnaud - #12140) (device_tracker.ubus docs)
- Fix #11875 Ubus broken since 升级 to 0 57 (@aarnaud - #12141) (device_tracker.ubus docs)
- 更新 flake8-docstrings to 1.0.3 (@scop - #12136)
- Tado fixes (@NigelRook - #11294) (tado docs) (温控.tado docs)
- Add Melissa (HVAC/温控) component (@kennedyshead - #11503) (melissa docs) (传感器.melissa docs) (new-platform)
- Mediaroom (@dgomes - #11864) (媒体播放器.mediaroom docs) (new-platform)
- 升级 mutagen to 1.40.0 (@fabaff - #12152) (tts docs)
- 升级 TwitterAPI to 2.4.8 (@fabaff - #12148) (通知.twitter docs)
- fix generic_thermostat bug when 恢复 状态 from HA start up (@crhan - #12134) (温控.generic_thermostat docs)
- Adding xy_color 属性 support to deconz 灯光 (@ErnstEeldert - #12106) (灯光.deconz docs)
- 更新 python-openzwave to 4.1.3 (@perosb - #12057) (zwave docs)
- Panasonic viera new 服务 (@dgomes - #11963) (媒体播放器 docs) (媒体播放器.panasonic_viera docs)
- [Mediaroom 媒体播放器] Follow up on PR #11864 (@dgomes - #12155) (媒体播放器.mediaroom docs)
- Tests for samsungtv (@kennedyshead - #11933)
- 升级 influxdb to 5.0.0 (@fabaff - #12156) (influxdb docs)
- add delay_arrival (@akloeckner - #12169) (传感器.deutsche_bahn docs)
- Move TP-Link socket LED 状态 setting to 更新() (@DanNixon - #12170) (开关.tplink docs)
- 升级 schiene to 0.21 (@fabaff - #12176) (传感器.deutsche_bahn docs)
- python-miio 版本 bumped. Fixes all xiaomi_miio components. (Closes: #12017, Closes: #11948, Closes: #11200) (@syssi - #12188) (风扇.xiaomi_miio docs) (灯光.xiaomi_miio docs) (开关.xiaomi_miio docs) (吸尘器.xiaomi_miio docs)
- 服务 (small_pr)(fix): Added missing return on data 模板 错误 (@tschmidty69 - #12184)
- fix ecobee is_aux_heat_on property (@titilambert - #12186) (温控.ecobee docs)
- 升级 pytouchline to 0.7 (@tbergo - #12179) (温控.touchline docs)
- Canary live stream (@snjoetw - #11949) (canary docs) (摄像头.canary docs) (breaking change)
- Replace Gitter with Discord (@fabaff - #12199)
- 升级 Sphinx to 1.6.7 (@fabaff - #12200)
- Change 属性 in new Mercedes Me component (@ReneNulschDE - #12147) (mercedesme docs) (binary_sensor.mercedesme docs) (device_tracker.mercedesme docs) (传感器.mercedesme docs)
- 二元sensor 模板: Add icon_template and entity_picture_template support (@hawk259 - #12158) (binary_sensor.模板 docs)
- Bump pyeconet 版本 to fix JSONDecodeError (@w1ll1am23 - #12204) (温控.econet docs)
- Add support for Alexa.StepSpeaker (@lucasweb78 - #12183) (alexa docs)
- 升级 wakeonlan to 1.0.0 (@Tadly - #12190) (wake_on_lan docs) (媒体播放器.panasonic_viera docs) (媒体播放器.samsungtv docs) (媒体播放器.webostv docs) (开关.wake_on_lan docs)
- zha: 更新 to bellows 0.5.0+zigpy (@rcloran - #12187) (zha docs) (binary_sensor.zha docs) (灯光.zha docs) (传感器.zha docs)
- Make waterfurnace recovery more robust (@sdague - #12202) (waterfurnace docs)
- Much nicer icon (@lance36 - #12212) (吸尘器.xiaomi_miio docs)
- Properly handle thresholds of zero (@DanNixon - #12175) (binary_sensor.threshold docs)
- zha: Add support for XBee radios (@rcloran - #12205) (zha docs) (binary_sensor.zha docs)
- Fix clear playlist in Volumio component (@titilambert - #12173) (媒体播放器.volumio docs)
- Add Xiaomi Universal IR 遥控器 (Chuangmi IR) (@cnrd - #11891) (遥控器.xiaomi_miio docs) (new-platform)
- Fix Xeoma 摄像头 platform to allow different admin/viewer credentials (@jeradM - #12161) (摄像头.xeoma docs)
- Xiaomi MiIO 灯光: Brightness mapping improved (@syssi - #12203) (灯光.xiaomi_miio docs)
- Fixes according to review from @MartinHjelmare Thank you. (@kennedyshead - #12171) (温控.melissa docs) (传感器.melissa docs)
- Fix logger bug on Windows: path contains ''. (@fanthos - #12197) (system_log docs)
- Catch concurrent.futures.CancelledError in websocket code. (@pelson - #12150) (websocket_api docs)
- 更新 pushsafer.py (@appzer - #11466) (通知.pushsafer docs)
- Add wake on lan capability to philips TV (@frog32 - #12065) (媒体播放器.philips_js docs)
- Specify the minimum python 版本 in the 设置.py. (@pelson - #12144)
- Return of entity_id in 模板 platforms (@amelchio - #12234) (binary_sensor.模板 docs) (遮盖.模板 docs) (灯光.模板 docs) (传感器.模板 docs) (开关.模板 docs)
- Allow zero purge_interval to disable recorder purge (@amelchio - #12220)
- 更新 min js=latest 版本 (@andrey-git - #12091) (前端 docs)
- librouteros 版本 bump (@zabuldon - #12227) (device_tracker.mikrotik docs)
- SQL 传感器 (@dgomes - #12142) (传感器.sql docs) (new-platform)
- Fixes for tesla. New 传感器. (@zabuldon - #12225) (tesla docs) (传感器.tesla docs)
- 实体 layer cleanup (@balloob - #12237) (breaking change)
- [SMALL PATCH] Sql 传感器 (@dgomes - #12242) (传感器.sql docs)
- Set tahoma 遮盖 更新 interval to default (@thijsdejong - #12232) (遮盖.tahoma docs)
- Avoid influxdb filling connection pool (@amelchio - #12182) (influxdb docs) (breaking change)
- Force 更新 support for MQTT 二元sensor (@mkfink - #12092) (binary_sensor.MQTT docs)
- Added 密码 mode to input_text (obscure content of text box) (@covrig - #11849) (input_text docs) (传感器.xiaomi_aqara docs)
- Fix 遮盖 服务 description (@cdce8p - #12243)
- Add explicit first-time config for new purge_keep_days default (@amelchio - #12246)
- added more 调试 logging for 传感器.alpha_vantage (@ChristianKuehnel - #12249) (传感器.alpha_vantage docs)
- Add 服务 Schema to Broadlink 开关 (@maddox - #12253) (开关.broadlink docs)
- 更新 aiohttp 2.3.10 / yarl 1.1.0 (@pvizeli - #12244)
- Fix source code using Windows newline (@OttoWinter - #12248)
- miflora - fix for exception handling bug (@ChristianKuehnel - #12149) (传感器.miflora docs)
- 更新 pyhomematic to 0.1.39 (@danielperna84 - #12265) (homematic docs)
- 更新 owntracks.py (@luca-angemi - #12260) (device_tracker.owntracks docs)
- Fix for iTunes media player not updating artwork (@lexam79 - #12089) (媒体播放器.itunes docs)
- Fix duplicate entity_ids in System Monitor (@fanaticDavid - #12124) (传感器.systemmonitor docs) (breaking change)
- One bug fix and one improvement to the statistics 传感器. (@glance- - #12259) (传感器.statistics docs)
- allow wildcards in subscription (@escoand - #12247) (device_tracker.MQTT docs)
- Retry keyset cloud (@balloob - #12270) (cloud docs)
- 更新 limitlessled requirement to v1.0.9 (@vaceslav - #12275) (灯光.limitlessled docs)


