Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deltaco GU10 SH-LGU10RGB #1950

Open
david7102 opened this issue Mar 19, 2025 · 0 comments
Open

Deltaco GU10 SH-LGU10RGB #1950

david7102 opened this issue Mar 19, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@david7102
Copy link

david7102 commented Mar 19, 2025

"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

  1. Local Tuya - Configure - Add device - ...
  2. Submit
  3. 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 -->
@david7102 david7102 added the bug Something isn't working label Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant