-
Notifications
You must be signed in to change notification settings - Fork 38
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
非常抱歉。之前一个issues没能跟进。因为一直在管主hass论坛的内容了。美的的华菱空调适配问题。 #15
Comments
这个错误我会在下个版本里修正,取值范围不对
从这台空调返回的数据来看是新协议,数据是以8370开头的,暂时没找到办法解密
等下一个修正的版本,看看其他2台是否可以支持
mac_zhou
在 2020年6月25日,02:05,boyyao <notifications@github.com> 写道:
我现在将msmart升级到最新版本。并且运行midea-discover -d如下: 空调有三台。重复运行midea-discover -d会随机显示其中一台。。
bash-5.0# pip show msmart
Name: msmart
Version: 0.1.19
Summary: A library to control Midea appliances via the Local area network
Home-page: https://github.com/mac-zhou/midea-msmart
Author: mac_zhou
Author-email: mac.zfl@gmail.com<mailto:mac.zfl@gmail.com>
License: UNKNOWN
Location: /usr/local/lib/python3.7/site-packages
Requires: pycryptodome
Required-by:
bash-5.0# midea-discover -d
INFO:msmart.cli:Debug mode active
INFO:msmart.cli:Discovering devices with UDP Broadcast, press CTRL-C to quit...
INFO:msmart.cli:Midea Local Data 192.168.3.29 837000b8200f04055a5a0111a8007a80000000000000000000000000c204020000850000000000000000000000000000195610e33f8ad661d6bcf360d699751ce43a10d55b2c14f8dd337a30238b38c61d0fa9bf7435ce8fdc29858455ac912f32fc917cb459c4a3135aac7ca28ce027a74a0a46d69f23e8ae365d721dfba3998a0fa254619b8d2f622538cb2ff085ec06c416020931f48926620dfe95e231116d3c5561ee26ead19c5988051404fdb68f2c51de7e8ba309244b935150e8845d
ERROR:msmart.security:aes_decrypt error: ValueError('Padding is incorrect.') - data: 195610e33f8ad661d6bcf360d699751ce43a10d55b2c14f8dd337a30238b38c61d0fa9bf7435ce8fdc29858455ac912f32fc917cb459c4a3135aac7ca28ce027
Traceback (most recent call last):
File "/usr/local/bin/midea-discover", line 8, in
sys.exit(discover())
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/msmart/cli.py", line 76, in discover
m_type = m_ssid.split('_')[1]
IndexError: list index out of range
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#15>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA4KC73O4NP567BBZEVAO6DRYI553ANCNFSM4OHAMXCQ>.
|
感谢回复。。三台空调同一个型号。应该是暂时无法被支持了。。期待能在以后加入支持~~如果有需要我可以提供测试环境。。比如开个内网的映射。美的账号,抓包等等。
|
暂不支持 若有后续重开此issue |
@boyyao 有一些进展 请跟我联系一下 |
8370可以解密了吗,我有一个电油汀和微波炉都是8370开头的,这个电油汀的逻辑应该和空调很像 |
8370无法在本地进行解密 需要跟美的云进行交换密钥。 |
好的,谢谢 |
这边分享一下我这边使用8370协议fake server方案的测试结果。局域网内有四台设备,分别为华凌洗碗机、美的冰箱、华凌空调X2。无法完成空调的通讯连接,device.authenticate函数报错。 最新版
|
I'm not sure if v3 is supported. my AC is found but seems to be not supported. Anything i can do to make it work @mac-zhou ? Thanks a lot Norbert
|
新版已经支持 |
我现在将msmart升级到最新版本。并且运行midea-discover -d如下: 空调有三台。重复运行midea-discover -d会随机显示其中一台。。
bash-5.0# pip show msmart
Name: msmart
Version: 0.1.19
Summary: A library to control Midea appliances via the Local area network
Home-page: https://github.com/mac-zhou/midea-msmart
Author: mac_zhou
Author-email: mac.zfl@gmail.com
License: UNKNOWN
Location: /usr/local/lib/python3.7/site-packages
Requires: pycryptodome
Required-by:
bash-5.0# midea-discover -d
INFO:msmart.cli:Debug mode active
INFO:msmart.cli:Discovering devices with UDP Broadcast, press CTRL-C to quit...
INFO:msmart.cli:Midea Local Data 192.168.3.29 837000b8200f04055a5a0111a8007a80000000000000000000000000c204020000850000000000000000000000000000195610e33f8ad661d6bcf360d699751ce43a10d55b2c14f8dd337a30238b38c61d0fa9bf7435ce8fdc29858455ac912f32fc917cb459c4a3135aac7ca28ce027a74a0a46d69f23e8ae365d721dfba3998a0fa254619b8d2f622538cb2ff085ec06c416020931f48926620dfe95e231116d3c5561ee26ead19c5988051404fdb68f2c51de7e8ba309244b935150e8845d
ERROR:msmart.security:aes_decrypt error: ValueError('Padding is incorrect.') - data: 195610e33f8ad661d6bcf360d699751ce43a10d55b2c14f8dd337a30238b38c61d0fa9bf7435ce8fdc29858455ac912f32fc917cb459c4a3135aac7ca28ce027
Traceback (most recent call last):
File "/usr/local/bin/midea-discover", line 8, in
sys.exit(discover())
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/msmart/cli.py", line 76, in discover
m_type = m_ssid.split('_')[1]
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: