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

Feature(AC): Support new device: Central Ducted Heat Pump #467

Open
CJOWood opened this issue Jan 21, 2025 · 6 comments
Open

Feature(AC): Support new device: Central Ducted Heat Pump #467

CJOWood opened this issue Jan 21, 2025 · 6 comments
Labels
add_new_protocol enhancement New feature or request

Comments

@CJOWood
Copy link

CJOWood commented Jan 21, 2025

Device type and model (or SN)

The model can be found in Settings -> Devices & Services -> Midea AC LAN -> Devices -> Device Info
The SN can be found in Settings -> Devices & Services -> Midea AC LAN -> Add device -> Just list appliances
The SN also can be found in your SmartHome APP

The detail description of new feature

Support new device: Central Ducted Heat Pump. Currently, setup as an "Air Conditioner" (0xAC) as this seems to be the only one that actually works. I have tried "Heat Pump", "Wifi Controller Heat Pump" and "MDV Wifi Controller Heat Pump" and none of these work. My thermostat is the KJR-120N.

  "device_id": 151732605711618,
  "type": 172,
  "protocol": 3,
  "model": "00000Q15",
  "subtype": 44204,

Many of the current features do not work with this device. Also, I am getting lots of 2025-01-20 23:10:21.280 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Unidentified protocol in the debug log.

@CJOWood CJOWood added the enhancement New feature or request label Jan 21, 2025
@wuwentao
Copy link
Owner

sorry, I don't understand why you manual change device type and model info. it's a ERROR action and NOT supported feature.

please remove all these manual changed json config files and all the changed source code.

then enable debug log, discover your device, provided the full debug log file to current github issue, it should included your device type info and device SN.

there is still another solution to get these SN info, run below command in your HA core in HAOS( refer to debug doc

  1. ssh login to your HAOS
  2. enter HA Core docker in HAOS: docker exec -it homeassistant /bin/bash
  3. run command: python3 -m midealocal.cli discover --host 192.168.2.127 --get_sn (replace the IP address to your device IP)

paste the log output, device type and SN also included in the output.

@CJOWood
Copy link
Author

CJOWood commented Jan 22, 2025

Hey @wuwentao, I was modifying the device type because the AC type didn't really seem to match my device.

No manual change to the source or json file has been done.

Found devices: {151732605711618: {'device_id': 151732605711618, 'type': 172, 'ip_address': '10.0.20.101', 'port': 6444, 'model': '00000Q15', 'sn': '000000P0000000Q154B8747A2B080000', 'protocol': 3}}

Logs of device setup:

2025-01-21 19:57:29.838 DEBUG (MainThread) [midealocal.discover] All addresses for broadcast: ['10.0.20.101']
2025-01-21 19:57:29.844 DEBUG (MainThread) [midealocal.discover] Received response from ('10.0.20.101', 6445): 837000c8200f00005a5a0111b8007a800000000049dd39031601191402751000008a000000000000000001800000000057760f97999da21cc96dcdcb2a68706c7770249f4f9edb2eb4faeddb433bd3bf1ce1b8b5167cbadd27267d7939f409d2723318b1e8b3a8c696e049532f2432f3876a9dcc15a6512aaef2816e47d0a46af62b1d8bb9e5c25dba7bf8e0cc4c77944bdfb3e16e33d88768cc4c3d0658937d0bb19369bf0317b24d3a4de9e6a13106630a5cc616d03b9b767fa9690969c1a346ef721c629c1e2d2a0e3b517da2aaf0
2025-01-21 19:57:29.844 DEBUG (MainThread) [midealocal.discover] Declassified reply: 6514000a2c19000030303030303050303030303030305131353442383734374132423038303030300b6e65745f61635f324230380000870002000000000000000000ac00acac0000000054b8747a2b08150023082122000300000000000000000000000000000000000000000000000000000000000000000000
2025-01-21 19:57:29.844 DEBUG (MainThread) [midealocal.discover] Found a supported device: {'device_id': 151732605711618, 'type': 172, 'ip_address': '10.0.20.101', 'port': 6444, 'model': '00000Q15', 'sn': '000000P0000000Q154B8747A2B080000', 'protocol': 3}
2025-01-21 19:57:36.390 DEBUG (MainThread) [custom_components.midea_ac_lan.config_flow] Loaded configuration for device 151732605711618 from storage
2025-01-21 19:57:39.121 DEBUG (MainThread) [midealocal.device] [151732605711618] Connecting to 10.0.20.101:6444
2025-01-21 19:57:39.125 DEBUG (MainThread) [midealocal.device] [151732605711618] Connected
2025-01-21 19:57:39.125 DEBUG (MainThread) [midealocal.device] [151732605711618] Authentication handshaking
2025-01-21 19:57:39.172 DEBUG (MainThread) [midealocal.device] [151732605711618] Received auth response with 72 bytes: 8370004020013c467ee868ebf01dd8059953ed59deadb4b56aeaf8c910d7ea76d683d02f5d21ad2faa37b2e3fbbe3e2ae12bba508ad2fde5005f26e8e2dee52d4b88cc4825f4ca44
2025-01-21 19:57:39.173 DEBUG (MainThread) [midealocal.device] [151732605711618] Authentication success
2025-01-21 19:57:39.173 DEBUG (MainThread) [midealocal.device] [151732605711618] Authentication handshaking
2025-01-21 19:57:39.184 DEBUG (MainThread) [midealocal.device] [151732605711618] Received auth response with 72 bytes: 8370004020013c468e7ada8dc5613ac70ace7aea08bf05009c4c751e553f002d0db38b29ed597ed967484f51814237dc60e5bac871054ac3e57737173d7f81c2cd1bff2e62875347
2025-01-21 19:57:39.184 DEBUG (MainThread) [midealocal.device] [151732605711618] Authentication success
2025-01-21 19:57:39.185 DEBUG (MainThread) [midealocal.device] [151732605711618] Socket closed
2025-01-21 19:57:39.188 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Socket is None, try to connect
2025-01-21 19:57:39.190 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Connecting to 10.0.20.101:6444
2025-01-21 19:57:39.194 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Connected
2025-01-21 19:57:39.194 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Authentication handshaking
2025-01-21 19:57:39.291 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Received auth response with 72 bytes: 8370004020013c463fb4a1729a2ba467caa681d40b905445f8e1c470aea2252edca8f76eea713e30190c358fb2a9eec152573856801f5000db3ecddb29d6fbae47e0cacbb1efe01c
2025-01-21 19:57:39.292 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Authentication success
2025-01-21 19:57:39.292 DEBUG (Heat Pump) [midealocal.device] [151732605711618] refresh_status with cmds: [<midealocal.message.MessageQueryAppliance object at 0x7f1e94719710>, <midealocal.devices.ac.message.MessageQuery object at 0x7f1ef23ec6e0>, <midealocal.devices.ac.message.MessageNewProtocolQuery object at 0x7f1efec830e0>, <midealocal.devices.ac.message.MessagePowerQuery object at 0x7f1efe882b30>], check_protocol True,             device Heat Pump, type 172, model 00000Q15, subtype 44204, device_protocol: 3,             message_protocol 0, unsupported_protocol: []
2025-01-21 19:57:39.292 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dac000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f1e94719710>}, query is True
2025-01-21 19:57:41.295 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Does not supports the protocol MessageQueryAppliance, cmd {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dac000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f1e94719710>}, ignored
2025-01-21 19:57:41.295 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X41: 65>, '_message_protocol_version': 0, '_message_id': 195, 'header': 'aa20ac00000000000003', 'body': '418100ff00000000000000000000000000000000c3dd', 'message_type': 'query', 'body_type': '41', 'self': <midealocal.devices.ac.message.MessageQuery object at 0x7f1ef23ec6e0>}, query is True
2025-01-21 19:57:42.494 DEBUG (Heat Pump) [midealocal.device] [151732605711618] process message aa22ac00000000000303c00125e6a37f00308000005a2e090000000000000000c3e555 for device Heat Pump,                                 model 00000Q15, subtype 44204,                                 device protocol 3, message procol 0
2025-01-21 19:57:42.494 DEBUG (Heat Pump) [midealocal.devices.ac] [151732605711618] Received: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.C0: 192>, '_message_protocol_version': 3, '_header': 'aa22ac00000000000303', '_body': <midealocal.devices.ac.message.XC0MessageBody object at 0x7f1ed74d7570>, '_data': 'c00125e6a37f00308000005a2e090000000000000000c3e5', 'parser_list': [], 'power': True, 'mode': 1, 'target_temperature': 21.0, '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': 20.0, 'outdoor_temperature': -2.0, 'full_dust': False, 'screen_display': True, 'frost_protect': False, 'comfort_mode': True, 'header': 'aa22ac00000000000303', 'body': 'c00125e6a37f00308000005a2e090000000000000000c3e5', 'message_type': 'query', 'body_type': 'c0', 'self': <midealocal.devices.ac.message.MessageACResponse object at 0x7f1e94283b10>}
2025-01-21 19:57:42.494 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Status update: {'power': True, 'mode': 1, 'target_temperature': 21.0, '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': True, 'eco_mode': False, 'natural_wind': False, 'temp_fahrenheit': False, 'screen_display': True, 'full_dust': False, 'indoor_temperature': 20.0, 'outdoor_temperature': -2.0}
2025-01-21 19:57:42.494 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.B1: 177>, '_message_protocol_version': 0, '_message_id': 196, 'header': 'aa1aac00000000000003', 'body': 'b106420018001500170033024b00c40b', 'message_type': 'query', 'body_type': 'b1', 'self': <midealocal.devices.ac.message.MessageNewProtocolQuery object at 0x7f1efec830e0>}, query is True
2025-01-21 19:57:42.593 DEBUG (Heat Pump) [midealocal.device] [151732605711618] process message aa26ac00000000000303b10642000000180000001500110017001100330211004b001100000621 for device Heat Pump,                                 model 00000Q15, subtype 44204,                                 device protocol 3, message procol 0
2025-01-21 19:57:42.593 DEBUG (Heat Pump) [midealocal.devices.ac] [151732605711618] Received: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.B1: 177>, '_message_protocol_version': 3, '_header': 'aa26ac00000000000303', '_body': <midealocal.devices.ac.message.XBXMessageBody object at 0x7f1eb9eafd90>, '_data': 'b10642000000180000001500110017001100330211004b0011000006', 'parser_list': [], '_pack_len': <NewProtocolPackLength.FIVE: 5>, 'header': 'aa26ac00000000000303', 'body': 'b10642000000180000001500110017001100330211004b0011000006', 'message_type': 'query', 'body_type': 'b1', 'self': <midealocal.devices.ac.message.MessageACResponse object at 0x7f1e8fad6d50>}
2025-01-21 19:57:42.593 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Unidentified protocol
2025-01-21 19:57:42.593 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X41: 65>, '_message_protocol_version': 0, '_message_id': 197, 'header': 'aa11ac00000000000003', 'body': '41210144000109', 'message_type': 'query', 'body_type': '41', 'self': <midealocal.devices.ac.message.MessagePowerQuery object at 0x7f1efe882b30>}, query is True
2025-01-21 19:57:42.697 DEBUG (Heat Pump) [midealocal.device] [151732605711618] process message aa1fac00000000000303c1210144000000000000000000000000000000016b9c for device Heat Pump,                                 model 00000Q15, subtype 44204,                                 device protocol 3, message procol 0
2025-01-21 19:57:42.697 DEBUG (Heat Pump) [midealocal.devices.ac] [151732605711618] Received: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.C1: 193>, '_message_protocol_version': 3, '_header': 'aa1fac00000000000303', '_body': <midealocal.devices.ac.message.XC1MessageBody object at 0x7f1eb9eafd90>, '_data': 'c1210144000000000000000000000000000000016b', 'parser_list': [], 'total_energy_consumption': 0.0, 'current_energy_consumption': 0.0, 'realtime_power': 0.0, 'header': 'aa1fac00000000000303', 'body': 'c1210144000000000000000000000000000000016b', 'message_type': 'query', 'body_type': 'c1', 'self': <midealocal.devices.ac.message.MessageACResponse object at 0x7f1e8fad7250>}
2025-01-21 19:57:42.697 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Status update: {'total_energy_consumption': 0.0, 'current_energy_consumption': 0.0, 'realtime_power': 0.0}
2025-01-21 19:57:42.697 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.B5: 181>, '_message_protocol_version': 0, '_message_id': 198, '_additional_capabilities': False, 'header': 'aa0fac00000000000003', 'body': 'b50100c6ac', 'message_type': 'query', 'body_type': 'b5', 'self': <midealocal.devices.ac.message.MessageCapabilitiesQuery object at 0x7f1ef35d5050>}, query is False
2025-01-21 19:57:42.698 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.B5: 181>, '_message_protocol_version': 0, '_message_id': 199, '_additional_capabilities': True, 'header': 'aa10ac00000000000003', 'body': 'b5010101c734', 'message_type': 'query', 'body_type': 'b5', 'self': <midealocal.devices.ac.message.MessageCapabilitiesQuery object at 0x7f1ed7b4a350>}, query is False
2025-01-21 19:57:42.698 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Enabling device
2025-01-21 19:57:42.698 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Status update: {'available': True}
2025-01-21 19:57:42.802 DEBUG (Heat Pump) [midealocal.device] [151732605711618] process message aa29ac00000000000303b50514020109150201021a020101250207203c203c203c003402010101007b1d for device Heat Pump,                                 model 00000Q15, subtype 44204,                                 device protocol 3, message procol 0
2025-01-21 19:57:42.802 DEBUG (Heat Pump) [midealocal.devices.ac] [151732605711618] Received: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.B5: 181>, '_message_protocol_version': 3, '_header': 'aa29ac00000000000303', '_body': <midealocal.devices.ac.message.XBXMessageBody object at 0x7f1efed05470>, '_data': 'b50514020109150201021a020101250207203c203c203c003402010101007b', 'parser_list': [], '_pack_len': <NewProtocolPackLength.FOUR: 4>, 'modes': {'heat': True, 'cool': True, 'dry': True, 'auto': True}, 'header': 'aa29ac00000000000303', 'body': 'b50514020109150201021a020101250207203c203c203c003402010101007b', 'message_type': 'query', 'body_type': 'b5', 'self': <midealocal.devices.ac.message.MessageACResponse object at 0x7f1e9adc0410>}
2025-01-21 19:57:42.802 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Status update: {'modes': {'heat': True, 'cool': True, 'dry': True, 'auto': True}}
2025-01-21 19:57:42.895 DEBUG (Heat Pump) [midealocal.device] [151732605711618] process message aa2fac00000000000303b508100201051f020100300001001302010019020101390001009300010194000101000095ca for device Heat Pump,                                 model 00000Q15, subtype 44204,                                 device protocol 3, message procol 0
2025-01-21 19:57:42.895 DEBUG (Heat Pump) [midealocal.devices.ac] [151732605711618] Received: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.B5: 181>, '_message_protocol_version': 3, '_header': 'aa2fac00000000000303', '_body': <midealocal.devices.ac.message.XBXMessageBody object at 0x7f1efec830e0>, '_data': 'b508100201051f020100300001001302010019020101390001009300010194000101000095', 'parser_list': [], '_pack_len': <NewProtocolPackLength.FOUR: 4>, 'header': 'aa2fac00000000000303', 'body': 'b508100201051f020100300001001302010019020101390001009300010194000101000095', 'message_type': 'query', 'body_type': 'b5', 'self': <midealocal.devices.ac.message.MessageACResponse object at 0x7f1e9adc0410>}
2025-01-21 19:57:42.895 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Unidentified protocol
2025-01-21 19:58:12.943 DEBUG (Heat Pump) [midealocal.device] [151732605711618] refresh_status with cmds: [<midealocal.message.MessageQueryAppliance object at 0x7f1ef5b1ce50>, <midealocal.devices.ac.message.MessageQuery object at 0x7f1efeeae970>, <midealocal.devices.ac.message.MessageNewProtocolQuery object at 0x7f1e94718c20>, <midealocal.devices.ac.message.MessagePowerQuery object at 0x7f1e94718360>], check_protocol False,             device Heat Pump, type 172, model 00000Q15, subtype 44204, device_protocol: 3,             message_protocol 0, unsupported_protocol: ['MessageQueryAppliance']
2025-01-21 19:58:12.943 DEBUG (Heat Pump) [midealocal.device] [151732605711618] refresh_status with cmd: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dac000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f1ef5b1ce50>}, unsupported protocol, SKIP
2025-01-21 19:58:12.943 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X41: 65>, '_message_protocol_version': 0, '_message_id': 200, 'header': 'aa20ac00000000000003', 'body': '418100ff00000000000000000000000000000000c8fd', 'message_type': 'query', 'body_type': '41', 'self': <midealocal.devices.ac.message.MessageQuery object at 0x7f1efeeae970>}, query is True
2025-01-21 19:58:12.944 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.B1: 177>, '_message_protocol_version': 0, '_message_id': 201, 'header': 'aa1aac00000000000003', 'body': 'b106420018001500170033024b00c9f6', 'message_type': 'query', 'body_type': 'b1', 'self': <midealocal.devices.ac.message.MessageNewProtocolQuery object at 0x7f1e94718c20>}, query is True
2025-01-21 19:58:12.944 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X41: 65>, '_message_protocol_version': 0, '_message_id': 202, 'header': 'aa11ac00000000000003', 'body': '41210144000109', 'message_type': 'query', 'body_type': '41', 'self': <midealocal.devices.ac.message.MessagePowerQuery object at 0x7f1e94718360>}, query is True
2025-01-21 19:58:13.051 DEBUG (Heat Pump) [midealocal.device] [151732605711618] process message aa22ac00000000000303c00125e6a37f00308000005a2e090000000000000000c8c570 for device Heat Pump,                                 model 00000Q15, subtype 44204,                                 device protocol 3, message procol 0
2025-01-21 19:58:13.248 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Status update: {'total_energy_consumption': 0.0, 'current_energy_consumption': 0.0, 'realtime_power': 0.0}
2025-01-21 19:58:43.301 DEBUG (Heat Pump) [midealocal.device] [151732605711618] refresh_status with cmds: [<midealocal.message.MessageQueryAppliance object at 0x7f1e8fbd75b0>, <midealocal.devices.ac.message.MessageQuery object at 0x7f1ed77dd630>, <midealocal.devices.ac.message.MessageNewProtocolQuery object at 0x7f1ed77ddb00>, <midealocal.devices.ac.message.MessagePowerQuery object at 0x7f1ed77ddc50>], check_protocol False,             device Heat Pump, type 172, model 00000Q15, subtype 44204, device_protocol: 3,             message_protocol 0, unsupported_protocol: ['MessageQueryAppliance']
2025-01-21 19:58:43.301 DEBUG (Heat Pump) [midealocal.device] [151732605711618] refresh_status with cmd: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dac000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f1e8fbd75b0>}, unsupported protocol, SKIP
2025-01-21 19:58:43.301 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X41: 65>, '_message_protocol_version': 0, '_message_id': 203, 'header': 'aa20ac00000000000003', 'body': '418100ff00000000000000000000000000000000cb1f', 'message_type': 'query', 'body_type': '41', 'self': <midealocal.devices.ac.message.MessageQuery object at 0x7f1ed77dd630>}, query is True
2025-01-21 19:58:43.302 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.B1: 177>, '_message_protocol_version': 0, '_message_id': 204, 'header': 'aa1aac00000000000003', 'body': 'b106420018001500170033024b00ccc9', 'message_type': 'query', 'body_type': 'b1', 'self': <midealocal.devices.ac.message.MessageNewProtocolQuery object at 0x7f1ed77ddb00>}, query is True
2025-01-21 19:58:43.303 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Sending: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X41: 65>, '_message_protocol_version': 0, '_message_id': 205, 'header': 'aa11ac00000000000003', 'body': '41210144000109', 'message_type': 'query', 'body_type': '41', 'self': <midealocal.devices.ac.message.MessagePowerQuery object at 0x7f1ed77ddc50>}, query is True
2025-01-21 19:58:43.393 DEBUG (Heat Pump) [midealocal.device] [151732605711618] process message aa22ac00000000000303c00125e6a37f00308000005a2e090000000000000000cb270b for device Heat Pump,                                 model 00000Q15, subtype 44204,                                 device protocol 3, message procol 0
2025-01-21 19:58:43.394 DEBUG (Heat Pump) [midealocal.devices.ac] [151732605711618] Received: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.C0: 192>, '_message_protocol_version': 3, '_header': 'aa22ac00000000000303', '_body': <midealocal.devices.ac.message.XC0MessageBody object at 0x7f1ef0e1e7a0>, '_data': 'c00125e6a37f00308000005a2e090000000000000000cb27', 'parser_list': [], 'power': True, 'mode': 1, 'target_temperature': 21.0, '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': 20.0, 'outdoor_temperature': -2.0, 'full_dust': False, 'screen_display': True, 'frost_protect': False, 'comfort_mode': True, 'header': 'aa22ac00000000000303', 'body': 'c00125e6a37f00308000005a2e090000000000000000cb27', 'message_type': 'query', 'body_type': 'c0', 'self': <midealocal.devices.ac.message.MessageACResponse object at 0x7f1e9adc0050>}
2025-01-21 19:58:43.394 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Status update: {'power': True, 'mode': 1, 'target_temperature': 21.0, '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': True, 'eco_mode': False, 'natural_wind': False, 'temp_fahrenheit': False, 'screen_display': True, 'full_dust': False, 'indoor_temperature': 20.0, 'outdoor_temperature': -2.0}
2025-01-21 19:58:43.510 DEBUG (Heat Pump) [midealocal.device] [151732605711618] process message aa26ac00000000000303b10642000000180000001500110017001100330211004b001100000621 for device Heat Pump,                                 model 00000Q15, subtype 44204,                                 device protocol 3, message procol 0
2025-01-21 19:58:43.510 DEBUG (Heat Pump) [midealocal.devices.ac] [151732605711618] Received: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.B1: 177>, '_message_protocol_version': 3, '_header': 'aa26ac00000000000303', '_body': <midealocal.devices.ac.message.XBXMessageBody object at 0x7f1ed77dd630>, '_data': 'b10642000000180000001500110017001100330211004b0011000006', 'parser_list': [], '_pack_len': <NewProtocolPackLength.FIVE: 5>, 'header': 'aa26ac00000000000303', 'body': 'b10642000000180000001500110017001100330211004b0011000006', 'message_type': 'query', 'body_type': 'b1', 'self': <midealocal.devices.ac.message.MessageACResponse object at 0x7f1e9adc0050>}
2025-01-21 19:58:43.511 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Unidentified protocol
2025-01-21 19:58:43.600 DEBUG (Heat Pump) [midealocal.device] [151732605711618] process message aa1fac00000000000303c1210144000000000000000000000000000000016b9c for device Heat Pump,                                 model 00000Q15, subtype 44204,                                 device protocol 3, message procol 0
2025-01-21 19:58:43.600 DEBUG (Heat Pump) [midealocal.devices.ac] [151732605711618] Received: {'_device_type': <DeviceType.AC: 172>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.C1: 193>, '_message_protocol_version': 3, '_header': 'aa1fac00000000000303', '_body': <midealocal.devices.ac.message.XC1MessageBody object at 0x7f1ed77dd630>, '_data': 'c1210144000000000000000000000000000000016b', 'parser_list': [], 'total_energy_consumption': 0.0, 'current_energy_consumption': 0.0, 'realtime_power': 0.0, 'header': 'aa1fac00000000000303', 'body': 'c1210144000000000000000000000000000000016b', 'message_type': 'query', 'body_type': 'c1', 'self': <midealocal.devices.ac.message.MessageACResponse object at 0x7f1e9adc0050>}
2025-01-21 19:58:43.601 DEBUG (Heat Pump) [midealocal.device] [151732605711618] Status update: {'total_energy_consumption': 0.0, 'current_energy_consumption': 0.0, 'realtime_power': 0.0}

