midea-ac-py: After latest midea_ac update, airco cannot be connected

Describe the bug (描述一下问题) Hass cannot detect the airo anymore (timeout) Midea app no problem ping to internal ip adress no problem

Screenshots / Logs / Pcap File(屏幕截图/日志/抓包文件) If applicable, add screenshots or your home-assistant log file or pcap file to help explain your problem. 请提交相关截图,日志,抓包让开发者能够更快的解决问题

2021-08-12 20:05:33 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.midea_ac_21990232557284 fails
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity.py", line 446, in async_update_ha_state
    await self.async_device_update()
  File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity.py", line 654, in async_device_update
    raise exc
  File "/home/homeassistant/.homeassistant/custom_components/midea_ac/climate.py", line 133, in async_update
    await self.hass.async_add_executor_job(self._device.refresh)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.8/site-packages/msmart/device.py", line 195, in refresh
    self._send_cmd(cmd)
  File "/srv/homeassistant/lib/python3.8/site-packages/msmart/device.py", line 204, in _send_cmd
    responses = self._lan_service.appliance_transparent_send(data)
  File "/srv/homeassistant/lib/python3.8/site-packages/msmart/lan.py", line 102, in appliance_transparent_send
    response = self.request(data)
  File "/srv/homeassistant/lib/python3.8/site-packages/msmart/lan.py", line 42, in request
    self._connect()
  File "/srv/homeassistant/lib/python3.8/site-packages/msmart/lan.py", line 33, in _connect
    raise error
  File "/srv/homeassistant/lib/python3.8/site-packages/msmart/lan.py", line 30, in _connect
    self._socket.connect((self.device_ip, self.device_port))
socket.timeout: timed out

Versions (版本信息)

  • Home Assistant version: 2021.8.5
  • Midea msmart version: ce606c0

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (12 by maintainers)

Most upvoted comments

It’s ok, my mistake. <<< Version> = 0.1.27, the device naming rules have changed. >>> Sorry for the confusion 😃

No, my description is not very clear

I think that the proper description should be:

  • The ENTITY ID of the climate devices has been changed and who have any problem with an entity being “unavailable”, they should check whats the new ID name of the entity and change it in lovlace

It’s ok, my mistake. <<< Version> = 0.1.27, the device naming rules have changed. >>> Sorry for the confusion 😃

No, my description is not very clear