-
-
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
discover_devices doesnt work with xiaomi gateway v3 #916
Comments
no one? :( |
It looks like the |
Uh... it's |
You could try to replace this line: Line 284 in c4ab5e6
with
But I don't know the supported format. May be you've luck!? :-) |
i changed the line You mention, still no luck: |
|
Sorry for not seeing this topic earlier, lumi.gateway.mgl03 was not yet supported. |
I think this issue can therefore be closed. |
Hello,
im writing with some problem. when im running this in python3.6:
but, when im doing it like this:
[root@xxx]# miiocli gateway --ip 192.168.1.201 --token 3473613977763634775674464d653232 discover_devices
Running command discover_devices
Error: {'code': -5015, 'message': 'device not found'}
i got an error :(
im using centos8 and python:
[root@xxx]# pip3 show python-miio
Name: python-miio
Version: 0.5.4
Summary: Python library for interfacing with Xiaomi smart appliances
Home-page: https://github.com/rytilahti/python-miio
Author: Teemu R
Author-email: tpr@iki.fi
License: GPL-3.0-only
Location: /usr/local/lib/python3.6/site-packages
Requires: android-backup, croniter, netifaces, appdirs, construct, pytz, cryptography, click, tqdm, zeroconf, attrs, importlib-metadata
but when im runnig:
[root@xxxx]# miiocli gateway --ip 192.168.1.201 --token 3473613977763634775674464d653232 info
Model: lumi.gateway.mgl03
Hardware version: Linux
Firmware version: 1.4.6_0043
everything is fine
when i do: print(gateway.discover_devices()) but get_device_list is working hmm?
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.6/site-packages/miio/gateway.py", line 284, in discover_devices
devices_raw = self.get_prop("device_list")
File "/usr/local/lib/python3.6/site-packages/miio/gateway.py", line 330, in get_prop
return self.send("get_device_prop", ["lumi.0", property])
File "/usr/local/lib/python3.6/site-packages/miio/device.py", line 144, in send
command, parameters, retry_count, extra_parameters=extra_parameters
File "/usr/local/lib/python3.6/site-packages/miio/miioprotocol.py", line 213, in send
self._handle_error(payload["error"])
File "/usr/local/lib/python3.6/site-packages/miio/miioprotocol.py", line 273, in _handle_error
raise DeviceError(error)
miio.exceptions.DeviceError: {'code': -5015, 'message': 'device not found'}
i got the xiaomi gateway v3 with aqara cube, zigbee socket, and 4 temperature aqara sensors. What could i do?
The text was updated successfully, but these errors were encountered: