Xiaomi vacuum disappear

hi all, after upgrading to 0.62 of hass.io, the xiaomi vacuum disappear from the ui. i can’t even find it in the entities page. I double check the token but it is correct, so the ip address and the configuration.yaml.
The vacuum it’s correctly displayed on the mi home app and it works fine. any ideas?
that’s the error in the logger:

2018-01-30 19:23:56 ERROR (MainThread) [homeassistant.components.vacuum] Error while setting up platform xiaomi_miio
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 189, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.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/vacuum/xiaomi_miio.py", line 90, in async_setup_platform
    from miio import Vacuum
  File "/usr/lib/python3.6/site-packages/miio/__init__.py", line 2, in <module>
    from miio.protocol import Message, Utils
  File "/usr/lib/python3.6/site-packages/miio/protocol.py", line 179, in <module>
    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
1 Like

Mine also vanished.
Keep me posted please

it’s seems that the robot component it’s broken

Dirty workaround:

/usr/lib/python3.6/site-packages/miio/protocol.py", line 179, in
Const(0x2131, Int16ub)

Swap 0x2131, Int16ub in line 179 at /usr/lib/python3.6/site-packages/miio/protocol.py will fix this issue.but not sure how to achieve those in hassio

Int16ub, 0x2131 <<<< like this

Thanks for the replay, i nope in a fix soon.

Mine is gone as well… :thinking:

Do you have hassbian or hass.io?

hass.io 0.62.0

i can’t figure out why some people have this problem and other not…

i can’t find the path in hass.io

i had the problem as well on hass.io and downgraded again. i am pretty sure its for every hass.io 0.62 user!

sorry for th noob queestion, how can i downgrade? thre is a command?
the prroblem will be solved in the next update. https://home-assistant.io/blog/2018/01/27/release-62/#release-0621---january-30

you can downgrade after installing SSH addon and then with this command:

curl -d ‘{“version”: “0.61.0”}’ http://hassio/homeassistant/update

I dont think it is fixed in 0.62.1 as I dont see anything about it in the changelog. But there is an open github-issue (Miio platform broken after upgrade 0.62 (hass.io) · Issue #12017 · home-assistant/core · GitHub) on the topic…

You can find it in “all changes”

The change under ‘all changes’ is the update that broke everything in the first place, so it would need to be fixed in 0.62.1, 0.62.2 etc.

@teprrr that is not possible under hass.io unfortunately.

the curl command does not works on hassio
he says: curl: (3) [globbing] unmatched close brace/bracket in column 13

Yep. Also affects the WiFi switches. I’ll just wait it out till it’s fixed. I don’t have 0.62.1 yet anyway and I’m not going back to 0.61.1 just for this. I can wait.

Its specifically for hass.io :wink: try typing it into the window instead of copy paste. I think the ’ / " get messed up by the codeeditor in this forum (sorry should have said so before)

Got the same problem.
Yesterday it worked on the previous version.
Now running hassio 0.62 and the component is gone.