AlexxIT / XiaomiGateway3

Home Assistant custom component for control Xiaomi Multimode Gateway (aka Gateway 3), Xiaomi Multimode Gateway 2, Aqara Hub E1 on default firmwares over LAN
https://github.com/AlexxIT/Blog
MIT License
2.38k stars 330 forks source link

Can't login to Micloud #799

Open serhat-ozkara opened 1 year ago

serhat-ozkara commented 1 year ago

I'm getting the following:

Can't request MIoT API /home/device_list
Traceback (most recent call last):
  File "/config/custom_components/xiaomi_gateway3/core/xiaomi_cloud.py", line 181, in request
    resp = json.loads(decrypt_rc4(signed_nonce, resp))
  File "/config/custom_components/xiaomi_gateway3/core/xiaomi_cloud.py", line 276, in decrypt_rc4
    crypt(base64.b64decode(data))
  File "/usr/local/lib/python3.10/base64.py", line 87, in b64decode
    return binascii.a2b_base64(s)
binascii.Error: Incorrect padding
AlexxIT commented 1 year ago

Just wrong answer from cloud. Can't do anything with it. I can only add the ignore code.