Miio platform is still not working after upgrading to ver 0.63

Error while setting up platform xiaomi_miio
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 84, in async_setup
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/lib/python3.6/asyncio/futures.py”, line 245, in result
raise self._exception
File “/usr/lib/python3.6/asyncio/tasks.py”, line 180, in _step
result = coro.send(None)
File “/usr/lib/python3.6/asyncio/coroutines.py”, line 210, in coro
res = func(*args, **kw)
File “/usr/lib/python3.6/site-packages/homeassistant/components/fan/xiaomi_miio.py”, line 97, in async_setup_platform
from miio import AirPurifier, DeviceException
File “/usr/lib/python3.6/site-packages/miio/init.py”, line 2, in
from miio.protocol import Message, Utils
File “/usr/lib/python3.6/site-packages/miio/protocol.py”, line 179, in
Const(0x2131, Int16ub),
File “/usr/lib/python3.6/site-packages/construct/core.py”, line 1894, in init
super(Const, self).init(subcon)
File “/usr/lib/python3.6/site-packages/construct/core.py”, line 291, in init
raise TypeError(“subcon should be a Construct field”)
TypeError: subcon should be a Construct field

2 Likes

I also just deleted my 0.62.1 version VENV, and installed 0.63 fresh.
I’m getting miio errors too.

Will restart a few times before I’ll post my exact errors, might be still some stuff that I adjusted myself in the past.

Installed the miio platform manually, which got me a bit further.

source /srv/homeassistant/bin/activate
pip3 install -U setuptools
pip3 install python-miio

I think everything is working (gateway, sensors and xiaomi remote), but my philips lightbulb is the only one not working.
I keep getting :

2018-02-11 21:18:19 WARNING (MainThread) [homeassistant.components.light] Platform xiaomi_miio not ready yet. Retrying in 30 seconds.

Same here, hassio 0.63

Yes same here. My Yeelights are working but are now duplicated with default unfriendly names (as well as correct ones) and my Xiaomi switches are still not working. There is nothing in my /config/deps/ folder…

Same error here on 0.63

I have no idea how to install miio manually,pip3 command is not available on hassio.

Sorry, can’t help you with that. Not running hassio. Running it on a DietPi in a Python Virtual Environment.

Thank you for trying to help. now it seems that we have to wait for next update.

Hassio users can find some hints here: https://github.com/home-assistant/hassio/issues/356

2 Likes

Thanks for your headsup.:grinning: