merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
394 stars 62 forks source link

Not compatible with Mi Air Purifier Pro #55

Closed ojoaosemtil closed 3 years ago

ojoaosemtil commented 3 years ago

When I add the Mi Purifier Pro it shows only a switch to turn on or off, nothing more…it is the model zhimi.airpurifier.v7

I have a Mi Purifier 3C added and it works perfectly. There’s no support for the Pro version?

merdok commented 3 years ago

The zhimi.airpurifier.v7 is a miio device, hence it is not supported. I can add basic support for that device but it will require a MiCloud connection.

ojoaosemtil commented 3 years ago

It would be great to be able to do more than just on or off, do you think it is possible with a MiCloud connection?

merdok commented 3 years ago

Yes, MiCloud will be required!

ojoaosemtil commented 3 years ago

In that case, I use the credentials from the Mi Home app? Can you add support for this?

merdok commented 3 years ago

Yes, you will need to provide the same credentials as in the Mi Home app + the server country at which your device is located (china is the default so no need to specify that). Yes, i will add support for this device in the next update. You are in luck because I will publish an update later today so i can also include the device in it.

ojoaosemtil commented 3 years ago

Oh great! In my case my server is from Europe, I’m in Portugal, hope it works! I’ll test it later today when you update!

merdok commented 3 years ago

Portugal i guess uses the Germany server, but not sure about that. You can check that in the Mi Home app in which country server your devices are on.

ojoaosemtil commented 3 years ago

In the Mi Home I choose Portugal in the country list, but it’s possible it is a server from other European country

merdok commented 3 years ago

Version 0.9.7 is now online with support for the device. Please try it and let me know!

ojoaosemtil commented 3 years ago

Thank you! I think it’s working fine, I’ll be testing this week. Thanks 😁

ojoaosemtil commented 3 years ago

So…it was working fine and today it showed no response..I tried to re-add it through the plug-in with no success, it is recognized but when specifying actions while running the plug-in it shows nothing. Do you have any idea what it could be? I’m connected through mi cloud and the mi home app works fine.

merdok commented 3 years ago

You would need to provide some homebridge debug log in order for me to know what is happening.

ojoaosemtil commented 3 years ago

For some reason the device ID disappeared from the configuration, but I put it there again and it’s working!