xiaomi-mi-air-purifier icon indicating copy to clipboard operation
xiaomi-mi-air-purifier copied to clipboard

Does it work with the Xiaomi Purifier 3C?

Open malditavibora opened this issue 4 years ago • 29 comments

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:

  • Plugin Version: homebridge-xiaomi-mi-air-purifier v1.0.0
  • Homebridge Version: 1.1.7
  • Node.js Version: 14.15.0
  • NPM Version: 6.14.8
  • Operating System: Raspbian

malditavibora avatar Jan 05 '21 12:01 malditavibora

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

malditavibora avatar Jan 05 '21 13:01 malditavibora

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.

torifat avatar Jan 05 '21 16:01 torifat

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

malditavibora avatar Jan 05 '21 16:01 malditavibora

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

torifat avatar Jan 05 '21 17:01 torifat

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!

malditavibora avatar Jan 05 '21 17:01 malditavibora

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.

vemeo avatar Jan 20 '21 16:01 vemeo

Any news??

asiersan avatar Jan 30 '21 18:01 asiersan

no update? :(

samanoju avatar Feb 05 '21 16:02 samanoju

Hi,

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

Thanks for this pluging.

ghost avatar Feb 14 '21 10:02 ghost

Hi,

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

Thanks for this pluging.

calas80 avatar Feb 17 '21 11:02 calas80

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

jngmrks avatar Feb 28 '21 23:02 jngmrks

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

asiersan avatar Mar 01 '21 19:03 asiersan

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?

jngmrks avatar Mar 01 '21 20:03 jngmrks

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

asiersan avatar Mar 02 '21 05:03 asiersan

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

Seger85 avatar Mar 06 '21 11:03 Seger85

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

egabor avatar Mar 08 '21 08:03 egabor

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 avatar Mar 09 '21 07:03 torifat

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

torifat avatar Mar 09 '21 07:03 torifat

image

Seger85 avatar Mar 13 '21 09:03 Seger85

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

samanoju avatar Mar 17 '21 17:03 samanoju

3C still not supported?!

mstrQ avatar May 30 '21 12:05 mstrQ

samanoju you can post your json configuration thank you

slidset avatar Jun 26 '21 11:06 slidset

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

samanoju avatar Jun 29 '21 16:06 samanoju

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

kikiwora avatar Oct 10 '21 08:10 kikiwora

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

hg avatar Nov 15 '21 14:11 hg

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.

manveru1986 avatar Nov 29 '21 11:11 manveru1986

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?

samoilyk avatar Dec 05 '21 14:12 samoilyk

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

jngmrks avatar Dec 05 '21 17:12 jngmrks

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?

manveru1986 avatar Dec 05 '21 18:12 manveru1986