新人求助:miot集成登录小米账号连不上小米API怎么解决?

  • Setup xiaomi cloud for user: 18127941586 failed: HTTPSConnectionPool(host=‘account.xiaomi.com’, port=443): Max retries exceeded with url: /pass/serviceLogin?sid=xiaomiio&_json=true (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0xffff670f55e0>: Failed to establish a new connection: [Errno -3] Try again’))
  • Setup xiaomi cloud for user: 18127941586 failed: HTTPSConnectionPool(host=‘account.xiaomi.com’, port=443): Max retries exceeded with url: /pass/serviceLogin?sid=xiaomiio&_json=true (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0xffff6709fcd0>: Failed to establish a new connection: [Errno -3] Try again’))
  • Setup xiaomi cloud for user: 18127941586 failed: HTTPSConnectionPool(host=‘account.xiaomi.com’, port=443): Max retries exceeded with url: /pass/serviceLogin?sid=xiaomiio&_json=true (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0xffff670feb20>: Failed to establish a new connection: [Errno -3] Try again’))
  • Setup xiaomi cloud for user: 18127941586 failed: HTTPSConnectionPool(host=‘account.xiaomi.com’, port=443): Max retries exceeded with url: /pass/serviceLogin?sid=xiaomiio&_json=true (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0xffff617ee640>: Failed to establish a new connection: [Errno -3] Try again’))
  • Setup xiaomi cloud for user: 18127941586 failed: HTTPSConnectionPool(host=‘account.xiaomi.com’, port=443): Max retries exceeded with url: /pass/serviceLogin?sid=xiaomiio&_json=true (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0xffff617eef70>: Failed to establish a new connection: [Errno -3] Try again’))

检查一下路由器的dns设置,

ssh是ping得通的


如果上面那个方法还不行,用这个

nslookup显示这个 怎么解决

image

第一个应该是没有二次验证的。第二个尝试过了没有解决。一直是报这个错误

Setup xiaomi cloud for user: 18127941586 failed: HTTPSConnectionPool(host='account.xiaomi.com', port=443): Max retries exceeded with url: /pass/serviceLogin?sid=xiaomiio&_json=true (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff9aff7c40>: Failed to establish a new connection: [Errno -3] Try again'))

去插件的github看了,这种情况才是二次验证

你第一条命令输错了。

你检查一下你的路由,有没有在dns里面做了设置。

最后重启盒子解决了,谢谢,之前是在ha的容器里面ping不同小米的接口,可能是hassio_dns的容器挂了

一般就是那几个网络的问题