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

Air Purifier Pro not recognized #30

Open
thaipirate opened this issue Mar 25, 2019 · 3 comments
Open

Air Purifier Pro not recognized #30

thaipirate opened this issue Mar 25, 2019 · 3 comments

Comments

@thaipirate
Copy link

in the device modules, i had to manually add the v7 purifier pro:

'zhimi.airpurifier.v7': AirPurifier,

then it works fine. Thanks for your efforts.

@feraljojo
Copy link

Hi Thaipirate, interested by the above tweak as I also have the v7. Are you creating a new device (.js) or adding to a list (which I cannot find yet) ? Thx to help us out there modifying the code as you did. Best of all.

@thaipirate
Copy link
Author

hiya i added to models.js which i found in:
/usr/lib/node_modules/miio/lib

I scrolled down and there was a commented line that read
"// Air Purifier 1 (and Pro?)" with a bunch of entries, and i added v7 to the bottom like this:

// Air Purifier 1 (and Pro?)
'zhimi.airpurifier.v1': AirPurifier,
'zhimi.airpurifier.v2': AirPurifier,
'zhimi.airpurifier.v3': AirPurifier,
'zhimi.airpurifier.v6': AirPurifier,
'zhimi.airpurifier.v7': AirPurifier,

@feraljojo
Copy link

Thanks for the feedback. Indeed traced it back to miio. It did not solve it for me yet, so will restart from fresh install and look at it again. Take care.

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