Describe the bug
This maybe my lack of understanding but it looks like the token is not being accepted. It's also possible that the G3 is not a supported camera?
Version information (please complete the following information):
OS: RHEL 8.7
python-miio: 0.5.9.2
Device information:
If the issue is specific to a device [Use miiocli device --ip <ip address> --token <token> info]:
$ miiocli --debug aqaracamera --ip 192.168.66.52 --token 64616330613830313132633061383432 info
/home/awm/aqara/venv/lib64/python3.6/site-packages/miio/protocol.py:37: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
from cryptography.hazmat.backends import default_backend
INFO:miio.cli:Debug mode active
DEBUG:miio.click_common:Unknown model, trying autodetection. None None
DEBUG:miio.miioprotocol:Unable to discover a device at address 192.168.66.52
DEBUG:miio.click_common:Exception: Unable to discover the device 192.168.66.52
Traceback (most recent call last):
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/miio/click_common.py", line 59, in __call__
return self.main(*args, **kwargs)
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/miio/click_common.py", line 308, in wrap
kwargs["result"] = func(*args, **kwargs)
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/miio/click_common.py", line 273, in command_callback
return miio_command.call(miio_device, *args, **kwargs)
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/miio/click_common.py", line 220, in call
return method(*args, **kwargs)
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/miio/click_common.py", line 186, in _wrap
self._fetch_info()
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/miio/device.py", line 149, in _fetch_info
devinfo = DeviceInfo(self.send("miIO.info"))
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/miio/device.py", line 104, in send
command, parameters, retry_count, extra_parameters=extra_parameters
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/miio/miioprotocol.py", line 161, in send
self.send_handshake()
File "/home/awm/aqara/venv/lib64/python3.6/site-packages/miio/miioprotocol.py", line 74, in send_handshake
raise DeviceException("Unable to discover the device %s" % self.ip)
miio.exceptions.DeviceException: Unable to discover the device 192.168.66.52
Error: Unable to discover the device 192.168.66.52
Describe the bug This maybe my lack of understanding but it looks like the token is not being accepted. It's also possible that the G3 is not a supported camera?
Version information (please complete the following information):
Device information: If the issue is specific to a device [Use
miiocli device --ip <ip address> --token <token> info
]:To Reproduce