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

Cannot add LED Strip Controller #1839

Open
2 tasks done
NoahColly opened this issue Nov 7, 2024 · 1 comment
Open
2 tasks done

Cannot add LED Strip Controller #1839

NoahColly opened this issue Nov 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@NoahColly
Copy link

The problem

Cannot add device correctly to Tuya Local.
I have successfully added the device to the Tuya app and can see it in the developer platform however it will not show up when I try to add it to LocalTuya.

I have tried adding it manually using the ID, token and manually setting the DP ID's based on what was found in the dev platform but it still wont work - it just shows as unavailable.

I have tried changing the WiFi network its on, restarting HA, adding, deleting and readding - I have tried all I can think of

Environment

  • Localtuya version: 5.2.1 (HACS says 5.2.2 but when I redownload and restart it remains on 5.2.1)
  • Home Assistant Core version: 2024.11.0
  • 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 ? Not sure how to install
  • [] Was the device working with earlier versions of localtuya ? Which one? Don't know
  • Are you using the Tuya/SmartLife App in parallel ?

Steps to reproduce

  1. Have LocalTuya Already configured and working with other devices
  2. Configure
  3. Add a new device
  4. .... -> Submit
  5. Enter Name, Host, Device ID, Local Key, 3.3, DPS (20,22)
  6. Submit
  7. Light
  8. Enter friendly name
  9. ID -> 20
  10. Brightness -> 22
  11. Rest leave as is
  12. Submit
  13. Device added - Confirmed by 1 new entity and device
  14. Device status unknown

Confirm DP IDs havent updated

  1. Configure
  2. Edit a device
  3. Select device
  4. Select entity
  5. Submit
  6. Confirm all DP IDs still show (value; -1)

DP dump

{
"result": {
"properties": [
{
"code": "switch_led",
"custom_name": "",
"dp_id": 20,
"time": 1730960984363,
"type": "bool",
"value": true
},
{
"code": "work_mode",
"custom_name": "",
"dp_id": 21,
"time": 1730960984363,
"type": "enum",
"value": "white"
},
{
"code": "bright_value",
"custom_name": "",
"dp_id": 22,
"time": 1730960984363,
"type": "value",
"value": 1000
},
{
"code": "scene_data",
"custom_name": "",
"dp_id": 25,
"time": 1730960984363,
"type": "string",
"value": "000e0d0000000000000000c803e8"
},
{
"code": "countdown",
"custom_name": "",
"dp_id": 26,
"time": 1730960984363,
"type": "value",
"value": 0
},
{
"code": "control_data",
"custom_name": "",
"dp_id": 28,
"time": 1730960980575,
"type": "string",
"value": ""
},
{
"code": "debug_data",
"custom_name": "",
"dp_id": 29,
"time": 1730960980575,
"type": "string",
"value": ""
},
{
"code": "sleep_mode",
"custom_name": "",
"dp_id": 31,
"time": 1730960984372,
"type": "raw",
"value": "AAA="
},
{
"code": "wakeup_mode",
"custom_name": "",
"dp_id": 32,
"time": 1730960984848,
"type": "raw",
"value": "AAA="
},
{
"code": "power_memory",
"custom_name": "",
"dp_id": 33,
"time": 1730960985311,
"type": "raw",
"value": "AAAAAAAAAAAD6APo"
},
{
"code": "do_not_disturb",
"custom_name": "",
"dp_id": 34,
"time": 1730960984363,
"type": "bool",
"value": false
}
]
},
"success": true,
"t": 1730962738779,
"tid": "c31abcbe9cd511efacb2ded37fff273c"
}

Provide Home Assistant traceback/logs

Nothing relevant 

Additional information

@NoahColly NoahColly added the bug Something isn't working label Nov 7, 2024
@NoahColly
Copy link
Author

NoahColly commented Nov 20, 2024

I am also now facing this issue with a GridConnect LED strip - is exactly as per the above.

Here is a DP dump

{
"result": {
"properties": [
{
"code": "switch_led",
"custom_name": "",
"dp_id": 20,
"time": 1732098213426,
"type": "bool",
"value": true
},
{
"code": "work_mode",
"custom_name": "",
"dp_id": 21,
"time": 1732098074000,
"type": "enum",
"value": "white"
},
{
"code": "bright_value",
"custom_name": "",
"dp_id": 22,
"time": 1732098074000,
"type": "value",
"value": 1000
},
{
"code": "temp_value",
"custom_name": "",
"dp_id": 23,
"time": 1732098074000,
"type": "value",
"value": 0
},
{
"code": "scene_data",
"custom_name": "",
"dp_id": 25,
"time": 1732098074000,
"type": "string",
"value": "000e0d0000000000000000c80000"
},
{
"code": "countdown",
"custom_name": "",
"dp_id": 26,
"time": 1732098074000,
"type": "value",
"value": 0
},
{
"code": "control_data",
"custom_name": "",
"dp_id": 28,
"time": 1732094786798,
"type": "string",
"value": ""
},
{
"code": "debug_data",
"custom_name": "",
"dp_id": 29,
"time": 1732094786798,
"type": "string",
"value": ""
},
{
"code": "sleep_mode",
"custom_name": "",
"dp_id": 31,
"time": 1732098078246,
"type": "raw",
"value": "AAA="
},
{
"code": "wakeup_mode",
"custom_name": "",
"dp_id": 32,
"time": 1732098078749,
"type": "raw",
"value": "AAA="
},
{
"code": "power_memory",
"custom_name": "",
"dp_id": 33,
"time": 1732098079898,
"type": "raw",
"value": "AAEAAAAAAAAACgAA"
},
{
"code": "do_not_disturb",
"custom_name": "",
"dp_id": 34,
"time": 1732098074000,
"type": "bool",
"value": true
}
]
},
"success": true,
"t": 1732098675951,
"tid": "926d7f7aa72a11ef9e6566852e0618f4"
}

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