Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiaomi Vacuum no longer works in 0.57 #10343

Closed
bachya opened this issue Nov 4, 2017 · 8 comments
Closed

Xiaomi Vacuum no longer works in 0.57 #10343

bachya opened this issue Nov 4, 2017 · 8 comments

Comments

@bachya
Copy link
Contributor

bachya commented Nov 4, 2017

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.57.0

Python release (python3 --version):
3.6.1

Component/platform:
vacuum/xiaomi_miio

Description of problem:
With the upgrade to 0.57 (from 0.56.2), my vacuum's status is unavailable. I cannot control the vacuum at all, nor can I see any data coming into it. I can confirm that it is connected to my LAN (given that I can still connect through the MiHome app). I can also confirm that my token is the same as always.

Expected:
The opposite.

Problem-relevant configuration.yaml entries and steps to reproduce:

vacuum:
  platform: xiaomi_miio
  host: 192.168.1.130
  token: xxxxxxxxxxxxxxxxxxxxxxxxxx
  1. Launch HASS 0.57

Traceback (if applicable):
The logs are filled with these messages:

2017-11-04 11:31:44 ERROR (SyncWorker_18) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:32:05 ERROR (SyncWorker_2) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:32:25 ERROR (SyncWorker_12) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:32:45 ERROR (SyncWorker_17) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:33:06 ERROR (SyncWorker_10) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:33:27 ERROR (SyncWorker_18) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:33:48 ERROR (SyncWorker_7) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:34:09 ERROR (SyncWorker_18) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:34:30 ERROR (SyncWorker_3) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:34:51 ERROR (SyncWorker_8) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:35:12 ERROR (SyncWorker_18) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:35:33 ERROR (SyncWorker_3) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:35:54 ERROR (SyncWorker_7) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:36:15 ERROR (SyncWorker_7) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:36:36 ERROR (SyncWorker_3) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:36:57 ERROR (SyncWorker_19) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:37:18 ERROR (SyncWorker_0) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:37:39 ERROR (SyncWorker_17) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:38:00 ERROR (SyncWorker_17) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:38:21 ERROR (SyncWorker_12) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:38:42 ERROR (SyncWorker_9) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:39:03 ERROR (SyncWorker_9) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:39:24 ERROR (SyncWorker_13) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:39:44 ERROR (SyncWorker_12) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:40:05 ERROR (SyncWorker_12) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:40:26 ERROR (SyncWorker_5) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:40:47 ERROR (SyncWorker_0) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:41:08 ERROR (SyncWorker_8) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:41:29 ERROR (SyncWorker_0) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:41:50 ERROR (SyncWorker_13) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:42:11 ERROR (SyncWorker_19) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:42:32 ERROR (SyncWorker_14) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:42:53 ERROR (SyncWorker_9) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:43:14 ERROR (SyncWorker_3) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:43:35 ERROR (SyncWorker_8) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:43:56 ERROR (SyncWorker_9) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:44:17 ERROR (SyncWorker_10) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:44:38 ERROR (SyncWorker_14) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:44:59 ERROR (SyncWorker_12) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:45:20 ERROR (SyncWorker_5) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:45:41 ERROR (SyncWorker_15) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:46:02 ERROR (SyncWorker_9) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:46:23 ERROR (SyncWorker_14) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:46:44 ERROR (SyncWorker_19) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:47:05 ERROR (SyncWorker_2) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:47:26 ERROR (SyncWorker_10) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:47:47 ERROR (SyncWorker_13) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:48:08 ERROR (SyncWorker_5) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:48:29 ERROR (SyncWorker_15) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:48:50 ERROR (SyncWorker_10) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:49:11 ERROR (SyncWorker_8) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:49:32 ERROR (SyncWorker_0) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:49:53 ERROR (SyncWorker_3) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:50:14 ERROR (SyncWorker_11) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:50:35 ERROR (SyncWorker_18) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:50:56 ERROR (SyncWorker_14) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:51:17 ERROR (SyncWorker_17) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:51:38 ERROR (SyncWorker_13) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:51:59 ERROR (SyncWorker_0) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:52:20 ERROR (SyncWorker_8) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:52:41 ERROR (SyncWorker_1) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:53:02 ERROR (SyncWorker_3) [miio.device] Unable to discover a device at address 192.168.1.130
2017-11-04 11:53:23 ERROR (SyncWorker_19) [miio.device] Unable to discover a device at address 192.168.1.130

Additional info:
This may be related to #10210; however, unlike that ticket, in this case, I cannot control my vacuum from HASS whatsoever.

CC: @rytilahti, @syssi

@olskar
Copy link
Contributor

olskar commented Nov 4, 2017

I can not replicate this problem..

Are you able to discover it using https://github.com/rytilahti/python-miio ?

@bachya
Copy link
Contributor Author

bachya commented Nov 4, 2017

@olskar Unfortunately, no. The device is definitely connected to the LAN:

screen shot 2017-11-04 at 3 21 54 pm

...but when I run this command:

$ mirobo --ip 192.168.1.130 --token xxxxxxxxxxxxxxxxxxxxxxxxxxxx

...I get this output:

ERROR:miio.vacuum_cli:Unable to read the stored msgid: [Errno 2] No such file or directory: '/tmp/python-mirobo.seq'
ERROR:miio.device:Unable to discover a device at address 192.168.1.130
Traceback (most recent call last):
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/bin/mirobo", line 11, in <module>
    sys.exit(cli())
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/click/core.py", line 1043, in invoke
    return Command.invoke(self, ctx)
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/miio/vacuum_cli.py", line 86, in cli
    ctx.invoke(status)
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args[1:], **kwargs)
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/miio/vacuum_cli.py", line 116, in status
    res = vac.status()
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/miio/vacuum.py", line 99, in status
    return VacuumStatus(self.send("get_status")[0])
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/miio/device.py", line 165, in send
    self.do_discover()
  File "/Users/abach/.local/share/virtualenvs/miio-Q_DY263b/lib/python3.6/site-packages/miio/device.py", line 118, in do_discover
    raise DeviceException("Unable to discover the device %s" % self.ip)
miio.device.DeviceException: Unable to discover the device 192.168.1.130

I've hard reset the device, but that didn't seem to change anything.

@ferdydek
Copy link

ferdydek commented Nov 4, 2017

Which FW version is running on the vacuum?

@bachya
Copy link
Contributor Author

bachya commented Nov 4, 2017

3.3.9_003307

EDIT: 3.3.9.003077

@ferdydek
Copy link

ferdydek commented Nov 5, 2017

im on 3.3.9.003077, not sure if you are on higher version or its a typo (assuming the latter).
I'm on hass.io so I cant replicate your issue. With my setup there is (except the same discovery logs) no issue with actual function of the device.
Did you setup the battery/fan/etc sensors. Does any of them work at all ?

@olskar
Copy link
Contributor

olskar commented Nov 5, 2017

Seems to be a bug in mirobo, not home assistant

rytilahti/python-miio#92

@bachya
Copy link
Contributor Author

bachya commented Nov 5, 2017

@ferdydek I had several sensors pulling data from the vacuum; currently, no values appear:

screen shot 2017-11-05 at 11 05 13 am

@bachya
Copy link
Contributor Author

bachya commented Nov 6, 2017

Got it figured it. At some point, it looks like the token changed on me; rediscovered it (using the instructions on the website) and everything started working again. Going to close.

@bachya bachya closed this as completed Nov 6, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Mar 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants