xiaomi_miio_airpurifier: the fan is not created (2022.8)
See original GitHub issueThe problem
Starting from 2022.8 - this error in the log:
2022-08-03 17:36:03.887 ERROR (MainThread) [homeassistant.components.homeassistant] The system cannot restart because the configuration is not valid: Platform error fan.xiaomi_miio_airpurifier - No module named 'miio.airfresh'
2022-08-03 17:36:03.894 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140642317950912] The system cannot restart because the configuration is not valid: Platform error fan.xiaomi_miio_airpurifier - No module named 'miio.airfresh'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 746, in admin_handler
await result
File "/usr/src/homeassistant/homeassistant/components/homeassistant/__init__.py", line 174, in async_handle_core_service
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Platform error fan.xiaomi_miio_airpurifier - No module named 'miio.airfresh'
My fan
entity is not created:
fan:
- platform: xiaomi_miio_airpurifier
name: ...
host: ...
token: ...
model: dmaker.airfresh.t2017
What version of Home Assistant Core has the issue?
2022.8.0
What was the last working version of Home Assistant Core?
2022.7.7
What type of installation are you running?
Home Assistant Container
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Xiaomi Mi Air Purifier & Xiaomi Mi Air Humidifier - GitHub
This is a custom component for home assistant to integrate the Xiaomi Mi Air Purifier 2, Air Purifier 2S, Air Purifier Pro, Air...
Read more >Mi Air Purifier 3H - Xiaomi United States
New powerful air duct system. Delivers 6330 liters of purified air per minute* · Rear-tilting centrifugal fan +. Customized brushless motor. A powerful ......
Read more >Xiaomi Mi 2 Auto Mode Leaves Air Unsafe for 86% of Hours
Xiaomi Air Purifier Review. Learn why the Xiaomi 2 Air Purifier gives unsafe air 86% of the time. We tested the Xiaomi Mi2...
Read more >Xiaomi Mi 3H Air Purifier Review - Smart & Efficient (2022)
Xiaomi Mi 3H does not require complicated preparation before the ... The company developed a rear-tilting centrifugal fan that can move air ......
Read more >2019 karete filmleri - immper.com is for sale
Additionally, Disney (not counting Marvel Studios or Lucasfilm) saw four films cross $1 billion, the studio's highest amount in any calendar year. joker...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will prepare a fix at the weekend.
I would be happy if somebody could test these changes: https://github.com/syssi/xiaomi_airpurifier/pull/294
For example by copying/overwriting this file at the custom components folder: https://raw.githubusercontent.com/syssi/xiaomi_airpurifier/b7d55a489937862e1660660d0d657cfa88f705cc/custom_components/xiaomi_miio_airpurifier/fan.py