nbogojevic/homeassistant-midea-air-appliances-lan

Failed to perform handshake

Closed this issue · 1 comments

Version of the custom_component

0.9.4

Configuration

Added via UI

Describe the bug

This morning, my portable AC became unavailable and I found this in the logs after enabling debug logs to try and find out why. Even reloading or restarting Home Assistant does not fix it. Control via the NetHome Plus app still works fine.

Debug log


2024-09-08 12:33:26.664 ERROR (MainThread) [custom_components.midea_dehumidifier_lan.hub] Error 'Failed to perform handshake for 000000P0000000Q1C439605546F30000' while setting up appliance 000000P0000000Q1C439605546F30000, full configuration {'username': '*****************', 'password': '**************', 'mobile_app': 'NetHome Plus', 'include': ['0xa1', '0xac'], 'scan_interval': 15, 'debug': False, 'broadcast_address': ['255.255.255.255', '192.168.178.74'], 'devices': [{'api_version': 3, 'id': '15283211682****', 'ip_address': '192.168.178.74', 'name': 'AC', 'token_key': '****************************************************************', 'token': '********************************************************************************************************************************', 'type': '0xac', 'unique_id': '000000P0000000Q1C4396055********', 'discovery': 'LAN'}]}
Traceback (most recent call last):
  File "/mnt/dietpi_userdata/homeassistant/custom_components/midea_dehumidifier_lan/hub.py", line 210, in async_discover_device
    appliance = await self.hass.async_add_executor_job(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/homeassistant/.pyenv/versions/3.12.3/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/dietpi_userdata/homeassistant/custom_components/midea_dehumidifier_lan/util.py", line 208, in appliance_state
    return midea_beautiful_api.appliance_state(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.12/site-packages/midea_beautiful/lan.py", line 1047, in appliance_state
    appliance.identify(cloud, use_cloud)
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.12/site-packages/midea_beautiful/lan.py", line 788, in identify
    self.valid_token(cloud)
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.12/site-packages/midea_beautiful/lan.py", line 771, in valid_token
    self._authenticate()
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.12/site-packages/midea_beautiful/lan.py", line 505, in _authenticate
    raise AuthenticationError(
midea_beautiful.exceptions.AuthenticationError: Failed to perform handshake for 000000P0000000Q1C439605546F30000
2024-09-08 12:33:26.672 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.hub] Created coordinator for {'api_version': 3, 'id': '15283211682****', 'ip_address': '192.168.178.74', 'name': 'AC', 'token_key': '****************************************************************', 'token': '********************************************************************************************************************************', 'type': '0xac', 'unique_id': '000000P0000000Q1C4396055********', 'discovery': 'LAN'}
2024-09-08 12:33:26.679 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.appliance_discovery] Starting periodic discovery with interval 15 minute(s), broadcast ['255.255.255.255', '192.168.178.74'], configured ['192.168.178.74']
2024-09-08 12:33:26.679 WARNING (MainThread) [custom_components.midea_dehumidifier_lan.hub] Device may be offline or unreachable, trying again later. Unable to get state of device AC: Failed to perform handshake for 000000P0000000Q1C439605546F30000
2024-09-08 12:33:26.686 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.midea_dehumidifier_lan.climate.AirConditionerEntity'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues
2024-09-08 12:33:26.686 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.midea_dehumidifier_lan.climate.AirConditionerEntity'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues
2024-09-08 12:33:26.687 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.midea_dehumidifier_lan.climate.AirConditionerEntity'>) implements HVACMode(s): off, auto, cool, heat, dry, fan_only and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.