torifat / xiaomi-mi-air-purifier

Homebridge plugin for Xiaomi Mi Air Purifier
Apache License 2.0
99 stars 14 forks source link

Does it work with the Xiaomi Purifier 3C? #15

Open malditavibora opened 3 years ago

malditavibora commented 3 years ago

The purifier appears in te home app but as No response, so I cannot use it. I have used the token extractor windows app to get the token.

Homebridge logs:

[Air Purifier] Initializing XiaomiMiAirPurifier accessory... HAP Warning: Characteristic 000000AB-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000008D-0000-1000-8000-0026BB765291. Adding anyway. HAP Warning: Characteristic 000000AC-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000008D-0000-1000-8000-0026BB765291. Adding anyway. [05/01/2021, 13:00:56] [Air Purifier] Air Purifier finished initializing! [05/01/2021, 13:00:57] [Air Purifier] Connected to "Air Purifier" @ 192.168.1.211!

The plugin says connected but No response in Home app. I can use Xiaomi app to control it but not with HomeKit.

Environment:

malditavibora commented 3 years ago

I forgot to add the token extractor output:

Devices found for server "de":

NAME: Purificador ID: 359581253 IP: 192.168.1.211 TOKEN: __TOKEN___ MODEL: zhimi.airpurifier.mb4

torifat commented 3 years ago

Hi @danixque can you please try the latest version v1.1.0 and see if it works for you. Also, please don't post your TOKEN publicly.

malditavibora commented 3 years ago

Hi torifat,

I just checked the new version and now the Purifier icon appears as activated in Home app but the Xiaomi purifier is powered off, also trying to power it on/off but nothing works.

Cannot see any error in Homebridge logs.

Not sure if this helps but it seems that this model uses a different API: https://github.com/rytilahti/python-miio/issues/888

torifat commented 3 years ago

Oh great! thanks for sharing it. That would definitely help. But, you have to wait a bit for it. Sorry 😞

malditavibora commented 3 years ago

No problem. I've been searching and testing different plugins and any of them works with this 3C model in Homebridge then you could be the first one to make it work, I've seen that someone was able to support it in home assistant.

Thanks in advance!

vemeo commented 3 years ago

Hi,

I have the same problem. I have a Xiaomi Air Purifier 3C and the air purifier appears but nothing works :-(

Thanks for this pluging.

asiersan commented 3 years ago

Any news??

samanoju commented 3 years ago

no update? :(

ghost commented 3 years ago

Hi,

I have this device, I am very much waiting for an update.

Thanks for this pluging.

calas80 commented 3 years ago

Hi,

I have this device, I am very much waiting for an update.

Thanks for this pluging.

jngmrks commented 3 years ago

Please help with the 3C, would be really great!

asiersan commented 3 years ago

With the xiaomi_miot_raw is runing trough Cloud. O tried it, but not all funtions. On/off, air density, filter used ok but nigth, auto,.. no

jngmrks commented 3 years ago

Hi asiersan, could you please share your code so that we can all look over it together. Maybe one or the other has an idea?

asiersan commented 3 years ago

Is not my cose. Is a hacs repository https://github.com/ha0y/xiaomi_miot_raw

Seger85 commented 3 years ago

Hello all,

I can confirm the same behavior. Token and IP are set correctly, in the HomeApp without response available "the device does not respond".

I use the new version including Homebridge.

Is there any progress on this already or can I support with any test?

Follow snippets I have found yet: [3/6/2021, 12:25:23 PM] [Air Purifier] Connected to "Air Purifier" @ 192.168.178.79! [3/6/2021, 12:25:23 PM] [homebridge-xiaomi-mi-air-purifier] This plugin generated a warning from the characteristic 'PM2.5 Density': characteristic was supplied illegal value: null! Home App will reject null for Apple defined characteristics. See https://git.io/JtMGR for more info. [3/6/2021, 12:25:23 PM] [homebridge-xiaomi-mi-air-purifier] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic was supplied illegal value: null! Home App will reject null for Apple defined characteristics. See https://git.io/JtMGR for more info. [3/6/2021, 12:25:23 PM] [homebridge-xiaomi-mi-air-purifier] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic was supplied illegal value: null! Home App will reject null for Apple defined characteristics. See https://git.io/JtMGR for more info.

Update 1 Model: MODEL: zhimi.airpurifier.mb4

egabor commented 3 years ago

Same here. I've a 3C but it's not working with HomeKit. We're all very much waiting for an update.

torifat commented 3 years ago

Hey @Seger85, thanks a lot for the log. That was very helpful. Now I at least know what is wrong. I will try to fix those null issues soon and see if it works after that 🤞🏽.

torifat commented 3 years ago

Could you please share your code so that we can all look over it together. Maybe one or the other has an idea?

@jngmrks what do you mean by "share your code"? The code is already out there. It's open-source -> https://github.com/torifat/xiaomi-mi-air-purifier

Seger85 commented 3 years ago

image

samanoju commented 3 years ago

guys, this works fine with 3C: https://github.com/merdok/homebridge-miot#readme

mstrQ commented 3 years ago

3C still not supported?!

slidset commented 3 years ago

samanoju you can post your json configuration thank you

samanoju commented 3 years ago

for 3C I use homebridge-miot v0.9.6 that works like fine all time.

kikiwora commented 2 years ago

zhimi.airpurifier.mc2 does not work either. At all. Nothing. Fully unresponsive

hg commented 2 years ago

If you (like me) end up here after a google search: for those of us without any iOS devices (or complicated home automation with Home Assistant and the like), python-miio also works beautifully with 3C. You can extract the token using this project after registering your 3C in Mi Home on any Android phone (you don't need the phone afterwards).

$ miiocli airpurifiermb4 --ip 192.168.55.12 --token xxx set_mode favorite
$ miiocli airpurifiermb4 --ip 192.168.55.12 --token xxx set_favorite_rpm 1200
manveru1986 commented 2 years ago

for 3C I use homebridge-miot v0.9.6 that works like fine all time.

@samanoju How did you make it work with it? I copied the Token and ID, but while the button is shown in HomeKit it does nothing.

samoilyk commented 2 years ago

Hello all,

I can confirm the same behavior. Token and IP are set correctly, in the HomeApp without response available "the device does not respond".

I use the new version including Homebridge.

Is there any progress on this already or can I support with any test?

Follow snippets I have found yet: [3/6/2021, 12:25:23 PM] [Air Purifier] Connected to "Air Purifier" @ 192.168.178.79! [3/6/2021, 12:25:23 PM] [homebridge-xiaomi-mi-air-purifier] This plugin generated a warning from the characteristic 'PM2.5 Density': characteristic was supplied illegal value: null! Home App will reject null for Apple defined characteristics. See https://git.io/JtMGR for more info. [3/6/2021, 12:25:23 PM] [homebridge-xiaomi-mi-air-purifier] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic was supplied illegal value: null! Home App will reject null for Apple defined characteristics. See https://git.io/JtMGR for more info. [3/6/2021, 12:25:23 PM] [homebridge-xiaomi-mi-air-purifier] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic was supplied illegal value: null! Home App will reject null for Apple defined characteristics. See https://git.io/JtMGR for more info.

Update 1 Model: MODEL: zhimi.airpurifier.mb4

Hi, same issue for me. Any updates?

jngmrks commented 2 years ago

I had the same problems and therefore switched to homebridge-miot, so everything works fine!

manveru1986 commented 2 years ago

I had the same problems and therefore switched to homebridge-miot, so everything works fine!

I tried with the "miot" one but still could not configire it. Are you also trying with 3H?