Midea AC timeout

Hi,
My HASS instalation:

I’m trying to use the “Midea Aircon” integration with HACS but I still get a “timeout” error.

The Wifi module is “OSK-103”

configuration:

climate:
  - platform: midea
    app_key: 3742e9e5842d4ad59c2db887e12449f9
    username: '[email protected]'
    password: !secret midea_password

Here is my log:

Update for climate.midea_18691697883668 fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/lib/python3.8/http/client.py", line 1344, in getresponse
    response.begin()
  File "/usr/local/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/local/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/local/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 532, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py", line 770, in reraise
    raise value
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 447, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 336, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='mapp.appsmb.com', port=443): Read timed out. (read timeout=9)

I used curl to check the connection and it’s OK

~ $ curl https://mapp.appsmb.com
{"errorCode":"0","msg":"基类controller","result":"com.midea.smart.basehttp.controller.BaseController"}

Has anyone had the same problem?

Regards
M@rek

Same Problem Here!
What’s your installation type? (mine is in Docker on Debian VM).
Does adding a use_fan_workaround to configuration.yaml change anything?

  • platform: midea
    app_key: 3742e9e5842d4ad59c2db887e12449f9
    username: [email protected]
    password: xxxxx
    use_fan_only_workaround: true

Maybe someone knows if ssl certificate is needed in HA to resolve this problem?

The workaround changed nothing.

“Maybe someone knows if ssl certificate is needed in HA to resolve this problem?”
Certificate will not solve this problem. “https://mapp.appsmb.com” site has valid certificate. Our HASS not need cert.

MR

Same issue still happening; any update on the solution?