-
-
Notifications
You must be signed in to change notification settings - Fork 566
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
Unable to discover a device #217
Comments
I have an exactly the same issue. Since HA 0.63 i get this
|
Think I found what's wrong. My Traceback points to the
Quick n dirty solution: manually uninstall construct and re-install it at a specific version ( Better solution: explicitly require a specific version in |
@DJLemkes You are right. construct==2.9.30 broke the library again. :-( |
This protects against breaking changes in construct API as encountered in rytilahti#217.
@syssi @DJLemkes root@raspberrypi:~# mirobo --ip 192.168.0.100 --token xxxxxxxxxxxxx -d status root@raspberrypi:~# mirobo discover |
Are you able to ping the device (192.168.0.100)? Are you sure about the used token? |
@syssi I can ping the device. I sure the token is right. |
What kind of device it is? |
@syssi My device is chuangmi plug v1 (1 Socket, 1 USB Port).
I can discover the device, but I command
And in ha, I still get error:
This is my pip3 list, python version is 3.5.3
What's the problem, please? |
I assume you have installed "python-miio" and "construct" multiple times. There will be a system install under
is an error of construct 2.9.30. |
@syssi You are right. It works now. Thank you very much! |
I have Xiaomi Mi Smart Socket Plug (1 Socket, 1 USB Port) . this is homeassistant.log:
2018-02-13 10:29:21 ERROR (Thread-17) [miio.device] Got error when receiving: timed out
2018-02-13 10:29:21 WARNING (Thread-17) [miio.device] Retrying with incremented id, retries left: 3
2018-02-13 10:29:57 ERROR (Thread-11) [miio.device] Unable to discover a device at address 192.168.0.100
2018-02-13 10:29:57 ERROR (Thread-13) [miio.device] Unable to discover a device at address 192.168.0.100
2018-02-13 10:29:57 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.0.100
2018-02-13 10:29:57 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.0.100
And I try command mirobo --ip 192.168.0.100 --token xxxxxxxxx -d status
INFO:miio.vacuum_cli:Debug mode active
DEBUG:miio.vacuum_cli:Connecting to 192.168.0.100 with token xxxxxxxxxx
WARNING:miio.device:error while reading discover results: _decode() takes 3 positional arguments but 4 were given
ERROR:miio.device:Unable to discover a device at address 192.168.0.100
DEBUG:miio.click_common:Exception: Unable to discover the device 192.168.0.100
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/miio/click_common.py ", line 47, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/core.py ", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/click/core.py ", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.5/dist-packages/click/core.py ", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.5/dist-packages/click/core.py ", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/decorators.py ", line 64, in new_func
return ctx.invoke(f, obj, *args[1:], **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/core.py ", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/miio/vacuum_cli.py ", line 100, in status
res = vac.status()
File "/usr/local/lib/python3.5/dist-packages/miio/vacuum.py ", line 108, in status
return VacuumStatus(self.send("get_status")[0])
File "/usr/local/lib/python3.5/dist-packages/miio/device.py ", line 204, in send
self.do_discover()
File "/usr/local/lib/python3.5/dist-packages/miio/device.py ", line 144, in do_discover
raise DeviceException("Unable to discover the device %s" % self.ip)
miio.device.DeviceException: Unable to discover the device 192.168.0.100
Error: Unable to discover the device 192.168.0.100
miio version==0.3.5, ha version=0.63.1, how can I do?
The text was updated successfully, but these errors were encountered: