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

 找回密码
 立即注册
查看: 2785|回复: 5

[求助] 求助 小米网关V3 报错

[复制链接]

175

主题

2967

帖子

7608

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7608
金钱
4616
HASS币
398

活跃会员教程狂人灌水之王

QQ
发表于 2018-8-13 20:29:58 | 显示全部楼层 |阅读模式
2018-08-13 15:11:09 ERROR (SyncWorker_3) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:13:44 ERROR (SyncWorker_0) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:13:44 ERROR (SyncWorker_0) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:14:15 ERROR (SyncWorker_0) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:14:15 ERROR (SyncWorker_0) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:14:46 ERROR (SyncWorker_8) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:14:46 ERROR (SyncWorker_8) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:15:17 ERROR (SyncWorker_3) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:15:17 ERROR (SyncWorker_3) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:15:48 ERROR (SyncWorker_16) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:15:48 ERROR (SyncWorker_16) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:16:19 ERROR (SyncWorker_3) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:16:19 ERROR (SyncWorker_3) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:16:50 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:16:50 ERROR (SyncWorker_10) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:17:52 ERROR (SyncWorker_7) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:17:52 ERROR (SyncWorker_7) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:18:54 ERROR (SyncWorker_11) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:18:54 ERROR (SyncWorker_11) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:19:56 ERROR (SyncWorker_17) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:19:56 ERROR (SyncWorker_17) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:20:27 ERROR (SyncWorker_15) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:20:27 ERROR (SyncWorker_15) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:20:58 ERROR (SyncWorker_6) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:20:58 ERROR (SyncWorker_6) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:21:29 ERROR (SyncWorker_11) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:21:29 ERROR (SyncWorker_11) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:22:00 ERROR (SyncWorker_15) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:22:00 ERROR (SyncWorker_15) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:22:31 ERROR (SyncWorker_9) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:22:31 ERROR (SyncWorker_9) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:23:33 ERROR (SyncWorker_17) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:23:33 ERROR (SyncWorker_17) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:24:04 ERROR (SyncWorker_2) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:24:04 ERROR (SyncWorker_2) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:24:35 ERROR (SyncWorker_15) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:24:35 ERROR (SyncWorker_15) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:26:39 ERROR (SyncWorker_9) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:26:39 ERROR (SyncWorker_9) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:27:10 ERROR (SyncWorker_2) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:27:10 ERROR (SyncWorker_2) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:28:12 ERROR (SyncWorker_17) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:28:12 ERROR (SyncWorker_17) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:29:14 ERROR (SyncWorker_18) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:29:14 ERROR (SyncWorker_18) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:29:45 ERROR (SyncWorker_13) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:29:45 ERROR (SyncWorker_13) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:29:55 ERROR (SyncWorker_8) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:29:55 ERROR (SyncWorker_8) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:30:16 ERROR (SyncWorker_11) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:30:16 ERROR (SyncWorker_11) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:31:49 ERROR (SyncWorker_9) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:31:49 ERROR (SyncWorker_9) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:32:20 ERROR (SyncWorker_15) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:32:20 ERROR (SyncWorker_15) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:33:22 ERROR (SyncWorker_16) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:33:22 ERROR (SyncWorker_16) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:33:53 ERROR (SyncWorker_4) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:33:53 ERROR (SyncWorker_4) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:34:24 ERROR (SyncWorker_18) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:34:24 ERROR (SyncWorker_18) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:34:55 ERROR (SyncWorker_0) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:34:55 ERROR (SyncWorker_0) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:35:57 ERROR (SyncWorker_16) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:35:57 ERROR (SyncWorker_16) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:36:28 ERROR (SyncWorker_8) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:36:28 ERROR (SyncWorker_8) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:36:59 ERROR (SyncWorker_4) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:36:59 ERROR (SyncWorker_4) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:37:30 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:37:30 ERROR (SyncWorker_10) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:38:00 ERROR (SyncWorker_15) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:38:00 ERROR (SyncWorker_15) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:38:31 ERROR (SyncWorker_18) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:38:31 ERROR (SyncWorker_18) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:39:02 ERROR (SyncWorker_19) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:39:02 ERROR (SyncWorker_19) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:39:33 ERROR (SyncWorker_17) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:39:33 ERROR (SyncWorker_17) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:40:35 ERROR (SyncWorker_0) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:40:35 ERROR (SyncWorker_0) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:41:06 ERROR (SyncWorker_15) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:41:06 ERROR (SyncWorker_15) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:41:37 ERROR (SyncWorker_7) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:41:37 ERROR (SyncWorker_7) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:42:08 ERROR (SyncWorker_8) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:42:08 ERROR (SyncWorker_8) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:42:39 ERROR (SyncWorker_0) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:42:39 ERROR (SyncWorker_0) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:43:10 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:43:10 ERROR (SyncWorker_10) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:43:41 ERROR (SyncWorker_4) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:43:41 ERROR (SyncWorker_4) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:45:14 ERROR (SyncWorker_0) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:45:14 ERROR (SyncWorker_0) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:45:45 ERROR (SyncWorker_3) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:45:45 ERROR (SyncWorker_3) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:46:47 ERROR (SyncWorker_9) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:46:47 ERROR (SyncWorker_9) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:47:18 ERROR (SyncWorker_12) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:47:18 ERROR (SyncWorker_12) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:47:29 ERROR (MainThread) [homeassistant.helpers.service] Error rendering data template: UndefinedError: 'None' has no attribute 'attributes'
2018-08-13 15:47:49 ERROR (SyncWorker_4) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:47:49 ERROR (SyncWorker_4) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:48:51 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:48:51 ERROR (SyncWorker_10) [xiaomi_gateway] No data in response from hub None
2018-08-13 15:49:22 ERROR (SyncWorker_10) [xiaomi_gateway] Cannot connect to Gateway
2018-08-13 15:49:22 ERROR (SyncWorker_10) [xiaomi_gateway] No data in response from hub None


这TM到底什么情况,什么都不写,就光连不上网关,明明可以获取到设备状态,为何要这么提示呢???

现在log里全是 小米网关的错误,一大片一大片的。。。

大家有没有这种情况??如何解决啊?
回复

使用道具 举报

26

主题

553

帖子

2728

积分

金牌会员

Rank: 6Rank: 6

积分
2728
金钱
2150
HASS币
100

教程狂人

发表于 2018-8-14 09:07:46 | 显示全部楼层
def _send_cmd(self, cmd, rtn_cmd=None):

        try:

            self._socket.settimeout(10.0)

            _LOGGER.debug("_send_cmd >> %s", cmd.encode())

            self._socket.sendto(cmd.encode(), (self.ip_adress, self.port))

            data, _ = self._socket.recvfrom(1024)

        except socket.timeout:

            _LOGGER.error("Cannot connect to Gateway")

            return None

        if data is None:

            _LOGGER.error("No response from Gateway")

            return None
回复

使用道具 举报

26

主题

553

帖子

2728

积分

金牌会员

Rank: 6Rank: 6

积分
2728
金钱
2150
HASS币
100

教程狂人

发表于 2018-8-14 09:10:09 | 显示全部楼层
错误来源于PyXiaomiGateway库,无法从小米网关获取data,网关无响应。
回复

使用道具 举报

175

主题

2967

帖子

7608

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7608
金钱
4616
HASS币
398

活跃会员教程狂人灌水之王

QQ
 楼主| 发表于 2018-8-14 12:26:10 来自手机 | 显示全部楼层
Mirukuteii 发表于 2018-8-14 09:10
错误来源于PyXiaomiGateway库,无法从小米网关获取data,网关无响应。

hassio的话没办法了……
回复

使用道具 举报

26

主题

553

帖子

2728

积分

金牌会员

Rank: 6Rank: 6

积分
2728
金钱
2150
HASS币
100

教程狂人

发表于 2018-8-14 13:14:03 | 显示全部楼层
jyz_0501 发表于 2018-8-14 12:26
hassio的话没办法了……

不是不是,库函数本身没问题,只是报错,错误在网关不回应,要么网关问题要么网络问题
回复

使用道具 举报

175

主题

2967

帖子

7608

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7608
金钱
4616
HASS币
398

活跃会员教程狂人灌水之王

QQ
 楼主| 发表于 2018-8-14 21:13:02 | 显示全部楼层
Mirukuteii 发表于 2018-8-14 13:14
不是不是,库函数本身没问题,只是报错,错误在网关不回应,要么网关问题要么网络问题 ...

哦 那可能是网络问题,最近路由器管理界面 显示只有一个设备,而app上都是全的 但是全是离线状态,小米路由器也是没谁了
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-25 01:06 , Processed in 0.430884 second(s), 29 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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