美的空调能找到实体,无法控制

按照https://bbs.iobroker.cn/t/topic/8127教程,把美的空调添加到lovelace里,没接入homekit,能找到实体,但是无法控制。是什么原因

提供一些具体操作过程截图,你这样,我们无法判断你是哪里出了问题。
只能回复你,你可能设置不正确。

Logger: msmart.device
Source: /usr/local/lib/python3.9/site-packages/msmart/device.py:217
First occurred: 13:11:29 (1554 occurrences)
Last logged: 16:25:16

  • Got Null from 192.168.10.24:6444 Version: 2 Count: 0 Time(s): 7.01
  • Got Null from 192.168.10.22:6444 Version: 2 Count: 0 Time(s): 5.01
  • Got Null from 192.168.10.24:6444 Version: 2 Count: 0 Time(s): 5.01
  • Got Null from 192.168.10.22:6444 Version: 2 Count: 0 Time(s): 5.02
  • Got Null from 192.168.10.24:6444 Version: 2 Count: 0 Time(s): 5.03

你用易微联家的云端对接看,那个简单,教程后面有补充

1630918298(1)
易微联的云端我也使用了,但是一直无法登陆,我把手机端退出后也无法登陆

用户名和密码是用易微联的用户名和密码

是的 确实是易微联的账号和密码 我反复确认好几遍

你搞错了哦


我这里为什么是这样的 我就是从帖子里下载的文件

不知道是不是版本的更迭问题。我查查看

看看这个插件

https://bbs.hassbian.com/thread-9937-1-1.html

这个可以!但是奇怪的是三台空调,midea-discover只能找到一台token

你是一些那个找到token的,能不能接入。另外没有token的是v3版本
v3版本的作者还没有简化,你可以先按照上面v3的教程,搞一下。

找到了一个token 可以控制,但是奇怪的是还有两台一样规格型号的空调搜不到,现在用midea-discover搜索不到任何设备,midea-discover直接报错

