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

 找回密码
 立即注册
查看: 1271|回复: 6

[插件集成] 关于LOCAL TUYA连接成功,但是没有数据的问题

[复制链接]

2

主题

14

帖子

84

积分

注册会员

Rank: 2

积分
84
金钱
70
HASS币
0
发表于 2022-1-25 09:38:32 | 显示全部楼层 |阅读模式
各位大咖们,我用LOCAL TUYA,所有准备工作都做完了,但是出现如下问题,不知大家是否遇到并解决,谢谢!

截屏2022-01-25 上午9.33.28.png
下面的数据是通过tuyadebug-test.py取得的,请帮助分析一下吧,谢谢!
INFO:localtuya:localtuya version 1.0.0
INFO:localtuyaython 3.9.10 (v3.9.10:f2f3f53782, Jan 13 2022, 17:02:14)
[Clang 6.0 (clang-600.0.57)] on darwin
INFO:localtuya:Using pytuya version '8.1.0'
INFO:localtuyaetecting list of available DPS of device 6cd312adda70227e9ejn0t [192.168.1.103], protocol 3.3.
DEBUG:localtuya.pytuya:Sending command status (device type: type_0a)
DEBUG:localtuya.pytuya:paylod=b'{"gwId":"6cd312adda70227e9ejn0t","devId":"6cd312adda70227e9ejn0t"}'
DEBUG:localtuya.pytuyaATA RECEIVED!
DEBUG:localtuya.pytuya:decode payload=b'\r\xa2i#P|\xdb2\x90\xd7\x82\xba\xfe6BA\xe1\xc1\x8f\xac9\xb5\x01]\x15u\xe1\x1f\xaaIf\xe7'
DEBUG:localtuya.pytuya:'data unvalid' error detected: switching to dev_type 'type_0d'
DEBUG:localtuya.pytuya:Re-send status due to device type change (type_0a -> type_0d)
DEBUG:localtuya.pytuya:Sending command status (device type: type_0d)
DEBUG:localtuya.pytuya:paylod=b'{"devId":"6cd312adda70227e9ejn0t","uid":"6cd312adda70227e9ejn0t","t":"1643074034","dps":{"1":null,"2":null,"3":null,"4":null,"5":null,"6":null,"7":null,"8":null,"9":null,"10":null}}'
DEBUG:localtuya.pytuyaATA RECEIVED!
DEBUG:localtuya.pytuya:READING AGAIN!
DEBUG:localtuya.pytuya:Failed to connect to 192.168.1.103. Raising Exception.
WARNING:localtuya.pytuya:Failed to get status: timed out
INFO:localtuyaetecting list of available DPS of device 6cd312adda70227e9ejn0t [192.168.1.103], protocol 3.3.
DEBUG:localtuya.pytuya:Sending command status (device type: type_0a)
DEBUG:localtuya.pytuya:paylod=b'{"gwId":"6cd312adda70227e9ejn0t","devId":"6cd312adda70227e9ejn0t"}'
DEBUG:localtuya.pytuyaATA RECEIVED!
DEBUG:localtuya.pytuya:decode payload=b'\r\xa2i#P|\xdb2\x90\xd7\x82\xba\xfe6BA\xe1\xc1\x8f\xac9\xb5\x01]\x15u\xe1\x1f\xaaIf\xe7'
DEBUG:localtuya.pytuya:'data unvalid' error detected: switching to dev_type 'type_0d'
DEBUG:localtuya.pytuya:Re-send status due to device type change (type_0a -> type_0d)
DEBUG:localtuya.pytuya:Sending command status (device type: type_0d)
DEBUG:localtuya.pytuya:paylod=b'{"devId":"6cd312adda70227e9ejn0t","uid":"6cd312adda70227e9ejn0t","t":"1643074041","dps":{"1":null,"2":null,"3":null,"4":null,"5":null,"6":null,"7":null,"8":null,"9":null,"10":null}}'
DEBUG:localtuya.pytuyaATA RECEIVED!
DEBUG:localtuya.pytuya:READING AGAIN!
DEBUG:localtuya.pytuya:Failed to connect to 192.168.1.103. Raising Exception.
WARNING:localtuya.pytuya:Failed to get status: timed out
INFO:localtuyaetecting list of available DPS of device 6cd312adda70227e9ejn0t [192.168.1.103], protocol 3.3.
DEBUG:localtuya.pytuya:Sending command status (device type: type_0a)
DEBUG:localtuya.pytuya:paylod=b'{"gwId":"6cd312adda70227e9ejn0t","devId":"6cd312adda70227e9ejn0t"}'
DEBUG:localtuya.pytuyaATA RECEIVED!
DEBUG:localtuya.pytuya:decode payload=b'\r\xa2i#P|\xdb2\x90\xd7\x82\xba\xfe6BA\xe1\xc1\x8f\xac9\xb5\x01]\x15u\xe1\x1f\xaaIf\xe7'
DEBUG:localtuya.pytuya:'data unvalid' error detected: switching to dev_type 'type_0d'
DEBUG:localtuya.pytuya:Re-send status due to device type change (type_0a -> type_0d)
DEBUG:localtuya.pytuya:Sending command status (device type: type_0d)
DEBUG:localtuya.pytuya:paylod=b'{"devId":"6cd312adda70227e9ejn0t","uid":"6cd312adda70227e9ejn0t","t":"1643074049","dps":{"1":null,"2":null,"3":null,"4":null,"5":null,"6":null,"7":null,"8":null,"9":null,"10":null}}'
DEBUG:localtuya.pytuyaATA RECEIVED!
DEBUG:localtuya.pytuya:READING AGAIN!
DEBUG:localtuya.pytuya:Failed to connect to 192.168.1.103. Raising Exception.
WARNING:localtuya.pytuya:Failed to get status: timed out
INFO:localtuya:TIMEOUT: No response from device 6cd312adda70227e9ejn0t [192.168.1.103] after 2 attempts.


回复

使用道具 举报

2

主题

14

帖子

84

积分

注册会员

Rank: 2

积分
84
金钱
70
HASS币
0
 楼主| 发表于 2022-1-25 10:21:42 来自手机 | 显示全部楼层
补充一下。我用的这个开关,是不是不支持啊!
IMG_20220123_100130.jpg
回复

使用道具 举报

1

主题

28

帖子

135

积分

注册会员

Rank: 2

积分
135
金钱
107
HASS币
0
发表于 2022-1-25 12:38:33 | 显示全部楼层
关注一下
回复

使用道具 举报

2

主题

14

帖子

84

积分

注册会员

Rank: 2

积分
84
金钱
70
HASS币
0
 楼主| 发表于 2022-1-25 12:49:18 来自手机 | 显示全部楼层
ooshun 发表于 2022-1-25 12:38
关注一下

能解决不?
回复

使用道具 举报

10

主题

80

帖子

1227

积分

金牌会员

Rank: 6Rank: 6

积分
1227
金钱
1147
HASS币
0
发表于 2022-1-29 16:56:45 | 显示全部楼层
请问解决了吗?我也碰到一样的问题
回复

使用道具 举报

2

主题

14

帖子

84

积分

注册会员

Rank: 2

积分
84
金钱
70
HASS币
0
 楼主| 发表于 2022-1-29 22:01:46 来自手机 | 显示全部楼层
没有解决,我怀疑是网关的问题!
回复

使用道具 举报

2

主题

14

帖子

84

积分

注册会员

Rank: 2

积分
84
金钱
70
HASS币
0
 楼主| 发表于 2022-1-29 22:20:48 来自手机 | 显示全部楼层
没有解决,我怀疑是网管导致的,你可以用test.py和scan.py看一下,没有bug,就是获取不到数据,感觉很奇怪!
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-14 06:33 , Processed in 0.059571 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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