midea-msmart: Timeout by getting response

Hi @mac-zhou,

I am very glad that you try to connect locally! I try to connect with a normal python script with my comfee ac (Midea build)

When I try to connect I get always in lan.py line 40 response = sock.recv(512) I get always an timeout.

2020-05-19 00:07:36,137 Finalize request data: aa20ac00000000000003410000ff03ff00020000000000000000000000000004e9
2020-05-19 00:08:02,701 Connect the Device 192.168.178.116:6444 TimeOut.

I checked my ac. IP and Port is open.

my script looks like this:

#!/usr/bin/env python3
from msmart.device import device as midea_device    

device_ip = "192.168.178.116"
device_id = "19791209312906"

client = midea_device(device_ip, int(device_id))
device = client.setup()
device.refresh()

Can you help me investigating?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 47 (29 by maintainers)

Most upvoted comments

it looks like the change below?

### No.3 2020-06-10 22:10:25.631417 192.168.1.103 => 192.168.1.186
Message Type:	 SET 0x23 applianceId: -hex: 63f50000000e -int: 15393162851683
Decoded Data:	 {'power_state': True, 'operational_mode': 'Heat', 'target_temperature': 30, 'fan_speed': 'Auto', 'swing_mode': 0, 'eco_mode': False, 'turbo_mode': False, 'indoor_temperature': -25.0, 'outdoor_temperature': -25.0}

### No.7 2020-06-10 22:10:39.044716 192.168.1.103 => 192.168.1.186
Message Type:	 SET 0x23 applianceId: -hex: 63f50000000e -int: 15393162851683
Decoded Data:	 {'power_state': True, 'operational_mode': 'Cool', 'target_temperature': 30, 'fan_speed': 'Auto', 'swing_mode': 0, 'eco_mode': False, 'turbo_mode': False, 'indoor_temperature': -25.0, 'outdoor_temperature': -25.0}

### No.11 2020-06-10 22:10:42.990532 192.168.1.103 => 192.168.1.186
Message Type:	 SET 0x23 applianceId: -hex: 63f50000000e -int: 15393162851683
Decoded Data:	 {'power_state': True, 'operational_mode': 'Cool', 'target_temperature': 30, 'fan_speed': 'Auto', 'swing_mode': 0, 'eco_mode': False, 'turbo_mode': False, 'indoor_temperature': -25.0, 'outdoor_temperature': -25.0}

### No.13 2020-06-10 22:10:49.505120 192.168.1.103 => 192.168.1.186
Message Type:	 SET 0x23 applianceId: -hex: 63f50000000e -int: 15393162851683
Decoded Data:	 {'power_state': True, 'operational_mode': 'Cool', 'target_temperature': 30, 'fan_speed': 'High', 'swing_mode': 0, 'eco_mode': False, 'turbo_mode': False, 'indoor_temperature': -25.0, 'outdoor_temperature': -25.0}

### No.17 2020-06-10 22:10:51.255165 192.168.1.103 => 192.168.1.186
Message Type:	 SET 0x23 applianceId: -hex: 63f50000000e -int: 15393162851683
Decoded Data:	 {'power_state': True, 'operational_mode': 'Cool', 'target_temperature': 30, 'fan_speed': 'High', 'swing_mode': 0, 'eco_mode': False, 'turbo_mode': True, 'indoor_temperature': -25.0, 'outdoor_temperature': -25.0}

### No.19 2020-06-10 22:10:52.954043 192.168.1.103 => 192.168.1.186
Message Type:	 SET 0x23 applianceId: -hex: 63f50000000e -int: 15393162851683
Decoded Data:	 {'power_state': False, 'operational_mode': 'Cool', 'target_temperature': 30, 'fan_speed': 'High', 'swing_mode': 0, 'eco_mode': False, 'turbo_mode': False, 'indoor_temperature': -25.0, 'outdoor_temperature': -25.0}

Almost, but the indoor and outdoor temperatures are incorrect. maybe it was 25C but certainly not -25C

this’s set command not response, ignore the indoor and outdoor temperatures.