Open andr2000 opened 4 years ago
This is the log at HA start:
Aug 17 21:37:17 a2khome python3.7[1250]: 2020-08-17 21:37:17 ERROR (MainThread) [homeassistant.components.climate] Error while setting up midea platform for climate
Aug 17 21:37:17 a2khome python3.7[1250]: Traceback (most recent call last):
Aug 17 21:37:17 a2khome python3.7[1250]: File "/home/a2k/smarthome/homeassistant/home-assistant/homeassistant/helpers/entity_platform.py", line 184, in _async_setup_platform
Aug 17 21:37:17 a2khome python3.7[1250]: await asyncio.shield(task)
Aug 17 21:37:17 a2khome python3.7[1250]: File "/home/a2k/smarthome/homeassistant/homeassistant-config/custom_components/midea/climate.py", line 73, in async_setup_platform
Aug 17 21:37:17 a2khome python3.7[1250]: device.authenticate(device_8370_only_ac_mac, device_8370_only_wifi_ssid, device_8370_only_wifi_pw)
Aug 17 21:37:17 a2khome python3.7[1250]: File "/home/a2k/smarthome/homeassistant/home-assistant/venv/lib/python3.7/site-packages/msmart/device.py", line 43, in authenticate
Aug 17 21:37:17 a2khome python3.7[1250]: self._authenticate()
Aug 17 21:37:17 a2khome python3.7[1250]: File "/home/a2k/smarthome/homeassistant/home-assistant/venv/lib/python3.7/site-packages/msmart/device.py", line 46, in _authenticate
Aug 17 21:37:17 a2khome python3.7[1250]: self._lan_service.authenticate(self._mac, self._wifi_ssid, self._wifi_pw)
Aug 17 21:37:17 a2khome python3.7[1250]: File "/home/a2k/smarthome/homeassistant/home-assistant/venv/lib/python3.7/site-packages/msmart/lan.py", line 68, in authenticate
Aug 17 21:37:17 a2khome python3.7[1250]: self._authenticate()
Aug 17 21:37:17 a2khome python3.7[1250]: File "/home/a2k/smarthome/homeassistant/home-assistant/venv/lib/python3.7/site-packages/msmart/lan.py", line 80, in _authenticate
Aug 17 21:37:17 a2khome python3.7[1250]: raise error
Aug 17 21:37:17 a2khome python3.7[1250]: File "/home/a2k/smarthome/homeassistant/home-assistant/venv/lib/python3.7/site-packages/msmart/lan.py", line 76, in _authenticate
Aug 17 21:37:17 a2khome python3.7[1250]: tcp_key = self.security.tcp_key(response, self._key)
Aug 17 21:37:17 a2khome python3.7[1250]: File "/home/a2k/smarthome/homeassistant/home-assistant/venv/lib/python3.7/site-packages/msmart/security.py", line 92, in tcp_key
Aug 17 21:37:17 a2khome python3.7[1250]: raise Exception('unexpected data length')
Aug 17 21:37:17 a2khome python3.7[1250]: Exception: unexpected data length
The previous log is for "run-time" after the climate component is added to HA
I have the same issue. Is there any solution for this? I cannot use the Integration because of this Error.
I hope for some help and an answer.
While starting HA I sometimes see:
When this happens the climate in HA is stuck in "Unavailable" state. It seems that an error on integration start is not recoverable, so one needs to restart HA