I can log in using these credentials via web, MI Home app or Yandex partner integration
Server is CN or RU - both fails. Devices are registered in China server.
In logs following info (with changed tockens)
2021-11-03 16:28:44 DEBUG (SyncWorker_5) [root] Xiaomi logging in with userid s****@*****l.com
2021-11-03 16:28:44 DEBUG (SyncWorker_5) [root] Xiaomi login step 1
2021-11-03 16:28:44 DEBUG (SyncWorker_5) [root] Xiaomi login step 1 response code: 200
2021-11-03 16:28:44 DEBUG (SyncWorker_5) [root] Xiaomi login step 1 response: {"serviceParam": "{\"checkSafePhone\":false,\"checkSafeAddress\":false,\"lsrp_score\":0.0}", "qs": "%3Fsid%3Dxiaomiio%26_json%3Dtrue", "code": 70016, "description": "\u767b\u5f55\u9a8c\u8bc1\u5931\u8d25", "securityStatus": 0, "_sign": "0psXfr4fghfg9Suk3qWbRqU=", "sid": "xiaomiio", "result": "error", "captchaUrl": null, "callback": "https://sts.api.io.mi.com/sts", "location": "https://account.xiaomi.com/fe/service/login?_json=true&sid=xiaomiio&qs=%253Fsid%253Dxiaomiio%2526_json%253Dtrue&callback=https%3A%2F%2Fsts.api.io.mi.com%2Fsts&_sign=0psXfr43eNI0IX6q9Suk3qWbRqU%3D&serviceParam=%7B%22checkSafePhone%22%3Afalse%2C%22checkSafeAddress%22%3Afalse%2C%22lsrp_score%22%3A0.0%7D&showActiveX=false&theme=&needTheme=false&bizDeviceType=", "pwd": 0, "desc": "\u767b\u5f55\u9a8c\u8bc1\u5931\u8d25"}
2021-11-03 16:28:44 DEBUG (SyncWorker_5) [root] Xiaomi login step 1 sign: 0psXfr43eNI0nmISuk3qWbRqU=
2021-11-03 16:28:44 DEBUG (SyncWorker_5) [root] Xiaomi login step 2
2021-11-03 16:28:45 DEBUG (SyncWorker_5) [root] Xiaomi login step 2 response code: 200
2021-11-03 16:28:45 DEBUG (SyncWorker_5) [root] Xiaomi login step 2 response: {"notificationUrl": "https://account.xiaomi.com/identity/authStart?sid=passport&context=E-56IM3hPtE3467J8iDiQZ7FdlzMIQctBcGAPjFySB76qIYiVNH0fIJwAf0pGe0JAZQ-GBXvsl1o3z1K_jhomalsu0choyy3vlppOFMHAMZdDLuenwJWD4oXw4DHr2vKXUHZB_kMewio8BoUcoAwpSlbqSmCd9uabgRRytWNT-otD37pPm6vYIPW3XdfgdgDFGwC8U9630VVuvu3YlDOyjN0ktYOBOc513KFXQZZ7QxKko6Fxqz56jRdCL1YX5YQLWwCyzAKR-8ATpi9JRcW6itmZdmFCcHvSxqB8vGyGo2ga6fpip93zU-0JK1irkwDkP1RDNr91YZpm-7Y-DtIGoHaRX1UnqOt0NGbA-3pyPQ5_ogH5JjgIH1SfnBXVzZd1EmKltPlASk4sKL6QYsD0g-5e71LP63VnsiMvFTepsoc4fwO2Z9P3vtLw7LYYE5O_9DHjNXIfYFhHgKNddBkd5sao0O7iCBFfjCnFFquP6LWnyhm51NDgTJrj83msYKPMUxQsM4HH6qU8BHf_xts-0KNewouPZrLxcYSn_XNMxes7IS47uZn-VU-pnjl4YevEu29qU6qgixPdfVyKtUM_yaNg7vK1n6hf_fokpPh0L8sAVm6Xa6RXiYqNk1S_l3x5P7piDr15UQhWjw4hIKBJ7EoHVPDbKW5ZaXK_PUbh4iguDyRy3utLDb4tZv3WaR-w-V7hV_6iWPs11UxnZTh7hJiP5PbFw8ymRrKHXM7RZ2PAERqwt4mjDwHm51n4_zz8lQBP0vB&_locale=nl_NL", "result": "ok", "code": 0, "captchaUrl": null, "description": "\u6210\u529f", "location": "", "securityStatus": 16, "pwd": 0, "desc": "\u6210\u529f"}
2021-11-03 16:28:45 INFO (SyncWorker_5) [root] Error logging on to Xiaomi cloud (0): Cannot logon to Xiaomi cloud: 'userId'
The problem
I tried numeric, email and phone UserID for Xiaomi Cloud
I can log in using these credentials via web, MI Home app or Yandex partner integration
Server is CN or RU - both fails. Devices are registered in China server.
What version of Home Assistant Core has the issue?
core-2021.10.7
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Xiaomi MIIO
Link to integration documentation on our website
https://www.home-assistant.io/integrations/xiaomi_miio/
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response