-
-
Notifications
You must be signed in to change notification settings - Fork 567
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
Unable to find mapping for zhimi.airp.mb3a, falling back to zhimi.airpurifier.ma4 #1907
Comments
One more bug I noticed, which is related to this issue, is that the air purifier updates PM2.5 level every 30 mins. I assume this can solved by adding OR with python-miio/miio/airpurifier_miot.py Line 408 in 3e94c6d
but it might be easier to see how to change |
@rytilahti is it possible to do something about adding this integration? It's crashing HA with a ton of logs. I see the model name exists here:
but it doesn't exist in supported models in this class: python-miio/miio/airpurifier_miot.py Lines 12 to 17 in 3e94c6d
Is it possible this is the reason it's falling back to the first one in the array? |
I replied to you here home-assistant/core#112509 (comment) but this should already be fixed for your device (in git master and 0.6.0.dev0) as the model is already there as you pointed out. Now, looking at the code, it should not spam that message in the first place so I'm going to fix that. |
@rytilahti thank you! Is it also possible to add a model name to if check I mentioned above, as the current implementation only updates PM2.5 every 30 mins? Basically, the same thing which was addressed here, but for this specific name.
I'm not familiar with Python, so was just checking "on the fly", and now I'm curious, which mappings it gets here? Those from python-miio/miio/miot_device.py Lines 193 to 204 in 35a8773
|
I've been getting this error in my logs for over half a year too
|
I'm aware of this closed issue which is basically identical and opened almost 2 years ago and these two merged PRs, but this message is showing on the current latest version of HA and spamming logs constantly with:
Describe the bug
When adding Mi 3H air purifier (the latest firmware version available) to the latest version of HA, logs gets flooded with above entries.
Version information (please complete the following information):
Device information:
Mi 3H air purifier
To Reproduce
As the standard login/password routine didn't work, I used token extractor to get API token and add the device manually. First warning after adding IP and token:
The device model is not known, not able to set up the device using config flow.
There's a dropdown below it to select a device model, and I selected
zhimi.airpurifier.mb3
. Next dialog shows:Once added, it appears in Devices as:
and it starts spamming the logs with those two entries. From the moment of adding the device yesterday until now, there are 5672 occurrences.
Expected behavior
Clean log without warnings.
The text was updated successfully, but these errors were encountered: