Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug(AC): 美的柜机 KFR-72L/N8KS1-1P 报告了错误的湿度 #514

Open
scegg opened this issue Feb 28, 2025 · 20 comments
Open

Bug(AC): 美的柜机 KFR-72L/N8KS1-1P 报告了错误的湿度 #514

scegg opened this issue Feb 28, 2025 · 20 comments
Labels
bug Something isn't working

Comments

@scegg
Copy link

scegg commented Feb 28, 2025

HA版本

No response

集成版本

0.6.6

之前可正常使用的集成版本

0

设备类型及型号

Air Conditioner 22251637 (32773) by Midea

使用的App

美的美居

问题/Bug详细描述

在美的美居中,此空调不会显示湿度信息。
但本插件会把湿度信息报告给HA,且值明显与家中其他传感器的值不同。(报告30%,其他传感器60%+)。

不涉及操作log,因此没有log。

The logs

No response

@scegg scegg added the bug Something isn't working label Feb 28, 2025
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: Midea Cabinet KFR-72L/N8KS1-1P Reports the wrong humidity

HA version

No response

Integrated Version

0.6.6

The integrated version that was previously available

0

Equipment type and model

Air Conditioner 22251637 (32773) by Midea

Apps used

Beautiful beauty

Detailed description of the problem/bug

In Midea Meizu, this air conditioner will not display humidity information.
However, this plug-in will report humidity information to HA, and the value is obviously different from the values ​​of other sensors in the home. (Report 30%, other sensors 60%+).

No operation log involves, so there is no log.

The logs

No response

@scegg
Copy link
Author

scegg commented Feb 28, 2025

After reading https://github.com/wuwentao/midea_ac_lan/blob/master/doc/AC.md, I still don't know whether could I set something as "customize" to disable humidity.

@wuwentao
Copy link
Owner

wuwentao commented Mar 3, 2025

@scegg 编辑Extra sensor/额外的传感器,取消室内湿度/indoor humidity,重启,看看是否可以解决问题?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@scegg Edit Extra sensor/extra sensor, cancel indoor humidity/indoor humidity, restart, see if it can solve the problem?

@scegg
Copy link
Author

scegg commented Mar 3, 2025

@scegg 编辑Extra sensor/额外的传感器,取消室内湿度/indoor humidity,重启,看看是否可以解决问题?

目前全都没有选择(默认值)。

将indoor humidity外的其他值都选择后,重启HA,问题依旧。而且还增加了新的entities。

Image

目前,climate提供了所有属性(包括indoor humidity)。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@scegg Edit Extra sensor/extra sensor, cancel indoor humidity/indoor humidity, restart, see if it can solve the problem?

There is no choice at present (default).

After selecting all other values ​​outside the indoor humidity, restarting HA, the problem remains. And new entities have been added.

Image

@wuwentao
Copy link
Owner

wuwentao commented Mar 3, 2025

仍然需要提供一下debug log,我需要确认一下你这个30%怎么来的,目前看,HA默认值好像是30%最小。
@scegg

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I still need to provide a debug log. I need to confirm how you got this 30%. At present, the default value of HA seems to be 30% minimum.
@scegg

@scegg
Copy link
Author

scegg commented Mar 3, 2025

仍然需要提供一下debug log,我需要确认一下你这个30%怎么来的,目前看,HA默认值好像是30%最小。 @scegg

好的。如何获取需要的log?
HA运行在HA Green硬件。目前已经激活Debug Logging

Image

Update: 正在修改configuration.yaml打开debug log……

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I still need to provide a debug log. I need to confirm how you got this 30%. At present, the default value of HA seems to be 30% minimum. @scegg

OK How to get the required log?
HA runs on HA Green hardware.

@scegg
Copy link
Author

scegg commented Mar 3, 2025

home-assistant_2025-03-03T06-02-25.790Z.log

Log文件。

@wuwentao
Copy link
Owner

wuwentao commented Mar 3, 2025

看了一下log,有多台AC空调设备,一台StudyAirCon是0:

