rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.93k stars 563 forks source link

Connection to device succeeded but no datapoints found, please try again. Create a new issue and include debug logs if problem persists. #557

Open abuhussnia opened 3 years ago

abuhussnia commented 3 years ago

im not able to add both of my wifi devices;

this is a universal remote control

{ "result": { "active_time": 1629839336, "biz_type": 18, "category": "wnykq", "create_time": 1624903697, "icon": "smart/icon/ay1503986080106Gppjy/7820b282e1f01aae279a56225d374c98.png", "id": "bfc21cf0102f821399w11y", "ip": "128.234.0.12", "lat": "21.5643401", "local_key": "9414acd54b4c654b", "lon": "39.220213", "name": "Universal IR", "online": true, "owner_id": "33217108", "product_id": "kgohvcaj3autr4a8", "product_name": "Smart IR", "status": [], "sub": false, "time_zone": "+03:00", "uid": "eu1624903410662UbdQ4", "update_time": 1630864926, "uuid": "faf6f069685623b2" }, "success": true, "t": 1630867789311 }

and

motion and temperature/humidity sensor

{ "result": { "active_time": 1630697039, "biz_type": 18, "category": "pir", "create_time": 1624905700, "icon": "smart/icon/15283647067q8540bhn5h_0.png", "id": "7025877724a16027f66b", "ip": "128.234.0.12", "lat": "21.5657781", "local_key": "a1c56da2dfc7517e", "lon": "39.2192013", "name": "Motion Sensor", "online": true, "owner_id": "33217108", "product_id": "yrz7lb4uwphgsjhb", "product_name": "Motion Sensor", "status": [], "sub": false, "time_zone": "+03:00", "uid": "eu1624903410662UbdQ4", "update_time": 1630864924, "uuid": "7025877724a16027f66b" }, "success": true, "t": 1630867996183 }

knowing that the local Tuya was only able to show the universal remote and not the motion sensor

appreciate your help and support

AndyZ2121 commented 3 years ago

Help: Logger: custom_components.localtuya.pytuya Source: custom_components/localtuya/pytuya/init.py:554 Integration: LocalTuya integration (documentation, issues)

[bfe...gvq] Failed to get status: Unexpected payload=b"\xe6:\xf6]\xb8\xff'\x12\xea\xab%yN+\xa0u\xa5\xd2K\x88\x9a\xc5\xaf\xd77J\xf3\xdc$\xe3!\xbf" Traceback (most recent call last): File "/config/custom_components/localtuya/pytuya/init.py", line 510, in detect_available_dps data = await self.status() File "/config/custom_components/localtuya/pytuya/init.py", line 472, in status status = await self.exchange(STATUS) File "/config/custom_components/localtuya/pytuya/init.py", line 457, in exchange payload = self._decode_payload(msg.payload) File "/config/custom_components/localtuya/pytuya/init.py", line 554, in _decode_payload raise Exception(f"Unexpected payload={payload}") Exception: Unexpected payload=b"\xe6:\xf6]\xb8\xff'\x12\xea\xab%yN+\xa0u\xa5\xd2K\x88\x9a\xc5\xaf\xd77J\xf3\xdc$\xe3!\xbf"