-
-
Notifications
You must be signed in to change notification settings - Fork 28.6k
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
Issues with platform: xiaomi_miio (After upgrade to Home Assistant 0.109.1) #34955
Comments
Hey there @rytilahti, @syssi, mind taking a look at this issue as its been labeled with a integration ( |
Is this a duplicate of #34567? Check also my comment at #34567 (comment). |
Not duplicated as I have more device affected. I have read the comment but not sure what to do next. Would you mind to guide me? Thanks! |
It's not about number of devices, it's about that missing miotpurifier class, but it should be there if your python-miio is version 0.5.0.1 as it should be. What version of python-miio you have currently? What does the version.py file (as discussed in the link) says? If it's some older version (0.4.8 was the version for previous homeassistant versions), maybe you could try manually updating the package ( |
Encounter the error below: FYI I am using supervised version HA
|
I ran the command below and still encounter the error pip3 -V |
I tried to install Cryptography, libiffi-dev & libssl-dev, all failed :-/ / $ pip uninstall python-miio Anyone could help? |
I have no idea how the supervisored version works (looks like its docker-based complete homeassistant system, so I suppose it should handle everything automatically?), but you are missing the compiler: Anyway, did you check the things I mentioned? Is the version correct? |
Thanks for reply, Rytilahti. BTW would you mind to guide me how do I check the python-miio version and where is this file located version.py file? I am new to HA and appreciate your helps. |
I was asking myself the same question, but maybe Anyways, let's try to find out why it is not working for you (there was also another person in the release comment thread) so we can avoid such mistakes in the future! |
Hi, I understand but I think the problem should not be due to somewhere in my setup, reason being is that I restored the core to version 0.108.6, auto rebooted and the issue is gone, no config validation issue and the three devices are back to normal. |
I tested a few times and the issues persist. so I am quite sure the issue should be something to do with the core update for supervised version itself. |
Hello @rytilahti , I also have the same problem I have roborock.vacuun.m1s and earlier versions worked normally and now not, and I have an air purifier zhimi.airpurifier.ma4 I have waited for this integration for a long time and now it does not work, here are my logs; 2020-05-01 08:14:16 ERROR (MainThread) [homeassistant.config] Platform error: fan 2020-05-01 08:14:24 ERROR (MainThread) [homeassistant.components.vacuum] xiaomi_miio: Error on device update! |
Hi @rytilahti i also have the same problem since version 0.109.0. I'm using the Xiaomi Air Purifier 2S on the HASS.IO install on QNAP Virtual Station Ubuntu 18.04. It was working fine before i updated it. I'm also new to HA 2020-04-30 22:33:54 ERROR (MainThread) [homeassistant.config] Platform error: fan |
model: zhimi.airpurifier.v6 and model: zhimi.humidifier.ca1: Platform error: fan |
Can you check the contents of It should be 0.5.0.1 (as shown in the homeassistant's requirements_all.txt https://github.com/home-assistant/core/blob/0.109.1/requirements_all.txt#L1655 and |
Hi Rytilahti, I do have this folder, I use the search command to find version.py and below is the reason. |
I think I found the root-caused for my case. For others should be similar, try to disable one by one in your custom_folder. Somehow the package below causing the issues, I commented it, restart HA and no more issue in the latest version HA 0.109.2. https://github.com/syssi/xiaomi_cooker Code I commented
I do not know why perhaps I think the author can tell. @rytilahti @syssi |
That's odd. The cooker defines requirement as |
I suspect this because of i once see the error in the log saying it would cause compatibility issue but I could not remember the exact message. Anyway by just disable this and the then do a hard HA reboot, issue gone. :_) |
@rytilahti ,so in custom_components I had the Mi Smart Multipurpose Kettle component and there was the old version of python-miio> = 0.4.8 and therefore I did not want to work when I changed the manifest.json file to python-miio == 0.5.0.1, all integrations started to work |
The version for xiaomi_cooker is 0.4.6, shall i change it to 0.5.0.1?
|
@terenceng81 yes |
I have STYJ02YM: { I change 0.4.7 to 0.5.0.1 and and everything works:) |
Yes, by changing to the version of python-miio to 0.5.0.1 fixed it. By the way, there is a new release for the core, it bumps Cryptography from 2.9.1 to 2.9.2 which I failed to upgrade during troubleshooting. https://github.com/home-assistant/supervisor/releases/tag/220 FYI only. |
Great job locating. My error was in the custom component for xiaomi miio fan. |
i also have the Xiaomi miio vacuum STYJ02YM custom component, after changing it from 0.4.7 to 0.5.0.1 and did a hardware reboot everything is working again. thanks |
I have STYJ02YM where you change it: "python-miio==0.5.0.1" ? I find it: custon_components/miio2/manifest.json Thanks for this solution! |
Please do not forget to report the issue also to the developers of those custom components. They should not do direct pinning on a single release, but prefer |
Update requirement in manifest.json for python-miio version to enable compatibility with 0.109.x. In 0.109, python-miio is now at version 0.5.0.1. Current requirement breaks integration with other Xiaomi MIIO devices (see home-assistant/core#34955). Cleargrass and other Xiaomi devices may need to be removed and re-added in configuration.yaml for changes to take effect.
The problem
Two Fans and One Vacuum suddenly disappear in HA, no longer working.
The devices are still controllable by using their own official app.
Environment
https://www.home-assistant.io/integrations/fan.xiaomi_miio/
&
https://www.home-assistant.io/integrations/vacuum.xiaomi_miio/
Problem-relevant
configuration.yaml
Traceback/Error logs
Additional information
Nothing is changed, only upgraded the HA version to latest.
The text was updated successfully, but these errors were encountered: