LSC Smart Connect - Christmas Lights /localtuya

This is perfect! In Australia a number of tuya based christmas lights are coming out with some very cool effects - This lets me add them all to a group and control the look and feel of my whole christmas display on one card on my dashboard.

can anybody help… im trying to get the DPs for my lights and I just cant do it. it seems to work, but it always drops this error.
thanks in advance!
here is what test.py says:

DEBUG:localtuya.pytuya:decrypted result='{"dps":{"20":true,"21":"scene","24":"0011196035c0312","25":"0103e8","26":0,"101":"4550
3e819999993e803e8"}}'
AVAILABLE DPS ARE [{'20': True, '21': 'scene', '24': '0011196035c0312', '25': '0103e8', '26': 0, '101': '3e819999993e803e8'}
]
INFO:localtuya:COMPLETE response from device [.....] [192.168.0.xxx].
INFO:localtuya:TIMEOUT: No response from device [.....] [192.168.0.xxx].after 2 attempts.

Hi, i have also the “Warm White” Version. Its a mess with all this codes. I made me some sensors an use the Tuya App for control, then i copied the most important codes.

One thing is intresting. Its a combined code.

Brightness 100% is value 0003e8
If you set a scene like Fade wih 100% it changes only the first digits to 0503e8. The speed adds two digits for the level 01-04 . So Fading on 100% with level 4 Speed is 0503e804.
The Combinatios Scene is like the hell for every copy and paste solution. So i have Set only the most important Modes. Brightness from 25% to 100% and every scene with speed 1 and speed 4.
And a Countdown from 30min to 12 hours.

Here is my card.

type: vertical-stack
cards:
  - type: custom:button-card
    name: TUYA Lichterkette 400
  - show_name: true
    show_icon: true
    type: button
    entity: <your_entity_id>
    icon_height: 40px
    show_state: true
    name: Lichterkette
    tap_action:
      action: call-service
      service: light.toggle
      data: {}
      target:
        entity_id: <your_entity_id>
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Bright 25%
        color: rgb(225, 255, 0)
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 00018d
            device_id: <your_device_id>
            dp: 102
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Bright 50%
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: '000255'
            device_id: <your_device_id>
            dp: 102
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Bright 75%
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: '000323'
            device_id: <your_device_id>
            dp: 102
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Bright 100%
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: '0003e8'
            device_id: <your_device_id>
            dp: 102
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Blinken
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: '1803e801'
            device_id: <your_device_id>
            dp: 102
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Blinken >>
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: '1803e804'
            device_id: <your_device_id>
            dp: 102
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Fade
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: '0503e800'
            device_id: <your_device_id>
            dp: 102
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Fade >>
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: '0503e804'
            device_id: <your_device_id>
            dp: 102
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Chasing
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 1d03e801
            device_id: <your_device_id>
            dp: 102
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Chasing >>
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 1d03e804
            device_id: <your_device_id>
            dp: 102
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Slo Go
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 0a03e801
            device_id: <your_device_id>
            dp: 102
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Slo Go >>
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 0a03e804
            device_id: <your_device_id>
            dp: 102
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Sequenz
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: '1603e801'
            device_id: <your_device_id>
            dp: 102
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Sequenz >>
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: '1603e804'
            device_id: <your_device_id>
            dp: 102
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Waves
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 0c03e801
            device_id: <your_device_id>
            dp: 102
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Waves >>
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 0c03e804
            device_id: <your_device_id>
            dp: 102
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Time 30 min
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 1800
            device_id: <your_device_id>
            dp: 26
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Time 1h
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 3600
            device_id: <your_device_id>
            dp: 26
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Time 2h
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 7200
            device_id: <your_device_id>
            dp: 26
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Time 4h
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 14400
            device_id: <your_device_id>
            dp: 26
  - type: horizontal-stack
    cards:
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Time 6h
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 21600
            device_id: <your_device_id>
            dp: 26
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Time 8h
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 28800
            device_id: <your_device_id>
            dp: 26
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Time 10h
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 36000
            device_id: <your_device_id>
            dp: 26
      - type: custom:button-card
        aspect_ratio: 2/1
        name: Time 12h
        tap_action:
          action: call-service
          service: localtuya.set_dp
          service_data:
            value: 43200
            device_id: <your_device_id>
            dp: 26

1 Like

Did you add this as a light or a switch.
If I add it as a light it is shown as ‘unavailable’
only as a switch works

I can confirm that there are different controllers for the same product…bought 2 25m rgb christmas lights and both have other options. one is working fine in tuya and lsc app, the other works only fine in lsc app, in tuya app it is pairable but when you click on it it says offline. if needed i can post screenshots of the tuya iot platform website to see their DP´s! That one does not work prop.:


That one works fine:

I was hopeful when I read your post.
But somehow nothing happens to my lights.

But for some reason, it does not work :frowning:

How did you configure the lightstring itself in local tuya?

Anything specific you entered in this screen?

For me only turning on and/off works. But I’d like to also be able to control the scenes through HA. Timers i’m not interested in as I can manage that in HA directly.

If anyone is still looking to get them to work … I’ve made a pull request on the TuyaLocal (not LocalTuya!) integration to get them working.

Only on off and brightness at this time.

The yaml file is included in the pull request if you want to try yourself.

Yes! I was very happy to find this thread now and just swapped out LocalTuya for Tuya Local to get more options for my string lights. Works great and I’m able to change a lot more things than just on/off as before.

Does anyone know if it’s possible to change the scenes too? I can toggle between music and scene, but not which scene it (apparently).

If this was your work, kudos to you @Sliph

Did anyone try flashing ESPHOME
I saw in the Tasmota site that it uses a ESP but I’m not sure if that’s still the case

1 Like

Does any one know if the own made Scenes for the Tuya Christmas light end up in the Local Tuya integration scenes option?

No. alas. And right now, idk how to upload.
You can call and set user scene to device, but nothing to-do.
User scenes has different (from description) dp - encoding.
According to description

   "description":"Byte0Byte1 场景大类 编号 Byte2Byte3 大类里面的场景序号",

what in english:

"description":"Byte0Byte1 scene category number\nByte2Byte3 scene number in the category",

but user scenes AFAICS - 01201 what’s wrong from XXYY
and more than is I trying to upload

d.set_value(21, 'scene')
d.set_value(25, '01201')

Nothing. IMHO, I should upload user scheme (bits mask array) before.

Right now, I’m on investigation here. I’ll keep you in the loop.

1 Like

Thanks for sharing! :slight_smile:

Just to notice, I integrated my iSparkle Christmas Lights flawlessly without any changes to do.

How, if I may ask? Which integration? LocalTuya and the original OPs cards?