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

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

[插件集成] 小米MIoT设备自动识别接入HA插件 2024-04-30新版发布

  [复制链接]

1

主题

12

帖子

413

积分

中级会员

Rank: 3Rank: 3

积分
413
金钱
401
HASS币
0
发表于 2021-10-29 09:46:42 | 显示全部楼层
谢谢分享
回复

使用道具 举报

3

主题

61

帖子

834

积分

高级会员

Rank: 4

积分
834
金钱
773
HASS币
0
发表于 2021-10-28 23:07:46 | 显示全部楼层

谢谢分享
回复

使用道具 举报

0

主题

41

帖子

273

积分

中级会员

Rank: 3Rank: 3

积分
273
金钱
232
HASS币
0
发表于 2021-10-28 10:11:53 来自手机 | 显示全部楼层
谢谢分享
回复

使用道具 举报

0

主题

2

帖子

58

积分

注册会员

Rank: 2

积分
58
金钱
56
HASS币
0
发表于 2021-10-27 17:50:06 | 显示全部楼层
崇拜,和您一起探讨
回复

使用道具 举报

4

主题

10

帖子

116

积分

注册会员

Rank: 2

积分
116
金钱
106
HASS币
0
发表于 2021-10-26 11:08:59 | 显示全部楼层
谢谢 处太大了
回复

使用道具 举报

6

主题

267

帖子

2381

积分

论坛技术达人

积分
2381
金钱
2094
HASS币
90
 楼主| 发表于 2021-10-25 19:36:36 | 显示全部楼层
gaming 发表于 2021-10-24 22:03
接入成功了,可是出现了这个错误:

调用服务 remote/turn_off 失败。 'NoneType' object has no attribute ...
'NoneType' object has no attribute 'get'

已修复。

 requests.exceptions.ConnectionError: ('Connection aborted.', TimeoutError(110, 'Operation timed out'))

这个错误看起来像是你的HA无法连接小米服务器。
小米MIoT插件:miot-spec.com
回复

使用道具 举报

9

主题

65

帖子

428

积分

中级会员

Rank: 3Rank: 3

积分
428
金钱
363
HASS币
0
发表于 2021-10-24 22:03:53 | 显示全部楼层
接入成功了,可是出现了这个错误:

调用服务 remote/turn_off 失败。 'NoneType' object has no attribute 'get'

Logger: root
Source: /usr/local/lib/python3.9/site-packages/micloud/micloud.py:317
First occurred: 15:00:50 (4 occurrences)
Last logged: 21:39:51

Error while executing request to https://api.io.mi.com/app/miotspec/prop/get 'Connection aborted.', TimeoutError(110, 'Operation timed out'))
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 416, in connect
    self.sock = ssl_wrap_socket(
  File "/usr/local/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/usr/local/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/local/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/local/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/usr/local/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
TimeoutError: [Errno 110] Operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 532, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/local/lib/python3.9/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 416, in connect
    self.sock = ssl_wrap_socket(
  File "/usr/local/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/usr/local/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/local/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/local/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/usr/local/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', TimeoutError(110, 'Operation timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/micloud/micloud.py", line 306, in request
    response = self.session.post(url, data = post_data)
  File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 590, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 498, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', TimeoutError(110, 'Operation timed out'))


大佬能帮忙看看吗
回复

使用道具 举报

0

主题

2

帖子

26

积分

新手上路

Rank: 1

积分
26
金钱
24
HASS币
0
发表于 2021-10-23 14:12:47 | 显示全部楼层
电视截图用处太大了
回复

使用道具 举报

9

主题

65

帖子

428

积分

中级会员

Rank: 3Rank: 3

积分
428
金钱
363
HASS币
0
发表于 2021-10-21 11:44:25 | 显示全部楼层
厉害了厉害了,马上加入
回复

使用道具 举报

0

主题

18

帖子

92

积分

注册会员

Rank: 2

积分
92
金钱
73
HASS币
0
发表于 2021-10-20 14:51:18 | 显示全部楼层
谢谢,正在学习中、
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-29 08:19 , Processed in 1.136139 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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