Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiaomi Mi Air Purifier 4 (zhimi.airpurifier.mp4) is not available in Xiaomi Miio Device integration #67694

Closed
TDL3 opened this issue Mar 5, 2022 · 75 comments

Comments

@TDL3
Copy link

TDL3 commented Mar 5, 2022

The problem

The Xiaomi Mi Air Purifier 4 is not available in Xiaomi Miio Device integration: The device model is not known, not able to setup the device using config flow.

What version of Home Assistant Core has the issue?

core-2022.3.1

What was the last working version of Home Assistant Core?

core-2022.3.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Xiaomi Miio

Link to integration documentation on our website

https://www.home-assistant.io/integrations/xiaomi_miio

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

In core release 3.0, I was able to setup my device(Xiaomi Mi Air Purifier 4) with zhimi.airpurifier.mb4 in the device model dropdown list and its works perfectly fine, however after upgrading core to 3.1, I'm getting these error messages

2022-03-05 18:38:06 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Xiaomi Smart Air Purifier 4 for xiaomi_miio
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 131, in async_setup_entry
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 455, in async_setup_device_entry
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 318, in async_create_miio_device_and_coordinator
2022-03-05 18:40:25 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Xiaomi Smart Air Purifier 4 for xiaomi_miio
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 131, in async_setup_entry
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 455, in async_setup_device_entry
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 318, in async_create_miio_device_and_coordinator
2022-03-05 18:44:42 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Xiaomi Smart Air Purifier 4 for xiaomi_miio
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 131, in async_setup_entry
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 455, in async_setup_device_entry
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 318, in async_create_miio_device_and_coordinator
2022-03-05 20:15:43 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry zhimi.airp.mp4 for xiaomi_miio
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 131, in async_setup_entry
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 455, in async_setup_device_entry
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 318, in async_create_miio_device_and_coordinator
2022-03-05 21:06:40 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry zhimi.airp.mp4 for xiaomi_miio
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 131, in async_setup_entry
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 455, in async_setup_device_entry
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 318, in async_create_miio_device_and_coordinator
2022-03-05 21:09:40 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry zhimi.airp.mp4 for xiaomi_miio
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 131, in async_setup_entry
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 455, in async_setup_device_entry
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 318, in async_create_miio_device_and_coordinator
@probot-home-assistant
Copy link

Hey there @rytilahti, @syssi, @starkillerOG, @bieniu, mind taking a look at this issue as it has been labeled with an integration (xiaomi_miio) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)


xiaomi_miio documentation
xiaomi_miio source
(message by IssueLinks)

@rytilahti
Copy link
Member

Is that all the logs you get? The log doesn't really show what exception is being thrown... Could you please try if it works with the newest release?

@TDL3
Copy link
Author

TDL3 commented Mar 8, 2022

I've tried on 2022.3.2 still not working

@TDL3
Copy link
Author

TDL3 commented Mar 8, 2022

So I rolled back to 2022.2.9, and everything works as expected
image
This is set up using zhimi.airpurifier.mb4, and I've looked up the documentation, this integration is for model 3C not 4, so it's kinda of a hack to use it this way, it would be awesome to have official support for model 4!

@MPThLee
Copy link

MPThLee commented Mar 13, 2022

I'm on 2022.3.4 and zhimi.airp.mb5 doesn't work with mb4 hack. it should work as mb4's basic field is shared with mb5

PS. Xiaomi Air Purifier 4's code is zhimi.airp.mb5.

@sprintfocus2019
Copy link

sprintfocus2019 commented Apr 1, 2022

Xiaomi Smart Air Purifier 4 is not working in Home Assistant 2022.3.8. New model (zhimi.airp.mb5) support is required.

Logger: miio.device
Source: /usr/local/lib/python3.9/site-packages/miio/device.py:158
First occurred: 11:15:37 AM (5 occurrences)
Last logged: 2:09:37 PM

Found an unsupported model 'zhimi.airp.mb5' for class 'AirPurifierMiot'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
Found an unsupported model 'zhimi.airp.mb5' for class 'AirFresh'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/

@TDL3
Copy link
Author

TDL3 commented Apr 7, 2022

Any updates on this issue?

@TDL3
Copy link
Author

