[MIDEA] Could not get a valid token and key from the cloud
Author: CharlyoCreated Aug 27, 2026Updated Sep 28, 2026
Labelsintegration: midea
The problem
Cannot seem to include my midea Air conditioner when trying to add the midea integration.
I get the error: Could not get a valid token and key from the cloud in any case. Even when trying to log in with my username and password to the correct NetHome Plus which is the app I also use.
API uri is mapp-eu.appsmb.com
What version of Home Assistant Core has the issue?
core-2026.8.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Midea
Link to integration documentation on our website
https://www.home-assistant.io/integrations/midea/
Diagnostics information
Example YAML snippet
Anything in the logs that might be useful for us?
2026-08-27 16:45:27.504 DEBUG (MainThread) [midealocal.cloud] Midea cloud API url: https://mapp.appsmb.com/v1/user/login/id/get, data: {...
'loginAccount': '<EL_MEU_COMPTE>', 'sign': '<REDACTED>'}, response: b'{"msg":"ok","result":{"loginId":"<REDACTED>"},"errorCode":"0"}'
2026-08-27 16:45:27.572 DEBUG (MainThread) [homeassistant.components.midea] Cloud login succeeded for NetHome Plus
2026-08-27 16:45:27.643 DEBUG (MainThread) [midealocal.cloud] Midea cloud API url: https://mapp.appsmb.com/v1/appliance/user/list/get, data: {...},
response: b'{"msg":"ok","result":{"list":[{"registerTime":"Thu Aug 27 14:04:20 UTC
2026","onlineStatus":"1","type":"0xAC","homegroupId":"","userId":"<REDACTED>","tsn":"","mac":"","des":"","activeStatus":"1","homegroupCreateUserId":"","wi
fiVersion":"","name":"Aire
menjador","modelNumber":"","homegroupNumber":"","id":"153931629767756","sn":"<REDACTED>","userType":"1"}]},"errorCode":"0"}'
2026-08-27 16:45:27.684 DEBUG (MainThread) [midealocal.cloud] Midea cloud API url: https://mapp.appsmb.com/v1/iot/secure/getToken, data: {... 'udpid':
'c95499d06b1a4d0863c9e9dabc5ccf0c', 'applianceCodes': '153931629767756', 'sign': '<REDACTED>'}, response: b'{"msg":"system error","errorCode":9999}'
2026-08-27 16:45:27.684 DEBUG (MainThread) [midealocal.cloud] Response from get_keys() for appliance_id 153931629767756 with method 1: None
2026-08-27 16:45:27.725 DEBUG (MainThread) [midealocal.cloud] Midea cloud API url: https://mapp.appsmb.com/v1/iot/secure/getToken, data: {... 'udpid':
'45f663091df3242b0b30aff10ffbb689', ...}, response: b'{"msg":"system error","errorCode":9999}'
2026-08-27 16:45:27.725 DEBUG (MainThread) [midealocal.cloud] Response from get_keys() for appliance_id 153931629767756 with method 2: None
2026-08-27 16:45:27.818 DEBUG (SyncWorker_7) [midealocal.device] [153931629767756] Received auth response len 13 error, bytes: 83700005200fa5a54552524f52
2026-08-27 16:45:27.819 DEBUG (SyncWorker_7) [midealocal.device] [153931629767756] Authentication failed
2026-08-27 16:45:27.821 DEBUG (MainThread) [homeassistant.components.midea] Connect device using method 99 token/key failed
2026-08-27 16:45:27.822 DEBUG (MainThread) [homeassistant.components.midea] Can't get valid token using user credentials on NetHome Plus
[... fase 2 amb el compte predefinit ...]
2026-08-27 16:45:28.024 DEBUG (MainThread) [homeassistant.components.midea] Can't get available token from Midea server for device 153931629767756
2026-08-27 16:47:15.719 DEBUG (MainThread) [midealocal.cloud] Midea cloud API url: https://mapp.appsmb.com/v1/iot/secure/getToken, data: {...}, response:
b'{"msg":"system error","errorCode":9999}'
2026-08-27 16:47:15.848 DEBUG (MainThread) [homeassistant.components.midea] Can't get a valid token from Midea server for device 153931629767756
2026-08-27 16:47:25.183 DEBUG (MainThread) [midealocal.cloud] Midea cloud API url: https://mapp.appsmb.com/v1/iot/secure/getToken, data: {...}, response:
b'{"msg":"system error","errorCode":9999}'
2026-08-27 16:47:25.379 DEBUG (MainThread) [homeassistant.components.midea] Can't get a valid token from Midea server for device 153931629767756Additional information
No response
Source: home-assistant/core