miio icon indicating copy to clipboard operation
miio copied to clipboard

Mi Air Purifier 3 not working

Open Askeo opened this issue 3 years ago • 8 comments

Mi Air Purifier 3 is not working with correct token and IP

Region: EU/DE

NAME: Mi Air Purifier 3/3H ID: 313871411 IP: (censored) TOKEN: (censored) MODEL: zhimi.airpurifier.mb3

Askeo avatar Jan 09 '21 00:01 Askeo

check this alternative. i added support for you https://github.com/salamwaddah/mijia-io

salamwaddah avatar Jan 09 '21 15:01 salamwaddah

@salamwaddah Thank you very much but i think i have a bigger problem.

I use a Smart Home System called "Homey" and a guy use this repo here for creating the app in Homey

https://community.athom.com/t/xiaomi-mi-home-app-for-wifi-devices/118 https://homey.app/de-ch/app/com.xiaomi-miio/Xiaomi-Mi-Home/ https://github.com/Maxmudjon/com.xiaomi-miio https://homey.app/

But he is not updating since February and miio (where he taked the stuff) is dead i think.

If you are creating a miio driver for Homey i would love it with ur updated stuff but i think when you dont use this smart home system its complete useless for you

Sorry my english is not the best :)

Askeo avatar Jan 09 '21 15:01 Askeo

@Askeo sorry about that. dead repos are frustrating. One of the PRs on this repo supports purifier 3 https://github.com/aholstenson/miio/pull/277 see if it helps. I forked this repo for a home project and started to add simple device support hope it helps someone.

salamwaddah avatar Jan 09 '21 15:01 salamwaddah

Maybe you dont know, there is another projekt. I've intergrated it to the iobroker systems and its working, so maybe its helpful to know about: https://github.com/maxinminax/node-mihome

Pittini avatar Jan 09 '21 16:01 Pittini

Maybe you dont know, there is another projekt. I've intergrated it to the iobroker systems and its working, so maybe its helpful to know about: https://github.com/maxinminax/node-mihome

Never used "iobroker" but sound amazing, can you explain that to me ? do you have discord, email or somthing else ?

Askeo avatar Jan 09 '21 18:01 Askeo

Never used "iobroker" but sound amazing, can you explain that to me ?

its similar to miio but also can miot, its a npm module, you dont need iobroker, but it works with it.

do you have discord, email or somthing else ?

discord Carlo Pittini

Pittini avatar Jan 09 '21 20:01 Pittini

Never used "iobroker" but sound amazing, can you explain that to me ?

its similar to miio but also can miot, its a npm module, you dont need iobroker, but it works with it.

do you have discord, email or somthing else ?

discord Carlo Pittini

I need the correct user name for discord "exampleName#8487"

Askeo avatar Jan 09 '21 21:01 Askeo

check this alternative. i added support for you https://github.com/salamwaddah/mijia-io

@salamwaddah Thanks for this, unfortunately switching off does not work for 3C model

device
 .setPower(false)
 .then(state => console.log('Switched power to', state))
 .catch(error => console.log(error));

Outputs:

Switched power to true

And device is still ON.

Any chance to have this fixed?

Edit tracked it down:

file air-purifier3c.js: in changePower, the condition that sets mode to idle must be removed Additionally the values in changeLEDBrightness are in reverse order, should be 2,1,0 instead of is 0,1,2.

jacklul avatar Dec 05 '21 15:12 jacklul