TDL3 commented Apr 7, 2022

Is this issue out of the current development scope?

@farbfoto
Copy link

Same issue here - is not yet supported. Any chance to get it in in one of the next releases? Would be highly appreciated.

@gentertain
Copy link

Same for Purifier 4 Pro zhimi.airp.vb4

@rperrell
Copy link

PR rytilahti/python-miio#1399 merged

@Gortosch
Copy link

Hello,

I have the same problem. I also can't find zhimi.airp.mb5 in the dropdown list.

Thanks a lot to all developers.

Best regards
Sven

@MPThLee
Copy link

MPThLee commented May 14, 2022

@Gortosch I’m not using HA now, but if you can select zhimi.airp.va2. Set to va2. mb5 uses same backend code so it should be compatible without issue.

rytilahti/python-miio#1357

@Gortosch
Copy link

@MPThLee Hello, thank you for your quick reply. But I can't select zhimu.airp.va2 because this is not in the list.

Sven

@matthewgrima
Copy link

I am having the same issue with adding zhimi.airp.rmb1

Latest version (0.5.11) of python-miio seems to be used int HA but the latest models aren't added as options.

@Gortosch
Copy link

Is there a way to update the device list?

@matthewgrima
Copy link

Is there a way to update the device list?

https://github.com/home-assistant/core/pull/55484/files

I was looking at a previous PR, but not sure what is device specific here bar the model names.

@matthewgrima
Copy link

My mistake, 0.5.11 does not have zhimi.airp.rmb1 included.

@rytilahti Any idea on when the next release is please?

@benwie
Copy link

benwie commented May 28, 2022

Any news on this? Still looking for zhimi.airp.rmb1 in home-assistant.

@raberrio
Copy link

raberrio commented Jun 7, 2022

following. Purifier Air 4 Pro here

@Gortosch
Copy link

Gortosch commented Jun 7, 2022

Any news on this?

@chpego
Copy link
Contributor

chpego commented Jun 7, 2022

there are no new releases in the repository yet https://github.com/rytilahti/python-miio/releases
@rytilahti 👍

@MPThLee
Copy link

MPThLee commented Jun 19, 2022

python-miio 0.5.12 seems like going to release soon? including rmb1, vb4, mb5, and dreame devices support.
rytilahti/python-miio#1436

@glowtape
Copy link

Yeah, it would be nice if eventually the HA integration catches up with added device support over in python-miio. So far I'm helping myself out with Xiaomi Miot Auto from HACS for that Air Purifier 4 Pro of mine (zhimi.airp.vb4), but the sensor polling period isn't anything to cry to home about (which might however be the device doing that), compared to my older purifiers on the included Xiaomi integration.

@rytilahti
Copy link
Member

@glowtape you can follow rytilahti/python-miio#1436 for the next upstream release. If @syssi is too busy to create that release, I'll create a new release but it would be great to get some testing done pre-release as some refactoring related to the module hierarchy has been done since the last release.

If you know how to run your setup using a git version of that lib, it would be great if you could try the git master and report if you encounter any issues with your devices.

@glowtape
Copy link

glowtape commented Jul 14, 2022

How do I update python-miio in my current Home Assistant installation? I've set debug SSH and fudged my way into the Docker instance running HA Supervisor. The bare minimum knowledge I have of Python, I'd have figured it'd be a package installed with pip, but listing installed packages, python-miio doesn't show.

--edit: Nevermind, wrong container.

@geoffm39
Copy link

geoffm39 commented Feb 2, 2023

I got it working by installation the Xiaomi MIOT integration. You need to extract the token for the air purifier to add it to HA. Once added, it is quite stable. It shows up as a fan in HomeKit btw.

that worked perfectly! thanks for the quick help!

@gj9159a
Copy link

gj9159a commented Feb 18, 2023

Hello, dear developers! Please add full support for Xiaomi Smart Air Purifier 4 Lite (zhimi.airp.rmb1). In the version of Home Assistant 2023.2.3 it is not possible to adjust the power level of Favorite, as well as the brightness of the screen. This topic has already been raised, but I still did not understand whether it would be solved or not …?

@Seger85
Copy link

Seger85 commented Feb 18, 2023

