Closed my5123 closed 2 weeks ago
删除了所有实体,重新自动添加了一遍还是不行,目前的问题就是一段时间后,状态不更新了,开关机、调温度等所有设置都不生效。 日志记录器: homeassistant.components.climate 来源: components/climate/init.py:371 集成: 空调 (文档, 问题) 首次出现: 14:19:04 (36 次总计出现) 上次记录: 15:19:23
Entity None (<class 'custom_components.gree2.device.Gree2Climate'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/xcy1231/Ha-GreeCentralClimate/issues Entity None (<class 'custom_components.gree2.device.Gree2Climate'>) implements HVACMode(s): auto, cool, dry, fan_only, heat, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/xcy1231/Ha-GreeCentralClimate/issues Entity xiaomi_miot.lumi_mcn02_a6c1_air_conditioner (<class 'custom_components.xiaomi_miot.climate.MiotClimateEntity'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues Entity xiaomi_miot.lumi_mcn02_a6c1_air_conditioner (<class 'custom_components.xiaomi_miot.climate.MiotClimateEntity'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues Entity xiaomi_miot.lumi_mcn02_a6c1_air_conditioner (<class 'custom_components.xiaomi_miot.climate.MiotClimateEntity'>) implements HVACMode(s): auto, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues
第一断日志是确实有个bug,不过那个逻辑分支我这边确实没走进去过,等下我改个版本你再试试,第二段看起来像是ha更新最新版本有些啥变更吧,我也升一下看看
这个bug出现在云控跟fakeserver断连的分支处理中,改了之后插件应该不会直接死掉,还会进行重新连接的尝试,能不能重连成功还是需要观察下,还有为啥云控会断开可能需要你自己查找下原因,我这里还没遇到过这个情况
感谢,我试试看
过了一夜,还是不行。开机都没反应
日志记录器: root 来源: custom_components/gree2/fake_server.py:69 集成: gree2 (文档, 问题) 首次出现: 01:04:54 (4 次总计出现) 上次记录: 09:23:54
Uncaught thread exception Traceback (most recent call last): File "/config/custom_components/gree2/fake_server.py", line 61, in receive data, host, conn.getpeername())) ^^^^^^^^^^^^^^^^^^ OSError: [Errno 107] Socket not connected
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.12/threading.py", line 1073, in _bootstrap_inner self.run() File "/usr/local/lib/python3.12/threading.py", line 1010, in run self._target(*self._args, *self._kwargs) File "/config/custom_components/gree2/fake_server.py", line 69, in receive ' Connection Exception: {} on message: {}'.format(e)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ IndexError: Replacement index 1 out of range for positional args tuple
抱歉没改好,再试试看
抱歉没改好,再试试看
不行,这次直接重启完就不能控制设备,无反应也无日志
日志应该还是有的,你看看跟custom_components同级的home-assistant.log
日志应该还是有的,你看看跟custom_components同级的home-assistant.log
这是开机的log
2024-06-25 18:02:08.949 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'gree2' calls async_track_state_change
instead of async_track_state_change_event
which is deprecated and will be removed in Home Assistant 2025.5 at custom_components/gree2/device.py, line 67: async_track_state_change(, please create a bug report at https://github.com/xcy1231/Ha-GreeCentralClimate/issues
2024-06-25 18:02:08.968 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.gree2.device.Gree2Climate'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/xcy1231/Ha-GreeCentralClimate/issues
2024-06-25 18:02:08.968 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.gree2.device.Gree2Climate'>) implements HVACMode(s): auto, cool, dry, fan_only, heat, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/xcy1231/Ha-GreeCentralClimate/issues
2024-06-25 18:02:08.979 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.gree2.device.Gree2Climate'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/xcy1231/Ha-GreeCentralClimate/issues
2024-06-25 18:02:08.979 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.gree2.device.Gree2Climate'>) implements HVACMode(s): auto, cool, dry, fan_only, heat, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/xcy1231/Ha-GreeCentralClimate/issues
2024-06-25 18:02:08.982 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.gree2.device.Gree2Climate'>) does not set ClimateEntityFeature.TURN_ON but
日志应该还是有的,你看看跟custom_components同级的home-assistant.log
重启ha实测,大约20分钟后就失效了
有效的时候日志里有记录 餐厅空调 已关闭 由服务触发 空调: Set HVAC mode
失效后就没任何记录了 .log里也没有
现在重启刚开始是可以的么?针对你上面的日志我又改了点东西,如果对于你的失效还没有解决的话,最好把你重启到失效前的完整home-assistant.log日志附上来,你这应该还是网络断连的问题,我看看有没有办法解决重新连接的问题,免得你重启。不过为什么会断连这个最好你自己查查你的网络有没有啥问题。另外你的ha版本是多少
现在重启刚开始是可以的么?针对你上面的日志我又改了点东西,如果对于你的失效还没有解决的话,最好把你重启到失效前的完整home-assistant.log日志附上来,你这应该还是网络断连的问题,我看看有没有办法解决重新连接的问题,免得你重启。不过为什么会断连这个最好你自己查查你的网络有没有啥问题。另外你的ha版本是多少
重启8分钟就不行了,log如下
2024-06-25 19:13:42.668 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration gree2 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-06-25 19:13:42.670 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration localtuya which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-06-25 19:13:42.671 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-06-25 19:13:42.671 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration state_grid which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-06-25 19:13:42.672 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ha_sidebar which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-06-25 19:13:42.673 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration iphonedetect which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-06-25 19:13:42.674 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration midea_ac_lan which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-06-25 19:13:42.675 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-06-25 19:13:42.676 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration xiaomi_miot which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-06-25 19:13:42.676 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration bemfa which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-06-25 19:13:43.807 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=(
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 603, in async_render
render_result = _render_with_context(self.template, compiled, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2616, in _render_with_context
return template.render(kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1304, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 939, in handle_exception
raise rewrite_traceback_stack(source=source)
File "", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1877, in forgiving_round
raise_no_default("round", value)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1853, in raise_no_default
raise ValueError(
ValueError: Template error: round got invalid input 'unknown' when rendering template '
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 715, in async_render_to_info render_info._result = self.async_render( # noqa: SLF001 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 605, in async_render raise TemplateError(err) from err homeassistant.exceptions.TemplateError: ValueError: Template error: round got invalid input 'unknown' when rendering template '
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 603, in async_render
render_result = _render_with_context(self.template, compiled, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2616, in _render_with_context
return template.render(kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1304, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 939, in handle_exception
raise rewrite_traceback_stack(source=source)
File "", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1877, in forgiving_round
raise_no_default("round", value)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1853, in raise_no_default
raise ValueError(
ValueError: Template error: round got invalid input 'unknown' when rendering template '
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 715, in async_render_to_info render_info._result = self.async_render( # noqa: SLF001 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 605, in async_render raise TemplateError(err) from err homeassistant.exceptions.TemplateError: ValueError: Template error: round got invalid input 'unknown' when rendering template '
2024-06-25 19:13:51.490 WARNING (MainThread) [homeassistant.components.climate] Entity xiaomi_miot.lumi_mcn02_a6c1_air_conditioner (<class 'custom_components.xiaomi_miot.climate.MiotClimateEntity'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues 2024-06-25 19:13:51.490 WARNING (MainThread) [homeassistant.components.climate] Entity xiaomi_miot.lumi_mcn02_a6c1_air_conditioner (<class 'custom_components.xiaomi_miot.climate.MiotClimateEntity'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues 2024-06-25 19:13:51.490 WARNING (MainThread) [homeassistant.components.climate] Entity xiaomi_miot.lumi_mcn02_a6c1_air_conditioner (<class 'custom_components.xiaomi_miot.climate.MiotClimateEntity'>) implements HVACMode(s): auto, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues 2024-06-25 19:13:58.841 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform state_grid is taking over 10 seconds. 2024-06-25 19:13:59.392 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% set T = states('sensor.zhu_wo_wen_shi_du_ji_temperature') | float %} {% set H = states('sensor.zhu_wo_wen_shi_du_ji_humidity') | float %} {{(0.81T+0.01H(0.99T-14.3)+2)|round(1)}}) renders=2> Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2239, in forgiving_float_filter return float(value) ^^^^^^^^^^^^ ValueError: could not convert string to float: 'unknown'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 603, in async_render render_result = _render_with_context(self.template, compiled, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2616, in _render_with_context return template.render(kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1304, in render self.environment.handle_exception() File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 939, in handle_exception raise rewrite_traceback_stack(source=source) File "", line 1, in top-level template code File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2242, in forgiving_float_filter raise_no_default("float", value) File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1853, in raise_no_default raise ValueError( ValueError: Template error: float got invalid input 'unknown' when rendering template '{% set T = states('sensor.zhu_wo_wen_shi_du_ji_temperature') | float %} {% set H = states('sensor.zhu_wo_wen_shi_du_ji_humidity') | float %} {{(0.81T+0.01H(0.99T-14.3)+2)|round(1)}}' but no default was specified
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 715, in async_render_to_info render_info._result = self.async_render( # noqa: SLF001 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 605, in async_render raise TemplateError(err) from err homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unknown' when rendering template '{% set T = states('sensor.zhu_wo_wen_shi_du_ji_temperature') | float %} {% set H = states('sensor.zhu_wo_wen_shi_du_ji_humidity') | float %} {{(0.81T+0.01H(0.99T-14.3)+2)|round(1)}}' but no default was specified 2024-06-25 19:13:59.397 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unknown' when rendering template '{% set T = states('sensor.zhu_wo_wen_shi_du_ji_temperature') | float %} {% set H = states('sensor.zhu_wo_wen_shi_du_ji_humidity') | float %} {{(0.81T+0.01H(0.99T-14.3)+2)|round(1)}}' but no default was specified') while processing template 'Template<template=({% set T = states('sensor.zhu_wo_wen_shi_du_ji_temperature') | float %} {% set H = states('sensor.zhu_wo_wen_shi_du_ji_humidity') | float %} {{(0.81T+0.01H(0.99T-14.3)+2)|round(1)}}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.bodytemperature_12yan' 2024-06-25 19:13:59.398 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% set st = states('sensor.miaomiaoce_t2_3691_temperature_humidity_sensor') | float %} {% set sh = states('sensor.miaomiaoce_t2_3691_relative_humidity') | float %} {{(st1.07 + sh/5006.105*e*(st17.27/(st+237.7)) - 3)|round(1)}}) renders=2> Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2239, in forgiving_float_filter return float(value) ^^^^^^^^^^^^ ValueError: could not convert string to float: 'unavailable'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 603, in async_render render_result = _render_with_context(self.template, compiled, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2616, in _render_with_context return template.render(kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1304, in render self.environment.handle_exception() File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 939, in handle_exception raise rewrite_traceback_stack(source=source) File "", line 1, in top-level template code File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2242, in forgiving_float_filter raise_no_default("float", value) File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1853, in raise_no_default raise ValueError( ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% set st = states('sensor.miaomiaoce_t2_3691_temperature_humidity_sensor') | float %} {% set sh = states('sensor.miaomiaoce_t2_3691_relative_humidity') | float %} {{(st1.07 + sh/5006.105*e*(st17.27/(st+237.7)) - 3)|round(1)}}' but no default was specified
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 715, in async_render_to_info render_info._result = self.async_render( # noqa: SLF001 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 605, in async_render raise TemplateError(err) from err homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% set st = states('sensor.miaomiaoce_t2_3691_temperature_humidity_sensor') | float %} {% set sh = states('sensor.miaomiaoce_t2_3691_relative_humidity') | float %} {{(st1.07 + sh/5006.105*e(st17.27/(st+237.7)) - 3)|round(1)}}' but no default was specified 2024-06-25 19:13:59.401 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% set st = states('sensor.miaomiaoce_t2_3691_temperature_humidity_sensor') | float %} {% set sh = states('sensor.miaomiaoce_t2_3691_relative_humidity') | float %} {{(st1.07 + sh/5006.105e(st17.27/(st+237.7)) - 3)|round(1)}}' but no default was specified') while processing template 'Template<template=({% set st = states('sensor.miaomiaoce_t2_3691_temperature_humidity_sensor') | float %} {% set sh = states('sensor.miaomiaoce_t2_3691_relative_humidity') | float %} {{(st1.07 + sh/5006.105e*(st17.27/(st+237.7)) - 3)|round(1)}}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.bodytemperature_weststreet' 2024-06-25 19:13:59.401 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% set T = states('sensor.miaomiaoce_t9_0a3b_temperature_humidity_sensor') | float %} {% set H = states('sensor.miaomiaoce_t9_0a3b_relative_humidity') | float %} {{(0.81T+0.01H(0.99T-14.3)+2)|round(1)}}) renders=2> Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2239, in forgiving_float_filter return float(value) ^^^^^^^^^^^^ ValueError: could not convert string to float: 'unavailable'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 603, in async_render render_result = _render_with_context(self.template, compiled, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2616, in _render_with_context return template.render(kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1304, in render self.environment.handle_exception() File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 939, in handle_exception raise rewrite_traceback_stack(source=source) File "", line 1, in top-level template code File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2242, in forgiving_float_filter raise_no_default("float", value) File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1853, in raise_no_default raise ValueError( ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% set T = states('sensor.miaomiaoce_t9_0a3b_temperature_humidity_sensor') | float %} {% set H = states('sensor.miaomiaoce_t9_0a3b_relative_humidity') | float %} {{(0.81T+0.01H(0.99T-14.3)+2)|round(1)}}' but no default was specified
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 715, in async_render_to_info render_info._result = self.async_render( # noqa: SLF001 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 605, in async_render raise TemplateError(err) from err homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% set T = states('sensor.miaomiaoce_t9_0a3b_temperature_humidity_sensor') | float %} {% set H = states('sensor.miaomiaoce_t9_0a3b_relative_humidity') | float %} {{(0.81T+0.01H(0.99T-14.3)+2)|round(1)}}' but no default was specified 2024-06-25 19:13:59.404 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{% set T = states('sensor.miaomiaoce_t9_0a3b_temperature_humidity_sensor') | float %} {% set H = states('sensor.miaomiaoce_t9_0a3b_relative_humidity') | float %} {{(0.81T+0.01H(0.99T-14.3)+2)|round(1)}}' but no default was specified') while processing template 'Template<template=({% set T = states('sensor.miaomiaoce_t9_0a3b_temperature_humidity_sensor') | float %} {% set H = states('sensor.miaomiaoce_t9_0a3b_relative_humidity') | float %} {{(0.81T+0.01H(0.99T-14.3)+2)|round(1)}}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.bodytemperature_weststreet3' 2024-06-25 19:14:05.083 WARNING (MainThread) [custom_components.nodered.sensor] Sensor ram_used has category 'config' which is not supported 2024-06-25 19:14:05.961 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x07\x13\x01'
^
2024-06-25 19:14:05.977 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xd3\x01'
^
2024-06-25 19:14:07.913 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xb3\x01'
^
2024-06-25 19:14:07.930 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xd3\x01'
^
2024-06-25 19:14:23.451 WARNING (MainThread) [homeassistant.components.light] light.dmaker_p5c_8b22_indicator_light (<class 'custom_components.xiaomi_miot.light.MiotLightSubEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues 2024-06-25 19:14:48.627 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xb3\x01'
^
2024-06-25 19:14:48.643 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xf3\x01'
^
2024-06-25 19:15:35.621 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xf3\x01'
^
2024-06-25 19:15:35.636 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x07\x13\x01'
^
2024-06-25 19:15:54.941 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xf3\x01'
^
2024-06-25 19:15:54.957 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xf3\x01'
^
2024-06-25 19:16:06.910 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xb3\x01'
^
2024-06-25 19:16:06.925 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xd3\x01'
^
2024-06-25 19:16:56.404 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xb3\x01'
^
2024-06-25 19:16:56.417 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x07\x13\x01'
^
2024-06-25 19:20:44.700 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xf3\x01'
^
2024-06-25 19:20:44.714 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xf3\x01'
^
2024-06-25 19:21:03.385 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x06\xf3\x01'
^
2024-06-25 19:21:03.402 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message: Invalid method encountered:
b'\x16\x03\x01\x07\x13\x01'
^
HA是最新版,云控是在线的,从HA的teminal ping dis.gree.com,可以反馈fake server的地址(HA主机)
logger: default: warning logs: custom_components.gree2: debug custom_components.gree2.climate: debug debug日志好像没打开,日志应该不止这么多,最好文件方式传一下试试
logger: default: warning logs: custom_components.gree2: debug custom_components.gree2.climate: debug debug日志好像没打开,日志应该不止这么多,最好文件方式传一下试试
完整的log已发您GMAIL,谢谢
确实有个bug,你再试试看
目前无碍,再观察观察,太感谢了。
时间长了还是不行…………
@my5123 试试没有fake_server的旧版本看看,在HA新版本出问题了,我更新了下,自用没问题,你试试:https://github.com/gilbert0571/Ha-GreeCentralClimate/tree/no-fake-server/custom_components/gree2; PS:第一次注册实体报超时错误,需要重启一次HA。怀疑第一次发现设备花时太久的原因。
@my5123 试试没有fake_server的旧版本看看,在HA新版本出问题了,我更新了下,自用没问题,你试试:https://github.com/gilbert0571/Ha-GreeCentralClimate/tree/no-fake-server/custom_components/gree2; PS:第一次注册实体报超时错误,需要重启一次HA。怀疑第一次发现设备花时太久的原因。
我试试,谢谢
日志再贴一个呢
日志再贴一个呢
用会上一楼的旧版,真的一切正常好几天了,并且不用阉割掉格力app
理论上来说不配fakeserver就是使用旧版的连接方式,估计你云控的固件比较老,那还是用旧版比较好,我这边新的固件必须要用fakeserver,也没办法退回去给你调试,能用就行吧
理论上来说不配fakeserver就是使用旧版的连接方式,估计你云控的固件比较老,那还是用旧版比较好,我这边新的固件必须要用fakeserver,也没办法退回去给你调试,能用就行吧
云控已经升到V20最新的了,此前用老版本插件也是有问题,现在却好了
又有新固件了么,回头我看看
又有新固件了么,回头我看看
V20已经很久前的了
日志记录器: root 来源: custom_components/gree2/fake_server.py:69 集成: gree2 (文档, 问题) 首次出现: 07:08:06 (2 次总计出现) 上次记录: 10:27:48
Uncaught thread exception Traceback (most recent call last): File "/config/custom_components/gree2/fake_server.py", line 57, in receive data = conn.recv(65535) ^^^^^^^^^^^^^^^^ ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.12/threading.py", line 1073, in _bootstrap_inner self.run() File "/usr/local/lib/python3.12/threading.py", line 1010, in run self._target(*self._args, *self._kwargs) File "/config/custom_components/gree2/fake_server.py", line 69, in receive ' Connection Exception: {} on message: {}'.format(e, str(data))) ^^^^ UnboundLocalError: cannot access local variable 'data' where it is not associated with a value