Skip to content

Xiaomi Smart Air Purifier 4 Compact doesn't work #86104

@kevin-kraus

Description

@kevin-kraus

The problem

Hi all,

I've purchased a Xiaomi Smart Air Purifier 4 Compact. Unfortunately the Integration does not yet support it.

It always throws the following exception when trying to use it with the Type for Smart Air Purifier 4 (zhimi.airp.mb5):
CleanShot 2023-01-17 at 20 03 55@2x

It looks like the support for this device will be included in python-miio version 0.6.0. It has been mentioned in this issue (rytilahti/python-miio#1550) and merged in this PR (rytilahti/python-miio#1581).

So as soon as version 0.6.0 is used by HomeAssistant it should work. You then only need to add the device type zhimi.airp.cpa4.

Just wanted to post this here so it does not get forgotten and if somebody else has the same issue he can find help here.

Kind regards

Kevin

What version of Home Assistant Core has the issue?

2023.1.4

What was the last working version of Home Assistant Core?

No response

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?

2023-01-17 19:37:06.081 WARNING (SyncWorker_9) [miio.device] Found an unsupported model 'zhimi.airp.cpa4' for class 'AirPurifierMiot'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
2023-01-17 19:37:06.106 WARNING (SyncWorker_9) [miio.miot_device] Unable to find mapping for zhimi.airp.cpa4, falling back to zhimi.airpurifier.ma4

Additional information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions