『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: mac_zhou

[插件集成] 美的空调-局域网协议控制[新协议已支持]

  [复制链接]

1

主题

34

帖子

189

积分

注册会员

Rank: 2

积分
189
金钱
155
HASS币
0
发表于 2021-9-17 19:26:32 | 显示全部楼层
美的风管机,一直报这个错误。请教是什么问题
此错误来自自定义集成。

Logger: homeassistant.helpers.entity
Source: custom_components/midea_ac/climate.py:133
Integration: midea_ac (documentation)
First occurred: 19:15:10 (118 occurrences)
Last logged: 19:29:41

Update for climate.midea_ac_160528702769480 fails
Update for climate.midea_ac_162727726127980 fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 446, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 641, in async_device_update
    raise exc
  File "/config/custom_components/midea_ac/climate.py", line 133, in async_update
    await self.hass.async_add_executor_job(self._device.refresh)
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/msmart/device.py", line 198, in refresh
    self._send_cmd(cmd)
  File "/usr/local/lib/python3.9/site-packages/msmart/device.py", line 208, in _send_cmd
    responses = self._lan_service.appliance_transparent_send_8370(data)
  File "/usr/local/lib/python3.9/site-packages/msmart/lan.py", line 136, in appliance_transparent_send_8370
    data = self.security.encode_8370(data, msgtype)
  File "/usr/local/lib/python3.9/site-packages/msmart/security.py", line 117, in encode_8370
    data = self.aes_cbc_encrypt(data, self._tcp_key) + sign
  File "/usr/local/lib/python3.9/site-packages/msmart/security.py", line 57, in aes_cbc_encrypt
    return AES.new(key, AES.MODE_CBC, iv=self.iv).encrypt(raw)
  File "/usr/local/lib/python3.9/site-packages/Cryptodome/Cipher/AES.py", line 232, in new
    return _create_cipher(sys.modules[__name__], key, mode, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/Cryptodome/Cipher/__init__.py", line 79, in _create_cipher
    return modes[mode](factory, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/Cryptodome/Cipher/_mode_cbc.py", line 274, in _create_cbc_cipher
    cipher_state = factory._create_base_cipher(kwargs)
  File "/usr/local/lib/python3.9/site-packages/Cryptodome/Cipher/AES.py", line 92, in _create_base_cipher
    if len(key) not in key_size:
TypeError: object of type 'NoneType' has no len()
回复

使用道具 举报

0

主题

50

帖子

183

积分

注册会员

Rank: 2

积分
183
金钱
133
HASS币
0
发表于 2021-9-28 09:36:30 | 显示全部楼层
冰箱支持吗
回复

使用道具 举报

0

主题

53

帖子

711

积分

高级会员

Rank: 4

积分
711
金钱
658
HASS币
0
发表于 2021-10-2 21:53:45 | 显示全部楼层
bash-5.0# midea-discover -d
INFO:msmart.cliebug mode active
INFO:msmart.cli:msmart version: 0.1.35 Currently only supports ac devices.
INFO:msmart.cli:Sending Device Scan Broadcast...
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:msmart.scanner:Broadcast message sent: 0
DEBUG:msmart.scanner:Socket timeout
大神,这是什么原因啊?收不到任何信息
回复

使用道具 举报

0

主题

53

帖子

711

积分

高级会员

Rank: 4

积分
711
金钱
658
HASS币
0
发表于 2021-10-4 23:13:38 | 显示全部楼层
@mac_zhou,大神,我的是美的风管机,读到的类型是CC,这个能弄吗?

C:\WINDOWS\system32>midea-discover -d
INFO:msmart.cliebug mode active
INFO:msmart.cli:msmart version: 0.1.35 Currently only supports ac devices.
INFO:msmart.cli:Sending Device Scan Broadcast...
DEBUG:asyncio:Using proactor: IocpProactor
DEBUG:msmart.scanner:Broadcast message sent: 0
DEBUG:msmart.scanner:Midea Local Data 192.168.0.70 5a5a0111a8007a80000000000000000000000000e06d10000093000000000000000000000000000051d8c6fd426ebc049b8b33730dac4ef1cf62360af3330b15a1a171394fbfa2b15aeb823928c647f8e95d8c67ab0a25b28c87648ec4a39b0566cb5e88c74dfe15db18dd57ff5fa0da7cefe582ffa73309a291ec66d1ce54537b2b84477b7c7d3d06c416020931f48926620dfe95e23111e0b29f454db894ebaf3b034682f08108
DEBUG:msmart.scannerecrypt Reply: 192.168.0.70 4600a8c02c19000030303030434350303030303030304d33333832313837413043373434303030300d6d696465615f63635f433734340000000002000000000000000000cc00000000000000382187a0c7440511030417130108000000000000000000000000000000000000000000
DEBUG:msmart.scanner:Socket timeout
DEBUG:msmart.scanner:*** Found a device: {'type': 'cc', 'support': False, 'version': 2, 'ip': '192.168.0.70', 'id': 161628210359776, 'port': 6444, 'token': None, 'key': None, 'ssid': 'midea_cc_C744'} 
INFO:msmart.cli:*** Found a device: {'type': 'cc', 'support': False, 'version': 2, 'ip': '192.168.0.70', 'id': 161628210359776, 'port': 6444, 'token': None, 'key': None, 'ssid': 'midea_cc_C744'} 
回复

使用道具 举报

0

主题

17

帖子

101

积分

注册会员

Rank: 2

积分
101
金钱
84
HASS币
0
发表于 2021-10-18 21:45:48 | 显示全部楼层

编辑好的格式是不是这样的大佬

1.jpg
回复

使用道具 举报

1

主题

18

帖子

116

积分

注册会员

Rank: 2

积分
116
金钱
98
HASS币
0
发表于 2021-10-19 17:10:50 | 显示全部楼层
这个华凌能够支持吗
回复

使用道具 举报

0

主题

5

帖子

121

积分

注册会员

Rank: 2

积分
121
金钱
116
HASS币
0
发表于 2021-10-19 22:55:02 | 显示全部楼层
美的热水器可以支持吗?
回复

使用道具 举报

0

主题

2

帖子

82

积分

注册会员

Rank: 2

积分
82
金钱
80
HASS币
0
发表于 2021-10-20 16:29:36 | 显示全部楼层
有没有大佬来匹配下 美的的空气能热水器呀
root@nanopim1:~/.homeassistant# midea-discover -d
INFO:msmart.cli:Debug mode active
INFO:msmart.cli:msmart version: 0.1.35 Currently only supports ac devices.
INFO:msmart.cli:Sending Device Scan Broadcast...
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:msmart.scanner:Broadcast message sent: 0
DEBUG:msmart.scanner:Midea Local Data 192.168.1.141 5a5a0111a8007a80000000000000000000000000cb52180000920000000000000000000000000000d72d158ca6bd849812307e275bc1515655834bdd4e5826d8837415bff60fb680163644b56da489f89216a1c626308423d5118d46b3cb7f90309bc3c8390d6d5640ac3d30fc11c08b449474046a864df9316722d768d9ac8c750ed6f06038711706c416020931f48926620dfe95e23111866bbb42dfedb38b7e68cf27cf89f7e8
DEBUG:msmart.scanner:Decrypt Reply: 192.168.1.141 8d01a8c02c1900003030303043443131313030304b383646313139423038343030323538303030300d6d696465615f63645f303235380000000002000000000000000000cd00ba00000000003821879f8c4f0511030417130108000000000000000000000000000000000000000000
DEBUG:msmart.scanner:Socket timeout
DEBUG:msmart.scanner:*** Found a device: {'type': 'cd', 'support': False, 'version': 2, 'ip': '192.168.1.141', 'id': 160528699249355, 'port': 6444, 'token': None, 'key': None, 'ssid': 'midea_cd_0258'}
INFO:msmart.cli:*** Found a device: {'type': 'cd', 'support': False, 'version': 2, 'ip': '192.168.1.141', 'id': 160528699249355, 'port': 6444, 'token': None, 'key': None, 'ssid': 'midea_cd_0258'}
回复

使用道具 举报

14

主题

187

帖子

2731

积分

金牌会员

Rank: 6Rank: 6

积分
2731
金钱
2544
HASS币
0
发表于 2021-10-21 20:24:26 | 显示全部楼层
大神帮忙看一下 警告太多了
123.jpg
回复

使用道具 举报

7

主题

208

帖子

1650

积分

金牌会员

Rank: 6Rank: 6

积分
1650
金钱
1442
HASS币
0
发表于 2021-10-24 10:04:04 来自手机 | 显示全部楼层
ddtou 发表于 2021-9-17 18:49
可以用在洗衣机上吗。小天鹅的应该也是同样的协议

找到解决方案了吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-23 05:03 , Processed in 0.060810 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表