Hello, dear developers! Please add full support for Xiaomi Smart Air Purifier 4 Lite (zhimi.airp.rmb1). In the version of Home Assistant 2023.2.3 it is not possible to adjust the power level of Favorite, as well as the brightness of the screen. This topic has already been raised, but I still did not understand whether it would be solved or not …?

I haven't understood it yet either, I'm missing the favourite levels. Is there anyone who has managed it?

@witooski
Copy link

witooski commented Feb 26, 2023

Hello everyone.
I came here to kindly ask developers for improving the support for Xiaomi Smart Air Purifier 4 Lite (zhimi.airp.rmb1) model. As others have already reported, currently the integration lacks the support of fan favorite levels and LED brightness.

That being said, I can't help much with coding, but I'm very happy to test workarounds, temporary fixes, etc. Thanks!

Reported separate bug within python-miio github: rytilahti/python-miio#1752

@Djeloan
Copy link

Djeloan commented Mar 6, 2023

Hello, is it possible to add support for Xiaomi Air Purifier 4 Compact ? It's missing from Miio integration device model.
NAME: Xiaomi Smart Air Purifier 4 Compact
MODEL: zhimi.airp.cpa4

Thank you.

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@63OR63
Copy link

63OR63 commented Jun 9, 2023

zhimi.airpurifier.mp4 is still not supported in 2023.6.1

@Viss
Copy link

Viss commented Jul 16, 2023

I've just bought a new air purifier 4 pro, and its model "zhimi.airp.va2", I can't seem to add it, because HA complains:

image

@yyyi66
Copy link

yyyi66 commented Jul 18, 2023

zhimi-airp-mp4 is still not supported. Very bad...

@waynekhan
Copy link

When I got the "mismatched model" prompt for my zhimi.airp.va2, I tried instead zhimi.airp.vb4, and it worked!

Probably not all the features of my va2 are supported, but I can get at least turn it on/off and get the temperature/humidity/PM2.5 readout, good enough.

For more details, see https://blog.waynekhan.net/posts/2023-09-27-home-assistant-xiaomi-miio-integration/.

@Viss
Copy link

Viss commented Sep 29, 2023 via email

@waynekhan
Copy link

waynekhan commented Sep 29, 2023 via email

@Viss
Copy link

Viss commented Sep 29, 2023 via email

@waynekhan
Copy link

waynekhan commented Sep 29, 2023 via email

@waynekhan
Copy link

waynekhan commented Sep 29, 2023 via email

@Viss
Copy link

Viss commented Sep 29, 2023 via email

@waynekhan
Copy link

waynekhan commented Sep 29, 2023 via email

@Viss
Copy link

Viss commented Sep 29, 2023 via email

@fkolacek
Copy link

Just got a new Xiaomi Air Purifier 4 and getting following error:

Unsupported device found! Please create an issue at https://github.com/syssi/xiaomi_airpurifier/issues and provide the following data: zhimi.airp.mb5a

It looks like I got a slightly newer revision as himi.airp.mb5 is supported as per https://www.home-assistant.io/integrations/xiaomi_miio#air-purifier-44-pro-zhimiairpmb5zhimiairpvb4

Any chance to get this one working as well and/or did any manage to get this one working with HA?

@fkolacek
Copy link

fkolacek commented Dec 10, 2023 via email

@olet3000
Copy link

olet3000 commented Dec 13, 2023

@fkolacek
Try to change xiaomi_miio/const.py line 56 from "MODEL_AIRPURIFIER_4 = "zhimi.airp.mb5" to "MODEL_AIRPURIFIER_4 = "zhimi.airp.mb5a".
You can also use https://github.com/al-one/hass-xiaomi-miot.

@grimmaldus
Copy link

grimmaldus commented Jan 15, 2024

@olet3000
Changing "MODEL_AIRPURIFIER_4 = "zhimi.airp.mb5" to "MODEL_AIRPURIFIER_4 = "zhimi.airp.mb5a" doesn't work properly.
Most of entities are unknown and rest of them report wrong values.

@KSchmeeds
Copy link

I recently purchased the Air purifier compact 4 and am unable to use it with the integration as this model is not listed.

zhimi.airp.cpa4

@bieniu bieniu removed their assignment Mar 1, 2024
@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests