mileperhour / localtuya-homeassistant

local handling for Tuya devices
GNU General Public License v3.0
147 stars 667 forks source link

COLOROCK WiFi cable switch fails to configure in local Tuya #38

Open AndySymons opened 1 year ago

AndySymons commented 1 year ago

(Works fine with Cloud Tuya)

Colorock CR-LN2 https://www.amazon.co.uk/gp/product/B08RD4W89S/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

See also my similar issue with the COLOROCK cable switch

When I configure this device in Local tuya it fails to detect either protocol 3.1 or 3.3 automatically. I selected each in turn manually, but for both received the error message "Connection to device succeeded but no datapoints found, please try again. Create a new issue and include debug logs if problem persists."

Debug Log

This error originated from a custom integration. Logger: custom_components.localtuya.pytuya Source: custom_components/localtuya/pytuya/__init__.py:259 Integration: LocalTuya integration (documentation, issues) First occurred: 19:20:34 (8 occurrences) Last logged: 19:40:52 [bf4...5ke] Failed to get status: [bfb...ul7] Failed to get status: Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/locks.py", line 390, in acquire await fut asyncio.exceptions.CancelledError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return fut.result() asyncio.exceptions.CancelledError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/config/custom_components/localtuya/pytuya/__init__.py", line 574, in detect_available_dps data = await self.status() File "/config/custom_components/localtuya/pytuya/__init__.py", line 507, in status status = await self.exchange(STATUS) File "/config/custom_components/localtuya/pytuya/__init__.py", line 486, in exchange msg = await self.dispatcher.wait_for(seqno) File "/config/custom_components/localtuya/pytuya/__init__.py", line 259, in wait_for await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout) File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError