question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module named 'miio.fan'

See original GitHub issue

I’m getting such error when checking my configuration or trying to restart HA: Platform error fan.xiaomi_miio_airpurifier - No module named 'miio.fan'

my config:

  fan:
    - platform: xiaomi_miio_airpurifier
      host: 192.168.1.104
      model: zhimi.humidifier.ca1
      name: "Humidifier #1"
      token: !secret xiaomi_humidifier1_token
    - platform: xiaomi_miio_airpurifier
      host: 192.168.1.203
      model: zhimi.humidifier.ca1
      name: "Humidifier #2"
      token: !secret xiaomi_humidifier2_token

HA Version core-2021.11.5 Custom component version = "0.6.17" (depends on python-miio>=0.5.9.2) also default miio component installed (which I believe depends on python-miio==0.5.10)

I do think that this start appearing after last HA restart but I suppose nothing related was changed. I even tried to revert my changes from last restart.

@syssi do you have any idea why this happened?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
dobriyscommented, Mar 3, 2022

Platform error fan.xiaomi_miio_airpurifier - No module named 'miio.fan'

I have this error after update to core-2022.3.0

1reaction
solidsssscommented, Aug 8, 2022

@solidssss Did you update this custom component to the latest version?

Oh, I totally forgot to update it! It works now, thank you so much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xiaomi Miio: Config flow could not be loaded in 2021.4.1
I had a Xiaomi fan/purifier manually configured with the miio platform. ... No module named 'miio.gateway.gateway'; 'miio.gateway' is not a ...
Read more >
ModuleNotFoundError: No module named 'python-miio'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'python-miio' How to remove the Module.
Read more >
python-miio - PyPI
Python library for interfacing with Xiaomi smart appliances.
Read more >
python-miio — python-miio documentation
The miiocli command allows controlling supported devices from the command line, ... supported by their corresponding modules (e.g., roborockvacuum or fan ).
Read more >
注意升级2021.4.0后xiaomi_miio及其不稳定- 『HomeAssistant ...
... to import component: No module named 'miio.gateway.gateway'; 'miio.gateway' is not a package 解决方法升级所有python-miio>=0.5.5.2:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found