mileperhour / localtuya-homeassistant

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

COLOROCK WiFi mini switch fails to configure in local Tuya #39

Open AndySymons opened 1 year ago

AndySymons commented 1 year ago

(Works fine with cloud Tuya)

COLOROCK Mini WiFi Smart Light https://www.amazon.co.uk/COLOROCK-Switch-Wireless-Control-Compatible/dp/B08LVC1DP3/ref=dp_prsubs_3

I already logged a very similar issue with another COLOROCK switch; might be the same problem?

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 (12 occurrences) Last logged: 20:09:57 [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