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

xiaomi fan 1x encountered 'user ack timeout' #714

Closed
jianyun8023 opened this issue Jun 3, 2020 · 2 comments
Closed

xiaomi fan 1x encountered 'user ack timeout' #714

jianyun8023 opened this issue Jun 3, 2020 · 2 comments

Comments

@jianyun8023
Copy link

xiaomi fan 1x encountered 'user ack timeout'

I tried docker in host mode, use cli or code.
Later, I also tested the window environment, but the results are no different.
One strange thing is that the debugging found that ts started from 1970

我遇到了图中的用户回应超时问题,尝试在host模式的docker、windows10下都不可以,cli或者代码都是这个问题。docker宿主机未开防火墙,window下设置防火墙打开54321。使用debug模式,发现ts事件参数是从1970年开始。

image

resp {'code': -9999, 'message': 'user ack timeout'}

code

from miio import Fan

fan = Fan(
    ip="192.168.2.113",
    token="bd5331094c79457c30228129fd53137d",
    lazy_discover=False,
    debug=1,
    model="dmaker.fan.p5"
)
print(fan.info())
state = fan.update_state()
print(state)
# print(fan.status())
fan.on()

print(fan.status())
@jianyun8023
Copy link
Author

This is my problem, I should initialize FanP5.
这是我的问题,我应该初始化FanP5。

@liangxrbiu
Copy link

This is my problem, I should initialize FanP5. 这是我的问题,我应该初始化FanP5。

请问怎么初始化呢 我用的是小米的智能插座 在cmd运行的时候也出现了同样的问题 也是1970开始的 该怎么改呀

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

2 participants