mileperhour / localtuya-homeassistant

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

Gosund bedside lamp fails to configure in local Tuya #41

Open AndySymons opened 1 year ago

AndySymons commented 1 year ago

It works fine with cloud Tuya and I have integrated another lamp of the same type into local Tuya, so this may be a local issue - but how do I track it down?

Gosund bedside lamp https://www.amazon.co.uk/gp/product/B09QSFSKTX/ref=ppx_yo_dt_b_search_asin_title

When I configure this device in Local tuya it detects 3.3 automatically, but gives the message "An unknown error occurred. See log for details."

Debug Log

This error originated from a custom integration. Logger: custom_components.localtuya.config_flow Source: custom_components/localtuya/pytuya/__init__.py:704 Integration: LocalTuya integration (documentation, issues) First occurred: 18:54:51 (15 occurrences) Last logged: 20:51:25 Unexpected exception Traceback (most recent call last): File "/config/custom_components/localtuya/config_flow.py", line 580, in async_step_configure_device self.dps_strings = await validate_input(self.hass, user_input) File "/config/custom_components/localtuya/config_flow.py", line 245, in validate_input interface = await pytuya.connect( File "/config/custom_components/localtuya/pytuya/__init__.py", line 704, in connect _, protocol = await loop.create_connection( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection raise exceptions[0] File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection sock = await self._connect_sock( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock await self.sock_connect(sock, address) File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect return await fut File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') OSError: [Errno 113] Connect call failed ('192.168.1.30', 6668)