aholstenson / miio

Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more
MIT License
1.87k stars 354 forks source link

Mi Air Purifier 3 not working #301

Open Askeo opened 3 years ago

Askeo commented 3 years ago

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

salamwaddah commented 3 years ago

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

Askeo commented 3 years ago

@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 :)

salamwaddah commented 3 years ago

@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.

Pittini commented 3 years ago

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

Askeo commented 3 years ago

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 ?

Pittini commented 3 years ago

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

Askeo commented 3 years ago

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"

jacklul commented 2 years ago

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.