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

 找回密码
 立即注册
查看: 3056|回复: 2

[技术探讨] 无法链接连接小米wifi放大器

[复制链接]

4

主题

56

帖子

273

积分

论坛分享达人

积分
273
金钱
217
HASS币
0
发表于 2018-6-9 16:12:58 | 显示全部楼层 |阅读模式
根据官网描述,配置后无法链接小米wifi放大器,日志如下token是有效的


2018-06-09 15:50:39 WARNING (MainThread) [homeassistant.setup] Setup of config is taking over 10 seconds.
2018-06-09 15:51:00 ERROR (SyncWorker_4) [miio.device] Unable to discover a device at address 192.168.130.30
2018-06-09 15:51:00 ERROR (SyncWorker_4) [homeassistant.components.device_tracker.xiaomi_miio] Device unavailable or token incorrect: Unable to discover the device 192.168.130.30
2018-06-09 15:51:00 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform xiaomi_miio
2018-06-09 15:51:06 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-09 15:54:59 ERROR (SyncWorker_1) [homeassistant.components.device_tracker.xiaomi] Connection to the router timed out at URL [url]http://192.168.31.1/cgi-bin/luci/;stok=607b08ad426233c9fb647a2dde0948db/api/misystem/devicelist[/url]
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.6/http/client.py", line 1331, in getresponse
    response.begin()
  File "/usr/lib/python3.6/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.6/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3.6/site-packages/urllib3/util/retry.py", line 357, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3.6/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 389, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 309, in _raise_timeout
    raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.31.1', port=80): Read timed out. (read timeout=5)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/components/device_tracker/xiaomi.py", line 113, in _retrieve_list
    res = requests.get(url, timeout=5, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 521, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='192.168.31.1', port=80): Read timed out. (read timeout=5)


回复

使用道具 举报

2

主题

171

帖子

2452

积分

金牌会员

Rank: 6Rank: 6

积分
2452
金钱
2281
HASS币
0
发表于 2018-8-22 13:16:02 | 显示全部楼层
小米红外遥控器 报错:[homeassistant.components.remote.xiaomi_miio] Device unavailable or token incorrect: Got checksum error which indicates use of an invalid token. Please check your token!
回复

使用道具 举报

2

主题

126

帖子

1399

积分

金牌会员

Rank: 6Rank: 6

积分
1399
金钱
1273
HASS币
0
发表于 2021-2-15 11:05:00 | 显示全部楼层
我的小米wifi 放大器接到Home assistant 也没有反应,找不到这个设备
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-26 20:30 , Processed in 0.174274 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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