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

Unable to add Air Purifier Pro v7 #24

Open
Amelsfort opened this issue Nov 3, 2020 · 1 comment
Open

Unable to add Air Purifier Pro v7 #24

Amelsfort opened this issue Nov 3, 2020 · 1 comment

Comments

@Amelsfort
Copy link

When I try to connect my new Air Purifier Pro, I get an error: An error occured, handshake timeout.
I have tried running (parts of) the code using NodeJS from a command line and I can connect fine with the exact same IP and token. I can also read info from the device.
Now I noticed the driver (drivers/mi_air_purifier_v6/driver.js) is checking the model on line 32: 'if (value.model == this.data.model)' where the value of 'model' is set to 'zhimi.airpurifier.v6'. The model I have returns 'zhimi.airpurifier.v7' as it's model, so I suppose that model version should be added.

I'm not sure if it's as easy as copy the code and replace 'v6' with 'v7', but if so, it would be an easy fix.

@Maxmudjon
Copy link
Owner

ok i will add

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