Error setting up xiaomi_miio platform in 0.61.1

The root cause was identified. The story will end soon! :stuck_out_tongue:

1 Like

I have the problem on 0.63.1

Looking forward to a fix as I only added the platform and got the yeelight and air purifier after the bug.

yes obviously

is it solved in 0.63.3?

So they say… I’m waiting for the Hassio upgrade to be available to see.

OK I just upgraded to 0.63.3
The Nightmare is over!

glad to hear. now you can see thee vacuum again?

I don’t have the vacuum - just the original WiFi switches and they are both visible again now.

Vacuum working great here on 63.3!

same problem on 0.64.0 wifi plug
“Platform xiaomi_miio not ready yet. Retrying in 90 seconds”

(homeassistant) homeassistant@hassbian:/home/pi $ pip3 show construct | grep Version:
Version: 2.9.31
(homeassistant) homeassistant@hassbian:/home/pi $ pip3 show python-miio | grep Version:
Version: 0.3.7
(homeassistant) homeassistant@hassbian:/home/pi $ pip3 show homeassistant | grep Version:
Version: 0.64.0

@Hafun Please enable the debug output for your device:

logger:
  default: warn
  logs:
    miio: debug
    homeassistant.components.switch.xiaomi_miio: debug

Restart home assistant and provide the content of the home-assistant.log.

I got this error in 0.94.4:

2019-07-31_00:09:43.37361 2019-07-31 07:09:43 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform xiaomi_miio
2019-07-31_00:09:43.37365 Traceback (most recent call last):
2019-07-31_00:09:43.37366   File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
2019-07-31_00:09:43.37367     SLOW_SETUP_MAX_WAIT)
2019-07-31_00:09:43.37368   File "/data/data/com.termux/files/usr/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
2019-07-31_00:09:43.37369     return fut.result()
2019-07-31_00:09:43.37370   File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/components/xiaomi_miio/light.py", line 110, in async_setup_platform
2019-07-31_00:09:43.37371     from miio import Device, DeviceException
2019-07-31_00:09:43.37372   File "/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.7/site-packages/miio/__init__.py", line 2, in <module>
2019-07-31_00:09:43.37373     from miio.airconditioningcompanion import AirConditioningCompanion
2019-07-31_00:09:43.37374   File "/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.7/site-packages/miio/airconditioningcompanion.py", line 8, in <module>
2019-07-31_00:09:43.37392     from .device import Device, DeviceException
2019-07-31_00:09:43.37394   File "/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.7/site-packages/miio/device.py", line 16, in <module>
2019-07-31_00:09:43.37395     from .protocol import Message
2019-07-31_00:09:43.37396   File "/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.7/site-packages/miio/protocol.py", line 25, in <module>
2019-07-31_00:09:43.37397     from cryptography.hazmat.primitives import padding
2019-07-31_00:09:43.37398   File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/cryptography/hazmat/primitives/padding.py", line 13, in <module>
2019-07-31_00:09:43.37399     from cryptography.hazmat.bindings._padding import lib
2019-07-31_00:09:43.37400 ImportError: dlopen failed: library "libffi.so.6" not found

Can you help? @syssi
I can setup Miami_miio platform worked in early version of HA

Please install libffi-dev.