@wuwentao
Copy link
Owner

@CJOWood ok, you can't change device TYPE if you device discover as 0xAC type.

these debug log is enough, as Unidentified protocol is unspported device message protocol.
so we will try to support it in future.

@wuwentao wuwentao changed the title Support new device: Central Ducted Heat Pump Feature(AC): Support new device: Central Ducted Heat Pump Jan 22, 2025
@wuwentao
Copy link
Owner

@CJOWood after double check with your device debug log detail, your device should still have more attrs available. and you can follow readme to configure it and enable it.
confirm which feature is NOT support or which bug is NOT support.
if you want to support this Unidentified protocol, you should confirm your current device stauts and result.
thanks.

@CJOWood
Copy link
Author

CJOWood commented Jan 25, 2025

@wuwentao Thanks. I've checked the readme and enabled all the Extra Controls and Extra Sensors.

The things that work:

  • Setting Temperature
  • Current Temperature
  • Setting Mode (my app has: cool, dry, fan, auto, heat, heat+aux)
  • Aux Heating
  • Power
  • Screen Display (although toggling this doesnt do anything)
  • Prompt Tone (I turned off the sound on my thermostat earlier)
  • Setting temperature_step
  • (kinda) Comfort mode (this shows as coming on and going off every 30 seconds)

There are some controls that my Heat Pump does not support:

  • Breezeless
  • Fresh Air
  • ?Frost Protect (not sure what this is)
  • ?Indirect Wind (not sure what this is)
  • ?Natural Wind (not sure what this is)
  • Smart Eye
  • Swing Vertical
  • Swing Horizontal

Sensors that dont work (or my HP doesnt have):

  • Current Energy Consumption
  • Indoor Humidity (it has this on the thermostat but always shows 0% in HA)
  • Realtime Power
  • Total Energy Consumption
  • All 3 power_analysis_modes

Things on my app not on midea-ac-lan:

  • "Elec Heat" (honestly no sure how this is different from setting my Heat Pump to Heat+Aux

@CJOWood
Copy link
Author

CJOWood commented Jan 28, 2025

@wuwentao Can I do anything more to help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add_new_protocol enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants