localtuya
localtuya copied to clipboard
Unable to add Multimode Gateway
I'm trying to add a Moes Multimode Gateway (ZigBee+BLE, WiFi + Ethernet) but I get an "unkown" error. I followed instructions and found IDs and keys. The "Local Key" is in the new format: ".>XL:@~n7>TwN1[~" (excluded the quotes).
This error originated from a custom integration.
Logger: custom_components.localtuya.config_flow
Source: custom_components/localtuya/config_flow.py:386
Integration: LocalTuya integration (documentation, issues)
First occurred: 19:34:08 (3 occurrences)
Last logged: 20:02:06
Unexpected exception
Traceback (most recent call last):
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 500, in wait_for
return fut.result()
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/locks.py", line 387, in acquire
await fut
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/localtuya/config_flow.py", line 386, in async_step_basic_info
self.dps_strings = await validate_input(self.hass, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/localtuya/config_flow.py", line 292, in validate_input
detected_dps = await interface.detect_available_dps()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/localtuya/pytuya/__init__.py", line 702, in detect_available_dps
status = await self.status()
^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/localtuya/pytuya/__init__.py", line 602, in status
status = await self.exchange(ACTION_STATUS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/localtuya/pytuya/__init__.py", line 563, in exchange
msg = await self.dispatcher.wait_for(seqno)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/localtuya/pytuya/__init__.py", line 325, in wait_for
await asyncio.wait_for(self.listeners[seqno].acquire(), timeout=timeout)
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 502, in wait_for
raise exceptions.TimeoutError() from exc
TimeoutError