e]0;root@smarthomefansbox: ~aroot@smarthomefansbox:~# midea-discover
INFO:msmart.cli:msmart version: 0.1.35 Currently only supports ac devices.
INFO:msmart.cli:Sending Device Scan Broadcast…
Traceback (most recent call last):
File “/usr/local/bin/midea-discover”, line 10, in
sys.exit(discover())
File “/usr/local/lib/python3.7/dist-packages/click/core.py”, line 1137, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.7/dist-packages/click/core.py”, line 1062, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.7/dist-packages/click/core.py”, line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.7/dist-packages/click/core.py”, line 763, in invoke
return __callback(*args, **kwargs)
File “/usr/local/lib/python3.7/dist-packages/msmart/cli.py”, line 43, in discover
found_devices = loop.run_until_complete(discovery.get_all())
File “/usr/lib/python3.7/asyncio/base_events.py”, line 584, in run_until_complete
return future.result()
File “/usr/local/lib/python3.7/dist-packages/msmart/scanner.py”, line 179, in get_all
[self.result.add(task.result()) for task in tasks]
File “/usr/local/lib/python3.7/dist-packages/msmart/scanner.py”, line 179, in
[self.result.add(task.result()) for task in tasks]
File “/usr/local/lib/python3.7/dist-packages/msmart/scanner.py”, line 42, in support_test
_device = await self.support_testv3(account, password)
File “/usr/local/lib/python3.7/dist-packages/msmart/scanner.py”, line 57, in support_testv3
token, key = await loop.run_in_executor(None, gettoken, udpid, account, password)
File “/usr/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.7/dist-packages/msmart/scanner.py”, line 234, in gettoken
Client.login()
File “/usr/local/lib/python3.7/dist-packages/msmart/cloud.py”, line 120, in login
‘password’: self.security.encryptPassword(self.login_id, self.password)
File “/usr/local/lib/python3.7/dist-packages/msmart/cloud.py”, line 86, in api_request
self.handle_api_error(int(response[‘errorCode’]), response[‘msg’])
File “/usr/local/lib/python3.7/dist-packages/msmart/cloud.py”, line 233, in handle_api_error
handler()
File “/usr/local/lib/python3.7/dist-packages/msmart/cloud.py”, line 219, in throw
raise ValueError(error_code, message)
ValueError: (3101, ‘password error,please enter again.’)
ERROR:asyncio:Task exception was never retrieved
future: <Task finished coro=<scandevice.support_test() done, defined at /usr/local/lib/python3.7/dist-packages/msmart/scanner.py:40> exception=RecursionError(‘maximum recursion depth exceeded while calling a Python object’)>
Traceback (most recent call last):
File “/usr/local/lib/python3.7/dist-packages/msmart/scanner.py”, line 42, in support_test
_device = await self.support_testv3(account, password)
File “/usr/local/lib/python3.7/dist-packages/msmart/scanner.py”, line 57, in support_testv3
token, key = await loop.run_in_executor(None, gettoken, udpid, account, password)
File “/usr/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.7/dist-packages/msmart/scanner.py”, line 234, in gettoken
Client.login()
File “/usr/local/lib/python3.7/dist-packages/msmart/cloud.py”, line 120, in login
‘password’: self.security.encryptPassword(self.login_id, self.password)
File “/usr/local/lib/python3.7/dist-packages/msmart/cloud.py”, line 91, in api_request
return self.api_request(endpoint, args)
File “/usr/local/lib/python3.7/dist-packages/msmart/cloud.py”, line 91, in api_request
return self.api_request(endpoint, args)
File “/usr/local/lib/python3.7/dist-packages/msmart/cloud.py”, line 91, in api_request
return self.api_request(endpoint, args)
[Previous line repeated 959 more times]
File “/usr/local/lib/python3.7/dist-packages/msmart/cloud.py”, line 86, in api_request
self.handle_api_error(int(response[‘errorCode’]), response[‘msg’])
File “/usr/local/lib/python3.7/dist-packages/msmart/cloud.py”, line 233, in handle_api_error
handler()
File “/usr/local/lib/python3.7/dist-packages/msmart/cloud.py”, line 210, in restart_full
self.get_login_id()
File “/usr/local/lib/python3.7/dist-packages/msmart/cloud.py”, line 103, in get_login_id
‘loginAccount’: self.login_account
File “/usr/local/lib/python3.7/dist-packages/msmart/cloud.py”, line 78, in api_request
r = requests.post(url=url, data=data)
File “/usr/local/lib/python3.7/dist-packages/requests/api.py”, line 117, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “/usr/local/lib/python3.7/dist-packages/requests/api.py”, line 61, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/local/lib/python3.7/dist-packages/requests/sessions.py”, line 542, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.7/dist-packages/requests/sessions.py”, line 655, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.7/dist-packages/requests/adapters.py”, line 449, in send
timeout=timeout
File “/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py”, line 706, in urlopen
chunked=chunked,
File “/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py”, line 445, in _make_request
six.raise_from(e, None)
File “”, line 3, in raise_from
File “/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py”, line 440, in _make_request
httplib_response = conn.getresponse()
File “/usr/lib/python3.7/http/client.py”, line 1336, in getresponse
response.begin()
File “/usr/lib/python3.7/http/client.py”, line 330, in begin
self.headers = self.msg = parse_headers(self.fp)
File “/usr/lib/python3.7/http/client.py”, line 224, in parse_headers
return email.parser.Parser(_class=_class).parsestr(hstring)
File “/usr/lib/python3.7/email/parser.py”, line 68, in parsestr
return self.parse(StringIO(text), headersonly=headersonly)
File “/usr/lib/python3.7/email/parser.py”, line 57, in parse
feedparser.feed(data)
File “/usr/lib/python3.7/email/feedparser.py”, line 176, in feed
self._call_parse()
File “/usr/lib/python3.7/email/feedparser.py”, line 180, in _call_parse
self._parse()
File “/usr/lib/python3.7/email/feedparser.py”, line 295, in _parsegen
if self._cur.get_content_maintype() == ‘message’:
File “/usr/lib/python3.7/email/message.py”, line 594, in get_content_maintype
ctype = self.get_content_type()
File “/usr/lib/python3.7/email/message.py”, line 578, in get_content_type
value = self.get(‘content-type’, missing)
File “/usr/lib/python3.7/email/message.py”, line 471, in get
return self.policy.header_fetch_parse(k, v)
File “/usr/lib/python3.7/email/_policybase.py”, line 316, in header_fetch_parse
return self._sanitize_header(name, value)
File “/usr/lib/python3.7/email/_policybase.py”, line 287, in _sanitize_header
if _has_surrogates(value):
File “/usr/lib/python3.7/email/utils.py”, line 57, in _has_surrogates
s.encode()
RecursionError: maximum recursion depth exceeded while calling a Python object

我看看是不是要升级插件了。我问问作者。

作者已更新,可以控制了

哥们 你搞定了吗? 我下载两个集成都是账号密码不能登录