Replies: 1 comment 7 replies
-
Are you trying to use Auto IP address detection, with localtuya also installed? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I bought four V-WIFI-DL02-ES. I found that Tuya has local support, but cannot add HA (I added it using Tuya APP, not Smart Life. I don’t know if it has anything to do with this. I will try it later)
During configuration, "Unable to connect to your device details. This may be an intermittent issue or it may be an error."

I also tried the auto version
The following messages will appear in the log in order:
<class 'OSError'>: [Errno 98] The address used when initializing device eb153b53cf9d273cf3src1
Connection test failed, <class 'OSError'> [Errno 98] The address is in use
An error occurred while executing the job: Exception in callback _SelectorDatagramTransport._read_ready()
Traceback (most recent call last):
File "/config/custom_components/localtuya/discovery.py", line 65, datagram_received
data = decrypt_udp(data)
^^^^^^^^^^^^^^^^^
File "/config/custom_components/localtuya/discovery.py", line 30, decrypt_udp
return_unpad(decryptor.update(message)+decryptor.finalize()).decode()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/cryptography/hazmat/primitives/ciphers/base.py", line 186, finalized
data = self._ctx.finalize()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/cryptography/hazmat/backends/openssl/ciphers.py", line 222, finalized
raises valueError(
ValueError: The data length provided is not a multiple of the block length.
In the process of handling the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 1163, in _read_ready
self._protocol.datagram_received(data, address)
File "/config/custom_components/localtuya/discovery.py", line 67, datagram_received
data = data.decode()
^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec cannot decode byte 0xb9 in position 0: invalid starting byte
Beta Was this translation helpful? Give feedback.
All reactions