�[36m2025-03-03 13:54:50.532 DEBUG (StudyAirCon) [midealocal.devices.ac] [208907219739664] Received: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.B1: 177>, '_message_protocol_version': 8, '_header': 'aa57ac00000000000803', '_body': <midealocal.devices.ac.message.XBXMessageBody object at 0xffff479ec260>, '_data': 'b10742000001011800110015000001001700000164330211004b0011007e00002aa01b42667f7f0000000800000000000000000000000000e0000000000000000000800000000000006402006a', 'parser_list': [], '_pack_len': <NewProtocolPackLength.FIVE: 5>, 'indirect_wind': False, 'indoor_humidity': 0, 'screen_display_alternate': True, 'screen_display_new': True, 'header': 'aa57ac00000000000803', 'body': 'b10742000001011800110015000001001700000164330211004b0011007e00002aa01b42667f7f0000000800000000000000000000000000e0000000000000000000800000000000006402006a', 'message_type': 'query', 'body_type': 'b1', 'self': <midealocal.devices.ac.message.MessageACResponse object at 0xffff47c77610>}�[0m
�[36m2025-03-03 13:54:50.532 DEBUG (StudyAirCon) [midealocal.device] [208907219739664] Status update: {'screen_display_alternate': True, 'indirect_wind': False, 'indoor_humidity': 0}�[0m
�[36m2025-03-03 13:54:50.634 DEBUG (StudyAirCon) [midealocal.device] [208907219739664] process message aa20ac00000000000803c12101440000454400000000000000000016600001a161 for device StudyAirCon,                                 model 22040079, subtype 0,                                 device protocol 3, message procol 8�[0m

不过这台Living Room AirCon确实解析成30了:

�[36m2025-03-03 13:54:32.053 DEBUG (Living Room AirCon) [midealocal.devices.ac] [210006729613682] Received: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.B1: 177>, '_message_protocol_version': 8, '_header': 'aa5eac00000000000803', '_body': <midealocal.devices.ac.message.XBXMessageBody object at 0xffff410e3c20>, '_data': 'b10742000001011800000100150000011e1700000164330211004b0000030000e77e00002da00840277f7f00000008000000000000000000000000002000000000000000000000000000000000620900002400d8', 'parser_list': [], '_pack_len': <NewProtocolPackLength.FIVE: 5>, 'indirect_wind': False, 'indoor_humidity': 30, 'breezeless': False, 'screen_display_alternate': True, 'screen_display_new': True, 'fresh_air_2': True, 'fresh_air_power': False, 'fresh_air_fan_speed': 0, 'header': 'aa5eac00000000000803', 'body': 'b10742000001011800000100150000011e1700000164330211004b0000030000e77e00002da00840277f7f00000008000000000000000000000000002000000000000000000000000000000000620900002400d8', 'message_type': 'query', 'body_type': 'b1', 'self': <midealocal.devices.ac.message.MessageACResponse object at 0xffff54f616d0>}�[0m
�[36m2025-03-03 13:54:32.054 DEBUG (Living Room AirCon) [midealocal.device] [210006729613682] Status update: {'screen_display_alternate': True, 'indirect_wind': False, 'indoor_humidity': 30, 'breezeless': False, 'fresh_air_power': False, 'fresh_air_fan_speed': 0, 'fresh_air_2': True, 'fresh_air_mode': 'Off', 'screen_display': False}�[0m
�[36m2025-03-03 13:54:32.154 DEBUG (Living Room AirCon) [midealocal.device] [210006729613682] process message aa20ac00000000000803c12101440003185000000000000000000000100001a5e1 for device Living Room AirCon,                                 model 22251637, subtype 32773,                                 device protocol 3, message procol 8�[0m

解析成0的应该是默认值,解析成30这个,应该是出错了。

这个湿度,有的空调是支持,所以就加上了,导致不支持的空调就显示0或者解析错误的设备就显示错误的结果了。

AC空调的设备子类型和调节分叉太多了,一直也没顾上处理,就比如上面2款空调的结果。
修改或增加新功能,基本都会引入一堆相关的bug,设备子类比较多。

需要您的设备SN信息,针对这个子类型,去看如何修改或者是加不同的if/else分支,还得保证工作正常的设备仍然使用此功能(可以直接参考debug里面的方法获取SN)。

类似issue: #502

@wuwentao wuwentao changed the title 美的柜机 KFR-72L/N8KS1-1P 报告了错误的湿度 Bug(AC): 美的柜机 KFR-72L/N8KS1-1P 报告了错误的湿度 Mar 3, 2025
@scegg
Copy link
Author

scegg commented Mar 3, 2025

Living Room AirCon:

2025-03-03 15:13:34.767 INFO (MainThread) [cli] Found 1 devices.
2025-03-03 15:13:34.768 INFO (MainThread) [cli] Found devices: {210006729613682: {'device_id': 210006729613682, 'type': 172, 'ip_address': '10.252.252.58', 'port': 6444, 'model': '22251637', 'sn': '00000051122251637470605100690000', 'protocol': 3}

Study AirCon:

2025-03-03 15:16:18.054 INFO (MainThread) [cli] Found 1 devices.
2025-03-03 15:16:18.055 INFO (MainThread) [cli] Found devices: {208907219739664: {'device_id': 208907219739664, 'type': 172, 'ip_address': '10.252.252.78', 'port': 6444, 'model': '22040079', 'sn': '00000051222040079492805201110000', 'protocol': 3}}

@sunxin696
Copy link

sunxin696 commented Mar 3, 2025

我也是同样的问题,显示湿度固定为50%,SN:'00000031122251189222007M04560000,暂时的解决办法是删除了climate.py中的湿度部分

日志如下

2025-02-23 21:15:36.153 DEBUG (锐云) [midealocal.device] [197912093403043] refresh_status with cmds: [<midealocal.devices.ac.message.MessageQuery object at 0x7fa470ba8ec0>, <midealocal.devices.ac.message.MessageNewProtocolQuery object at 0x7fa470baacf0>, <midealocal.devices.ac.message.MessagePowerQuery object at 0x7fa470bd8910>], check_protocol False,             device 锐云, type 172, model 22251189, subtype 32773, device_protocol: 3,             message_protocol 8, unsupported_protocol: []
2025-02-23 21:15:36.154 DEBUG (锐云) [midealocal.device] [197912093403043] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X41: 65>, '_message_protocol_version': 8, '_message_id': 120, 'header': 'aa20ac00000000000803', 'body': '418100ff0000000000000000000000000000000078cf', 'message_type': 'query', 'body_type': '41', 'self': <midealocal.devices.ac.message.MessageQuery object at 0x7fa470ba8ec0>}, query is True
2025-02-23 21:15:36.159 DEBUG (锐云) [midealocal.device] [197912093403043] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.B1: 177>, '_message_protocol_version': 8, '_message_id': 121, 'header': 'aa1aac00000000000803', 'body': 'b106420018001500170033024b0079c4', 'message_type': 'query', 'body_type': 'b1', 'self': <midealocal.devices.ac.message.MessageNewProtocolQuery object at 0x7fa470baacf0>}, query is True
2025-02-23 21:15:36.161 DEBUG (锐云) [midealocal.device] [197912093403043] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X41: 65>, '_message_protocol_version': 8, '_message_id': 122, 'header': 'aa11ac00000000000803', 'body': '41210144000109', 'message_type': 'query', 'body_type': '41', 'self': <midealocal.devices.ac.message.MessagePowerQuery object at 0x7fa470bd8910>}, query is True
2025-02-23 21:15:36.557 DEBUG (锐云) [midealocal.device] [197912093403043] process message aa2aac00000000000803c00095667f7f000000000052ff09005700000080000000005802000010ff78b4a0 for device 锐云,                                 model 22251189, subtype 32773,                                 device protocol 3, message procol 8
2025-02-23 21:15:36.558 DEBUG (锐云) [midealocal.devices.ac] [197912093403043] Received: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.C0: 192>, '_message_protocol_version': 8, '_header': 'aa2aac00000000000803', '_body': <midealocal.devices.ac.message.XC0MessageBody object at 0x7fa476969ae0>, '_data': 'c00095667f7f000000000052ff09005700000080000000005802000010ff78b4', 'parser_list': [], 'power': False, 'mode': 4, 'target_temperature': 21.5, 'fan_speed': 102, 'swing_vertical': False, 'swing_horizontal': False, 'boost_mode': False, 'smart_eye': False, 'natural_wind': False, 'dry': False, 'eco_mode': False, 'aux_heating': False, 'temp_fahrenheit': False, 'sleep_mode': False, 'indoor_temperature': 16.7, 'outdoor_temperature': None, 'full_dust': False, 'screen_display': False, 'frost_protect': False, 'comfort_mode': False, 'header': 'aa2aac00000000000803', 'body': 'c00095667f7f000000000052ff09005700000080000000005802000010ff78b4', 'message_type': 'query', 'body_type': 'c0', 'self': <midealocal.devices.ac.message.MessageACResponse object at 0x7fa471f6b9d0>}
2025-02-23 21:15:36.559 DEBUG (锐云) [midealocal.device] [197912093403043] Status update: {'power': False, 'mode': 4, 'target_temperature': 21.5, 'fan_speed': 102, 'swing_vertical': False, 'swing_horizontal': False, 'smart_eye': False, 'dry': False, 'aux_heating': False, 'boost_mode': False, 'sleep_mode': False, 'frost_protect': False, 'comfort_mode': False, 'eco_mode': False, 'natural_wind': False, 'temp_fahrenheit': False, 'screen_display': False, 'full_dust': False, 'indoor_temperature': 16.7, 'outdoor_temperature': None, 'indirect_wind': False}
2025-02-23 21:15:36.743 DEBUG (锐云) [midealocal.device] [197912093403043] process message aa2aac00000000000803b1064200000101180000010015000001321700000164330200004b00000000c205 for device 锐云,                                 model 22251189, subtype 32773,                                 device protocol 3, message procol 8
2025-02-23 21:15:36.743 DEBUG (锐云) [midealocal.devices.ac] [197912093403043] Received: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.B1: 177>, '_message_protocol_version': 8, '_header': 'aa2aac00000000000803', '_body': <midealocal.devices.ac.message.XBXMessageBody object at 0x7fa470d7bc80>, '_data': 'b1064200000101180000010015000001321700000164330200004b00000000c2', 'parser_list': [], '_pack_len': <NewProtocolPackLength.FIVE: 5>, 'indirect_wind': False, 'indoor_humidity': 50, 'breezeless': False, 'screen_display_alternate': True, 'screen_display_new': True, 'header': 'aa2aac00000000000803', 'body': 'b1064200000101180000010015000001321700000164330200004b00000000c2', 'message_type': 'query', 'body_type': 'b1', 'self': <midealocal.devices.ac.message.MessageACResponse object at 0x7fa471f6b9d0>}
2025-02-23 21:15:36.744 DEBUG (锐云) [midealocal.device] [197912093403043] Status update: {'screen_display_alternate': True, 'indirect_wind': False, 'indoor_humidity': 50, 'breezeless': False, 'screen_display': False}
2025-02-23 21:15:36.897 DEBUG (锐云) [midealocal.device] [197912093403043] process message aa20ac00000000000803c12101440000000000000000000000000000000001df22 for device 锐云,                                 model 22251189, subtype 32773,                                 device protocol 3, message procol 8

@scegg
Copy link
Author

scegg commented Mar 4, 2025

如果能用customize允许关闭部分内部传感器也许可行?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


If you can use customize to allow the partial internal sensor to be turned off, it may be possible?

@wuwentao
Copy link
Owner

wuwentao commented Mar 4, 2025

如果能用customize允许关闭部分内部传感器也许可行?

不行,customize是控制的midea-local里面的数据,这个是在HA的midea_ac_lan,属于二个不同的范围,应该是控制不了(或者有啥复杂的办法,具体我没太关注,这是二个不同的范围)。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


If you can use customize to allow the partial internal sensor to be turned off, it may be possible?

No, customize is the data in the midea-local controlled by the control. This is in the midea_ac_lan of HA. It belongs to two different ranges and should not be controlled (or there are any complicated methods, I didn't pay much attention to the specific ones, these are two different ranges).

@GavinIves
Copy link

确实存在这个问题 但是我咋记得以前的版本不会自动把湿度勾选
而且以前在配置项中把湿度去掉 空调就没有这个显示了 但是现在貌似不行 即使不勾选空调也会一直显示湿度为0

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This problem does exist, but how do I remember that the previous version will not automatically check the humidity
And in the past, the humidity was removed in the configuration item, but this was not displayed in the air conditioner, but now it seems that it is not possible. Even if the air conditioner is not checked, the humidity will always be displayed as 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants