syssi / xiaomi_airconditioningcompanion

Xiaomi Mi and Aqara Air Conditioning Companion integration for Home Assistant
Apache License 2.0
398 stars 94 forks source link

Got exception while fetching the state @ version 0.98.1 #79

Closed sunkeycn closed 3 years ago

sunkeycn commented 5 years ago

错误日志: Error info:

2019-09-04 14:42:08 ERROR (MainThread) [custom_components.xiaomi_miio_airconditioningcompanion.climate] Got exception while fetching the state: {'code': -5000, 'message': 'Resp general error.'} 2019-09-04 14:42:13 WARNING (SyncWorker_0) [homeassistant.components.homekit.util] ['Auto', 'Silent', 'Favorite', 'Idle'] does not contain the speed setting off as its first element. Assuming that Auto is equivalent to 'off'. 2019-09-04 14:43:09 ERROR (MainThread) [custom_components.xiaomi_miio_airconditioningcompanion.climate] Got exception while fetching the state: {'code': -5000, 'message': 'Resp general error.'} 2019-09-04 14:44:10 ERROR (MainThread) [custom_components.xiaomi_miio_airconditioningcompanion.climate] Got exception while fetching the state: {'code': -5000, 'message': 'Resp general error.'} 2019-09-04 14:45:11 ERROR (MainThread) [custom_components.xiaomi_miio_airconditioningcompanion.climate] Got exception while fetching the state: {'code': -5000, 'message': 'Resp general error.'} 2019-09-04 14:46:12 ERROR (MainThread) [custom_components.xiaomi_miio_airconditioningcompanion.climate] Got exception while fetching the state: {'code': -5000, 'message': 'Resp general error.'}

sunkeycn commented 5 years ago

2019-09-04 16:11:21 DEBUG (MainThread) [miio.device] 192.168.10.103:54321 >>: {'id': 1, 'method': 'miIO.info', 'params': []} 2019-09-04 16:11:21 DEBUG (MainThread) [miio.device] 192.168.10.103:54321 (ts: 1970-01-01 02:48:13, id: 1) << {'result': {'life': 10093, 'token': 'b1c......', 'mac': '04:CF:8C:23:07:F8', 'fw_ver': '1.3.2_108', 'hw_ver': 'ESP32', 'uid': 44715***, 'model': 'lumi.acpartner.mcn02', 'wifi_fw_ver': 'v3.0.1-rc-109-gbbb9743-dirty', 'ap': {'rssi': -22, 'ssid': 'R7000_SUNKEY', 'primary': 10, 'bssid': '50:6A:03:A5:F7:15'}, 'netif': {'localIp': '192.168.10.103', 'mask': '255.255.255.0', 'gw': '192.168.10.1'}, 'mmfree': 64260}, 'id': 1} 2019-09-04 16:11:21 INFO (MainThread) [custom_components.xiaomi_miio_airconditioningcompanion.climate] lumi.acpartner.mcn02 1.3.2_108 ESP32 detected 2019-09-04 16:11:21 DEBUG (SyncWorker_7) [miio.device] 192.168.10.103:54321 >>: {'id': 2, 'method': 'get_model_and_state', 'params': []} 2019-09-04 16:11:21 DEBUG (SyncWorker_7) [miio.device] 192.168.10.103:54321 (ts: 1970-01-01 02:48:13, id: 2) << {'error': {'code': -5000, 'message': 'Resp general error.'}, 'id': 2} 2019-09-04 16:11:21 ERROR (MainThread) [custom_components.xiaomi_miio_airconditioningcompanion.climate] Got exception while fetching the state: {'code': -5000, 'message': 'Resp general error.'}

akubak commented 5 years ago

I'm getting a similar error. The token is definitely the correct one, as I've extracted it from the app database through querying by local IP. I did not try it on an earlier version of HASS as I've updated before setting up the component. I'm using the acpartner.v3 (New square version that's cheaper than the round one).

EDIT: At least that's what I though I was using... in the logs it shows up as lumi.acpartner.mcn02. Possibly this is related to issue #61.

syssi commented 3 years ago

Your device isn't supported right now.