Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有偿求助,走到micli.py list走不下去了 #100

Closed
sanzhier82 opened this issue Mar 10, 2023 · 25 comments
Closed

有偿求助,走到micli.py list走不下去了 #100

sanzhier82 opened this issue Mar 10, 2023 · 25 comments

Comments

@sanzhier82
Copy link

走到micli.py list总是获取不了did ,报错似乎是说登录不成功,但我确保小米的账号密码肯定是正确的。
用的是mac,哪位大大能帮忙解决下, 有偿求助。
联系wx: w-nielei

@frostming
Copy link
Collaborator

可能是触发了登录二次验证,你试试先在同一台机器上登录 https://account.xiaomi.com/

@sanzhier82
Copy link
Author

我一会再回去试试。我记得是先在网页版本上登录过小米账户的。

@Dakaimen
Copy link

俺也一样,请问 command not found 要咋整

Simon@Simons-MBP ChatGPT-MiSpeaker % micli.py list
/Library/Frameworks/Python.framework/Versions/3.11/bin/micli.py: line 1: from: command not found
/Library/Frameworks/Python.framework/Versions/3.11/bin/micli.py: line 6: syntax error: unexpected end of file

@frostming
Copy link
Collaborator

俺也一样,请问 command not found 要咋整

不一样,你的是syntax error, 试试用 micli list (没有.py)

@yihong0618
Copy link
Owner

@frostming 我把 README 改了,直接指向我的 fork 要不好多用户太困惑了

@Dakaimen
Copy link

用micli list 还是不行
直接返回一个

[ ]

@yihong0618
Copy link
Owner

@Dakaimen 返回 [] 是好事儿。。。可能没绑上你的智能家居。

@Dakaimen
Copy link

@yihong0618 是说我的小米账号没有绑定上音箱吗,求教如何能绑定上音箱,解绑再绑吗?

@sanzhier82
Copy link
Author

可能是触发了登录二次验证,你试试先在同一台机器上登录 https://account.xiaomi.com/

@frostming 我看错误是这样的。我把clash关了也还是同样的结果。
Exception on login 1231108757: Cannot connect to host account.xiaomi.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:992)')]
这个错误通常表示您的计算机无法验证Xiaomi账户服务器上的SSL证书。这可能是由于证书问题或网络问题导致的。

@frostming
Copy link
Collaborator

@yihong0618 是说我的小米账号没有绑定上音箱吗,求教如何能绑定上音箱,解绑再绑吗?

下一个米家app,登录,绑定设备

@sanzhier82
Copy link
Author

@yihong0618 是说我的小米账号没有绑定上音箱吗,求教如何能绑定上音箱,解绑再绑吗?

同问,小米音箱买来就直接连上米家APP,算是绑定吗

@frostming
Copy link
Collaborator

可能是触发了登录二次验证,你试试先在同一台机器上登录 https://account.xiaomi.com/

@frostming 我看错误是这样的。我把clash关了也还是同样的结果。 Exception on login 1231108757: Cannot connect to host account.xiaomi.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:992)')] 这个错误通常表示您的计算机无法验证Xiaomi账户服务器上的SSL证书。这可能是由于证书问题或网络问题导致的。

这个错误是证书链配置问题,请google解决

@sanzhier82
Copy link
Author

@frostming 能加个联系方式请教吗,我微信是w-nielei

@Dakaimen
Copy link

@yihong0618 是说我的小米账号没有绑定上音箱吗,求教如何能绑定上音箱,解绑再绑吗?

同问,小米音箱买来就直接连上米家APP,算是绑定吗

不好意思,再请教 @yihong0618
我确认米家app 里面已经能找到音箱了,micli list 还是返回[ ]; 需要编辑 .bashrc 文件吗?

@yihong0618
Copy link
Owner

理论不需要。。。你的智能音箱型号是?

@Dakaimen
Copy link

Dakaimen commented Mar 10, 2023 via email

@Dakaimen
Copy link

会不会是我使用的openwrt哪里的设置有冲突,所以不能返回 音箱的DID

LX06发自我的 iPhone在 2023年3月10日,22:46,yihong @.> 写道: 理论不需要。。。你的智能音箱型号是? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.>

@DiDongDongDi
Copy link

DiDongDongDi commented Mar 11, 2023

可以尝试更换一下密码,注意不要带特殊符号

micli list 报错:

{'qs': '?sid=xiaomiio&_json=true', 'code': 70016, 'description': '登录验证失败', 'securityStatus': 0, '_sign': 'xxxx', 'sid': 'xiaomiio', 'result': 'error', 'captchaUrl': None, 'callback': 'http
s://sts.api.io.mi.com/sts', 'location': '', 'pwd': 0, 'child': 0, 'desc': '登录验证失败'}

用户名和密码确认正确无误,但始终报错,尝试将密码更换成不带特殊符号的形式后解决。

@wangbeishan
Copy link

看一下是不是python版本的原因,我从3.11.2降到3.9就好了。

@roostinghawk
Copy link
Contributor

我也出现过 #6
解决的方法是:换网络,家里的网络不行,但公司的就可以

@DiscardZhebin
Copy link

我用手机号登录报错,换了小米id就好了

@AirHua-byte
Copy link

可能是触发了登录二次验证,你试试先在同一台机器上登录 https://account.xiaomi.com/

@frostming 我看错误是这样的。我把clash关了也还是同样的结果。 Exception on login 1231108757: Cannot connect to host account.xiaomi.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:992)')] 这个错误通常表示您的计算机无法验证Xiaomi账户服务器上的SSL证书。这可能是由于证书问题或网络问题导致的。

我也遇到这个问题,开始以为vpn问题,还关机试了一下,还是这样,请问有解决方案吗

@wangbeishan
Copy link

可能是触发了登录二次验证,你试试先在同一台机器上登录 https://account.xiaomi.com/

@frostming 我看错误是这样的。我把clash关了也还是同样的结果。 Exception on login 1231108757: Cannot connect to host account.xiaomi.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:992)')] 这个错误通常表示您的计算机无法验证Xiaomi账户服务器上的SSL证书。这可能是由于证书问题或网络问题导致的。

我也遇到这个问题,开始以为vpn问题,还关机试了一下,还是这样,请问有解决方案吗

网络原因我试过了,然后我换了python的版本就好了

@yihong0618
Copy link
Owner

参考这个 -> aio-libs/aiohttp#955 (comment)

@nongwoluanlai
Copy link

希望有帮助 #469

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants