Description
"name": "SH-LGU10RGB",
"id": "bfb228869da77d4ff432he",
"key": "XXXXXXXXXXXXX",
"mac": "b8:06:0d:22:30:1e",
"uuid": "331e609de4b5e96a",
"sn": "240003-30053F",
"category": "dj",
"product_name": "SH-LGU10RGB",
"product_id": "fkftk1raxmco7rzy",
"biz_type": 0,
"model": "SH-LGU10RGB02",
"sub": false,
"icon": "https://images.tuyaeu.com/smart/icon/ay1563289077386BG9pz/2a75de84d8b8a1c11ee6bdc14d63aec0.png",
"mapping": {
"20": {
"code": "switch_led",
"type": "Boolean",
"values": {}
},
"21": {
"code": "work_mode",
"type": "Enum",
"values": {
"range": [
"white",
"colour",
"scene",
"music"
Environment
- Localtuya version: 5.2.3
- Home Assistant Core version: 14.2
- [] Does the device work using the Home Assistant Tuya Cloud component ?
- [] Does the device work using the Tinytuya (https://github.com/jasonacox/tinytuya) command line tool ?
- [] Was the device working with earlier versions of localtuya ? Which one?
- [] Are you using the Tuya/SmartLife App in parallel ?
Steps to reproduce
- Local Tuya - Configure - Add device - ...
- Submit
- Connection to device succeeded but no datapoints found, please try again. Create a new issue and include debug logs if problem persists.
DP dump
Provide Home Assistant traceback/logs
This error originated from a custom integration.
Logger: homeassistant
Source: custom_components/localtuya/discovery.py:67
integration: LocalTuya integration (documentation, issues)
First occurred: 19:57:10 (57 occurrences)
Last logged: 20:01:50
Error doing job: Exception in callback _SelectorDatagramTransport._read_ready() (None)
Traceback (most recent call last):
File "/config/custom_components/localtuya/discovery.py", line 65, in datagram_received
data = decrypt_udp(data)
File "/config/custom_components/localtuya/discovery.py", line 30, in decrypt_udp
return _unpad(decryptor.update(message) + decryptor.finalize()).decode()
~~~~~~~~~~~~~~~~~~^^
ValueError: The length of the provided data is not a multiple of the block length.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
self._context.run(self._callback, *self._args)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 1243, in _read_ready
self._protocol.datagram_received(data, addr)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/config/custom_components/localtuya/discovery.py", line 67, in datagram_received
data = data.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa9 in position 0: invalid start byte
put your log output between these markers
## Additional information
<!-- Put here any information that you think it may be relevant -->