-
Notifications
You must be signed in to change notification settings - Fork 39
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
ERROR:msmart.security:authentication failed #75
Comments
I have 2 ACs under the same Wi-Fi. |
try again |
Still not working. Same error "TypeError: argument 2 must be bytes, not bytearray". |
please enable debug mode, then show me the output |
@mac-zhou Here's the debug-mode output. It seems that the script has acquired the token?
|
EDIT: It works on my Raspberry Pi 4 but not on my iMac Hi I'm getting the same issue involving TypeError but even before providing credentials Here' is my debug output
|
Problem solved by using Win10 + Python3.10 + without any arguments. Perhaps, the error is due to the environment? |
midea-discover -cn -i 192.168..* -a 1********** -p ********
INFO:msmart.cli:msmart version: 0.2.3 Currently only supports ac devices, only support MSmartHome and 美的美居 APP.
INFO:msmart.cloud:Using Midea cloud server: https://mp-prod.smartmidea.net/mas/v5/app/proxy?alias= True
ERROR:msmart.security:authentication failed
ERROR:msmart.lan:Authentication failed for 192.168..:56074 -> 192.168..**:6444 retries: 0 time: 0.05
Traceback (most recent call last):
File "/Users/jacob/anaconda/bin/midea-discover", line 11, in
load_entry_point('msmart==0.2.3', 'console_scripts', 'midea-discover')()
File "/Users/jacob/anaconda/lib/python3.6/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/Users/jacob/anaconda/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/Users/jacob/anaconda/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/jacob/anaconda/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/Users/jacob/anaconda/lib/python3.6/site-packages/msmart-0.2.3-py3.6.egg/msmart/cli.py", line 51, in discover
File "/Users/jacob/anaconda/lib/python3.6/asyncio/base_events.py", line 466, in run_until_complete
return future.result()
File "/Users/jacob/anaconda/lib/python3.6/site-packages/msmart-0.2.3-py3.6.egg/msmart/scanner.py", line 205, in get
File "/Users/jacob/anaconda/lib/python3.6/site-packages/msmart-0.2.3-py3.6.egg/msmart/scanner.py", line 199, in _process_tasks
File "/Users/jacob/anaconda/lib/python3.6/site-packages/msmart-0.2.3-py3.6.egg/msmart/scanner.py", line 199, in
File "/Users/jacob/anaconda/lib/python3.6/site-packages/msmart-0.2.3-py3.6.egg/msmart/scanner.py", line 50, in support_test
File "/Users/jacob/anaconda/lib/python3.6/site-packages/msmart-0.2.3-py3.6.egg/msmart/scanner.py", line 66, in support_testv3
File "/Users/jacob/anaconda/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/jacob/anaconda/lib/python3.6/site-packages/msmart-0.2.3-py3.6.egg/msmart/device/base.py", line 38, in authenticate
File "/Users/jacob/anaconda/lib/python3.6/site-packages/msmart-0.2.3-py3.6.egg/msmart/device/base.py", line 42, in _authenticate
File "/Users/jacob/anaconda/lib/python3.6/site-packages/msmart-0.2.3-py3.6.egg/msmart/lan.py", line 113, in authenticate
File "/Users/jacob/anaconda/lib/python3.6/site-packages/msmart-0.2.3-py3.6.egg/msmart/security.py", line 112, in tcp_key
TypeError: argument 2 must be bytes, not bytearray
The text was updated successfully, but these errors were encountered: