logo elektroda
logo elektroda
X
logo elektroda

Configuring LSC Smart Outdoor Flood Light with OpenBeken: Managing BK7231N Chipset and RGBWW LEDs

vanderploegbas 3186 12
ADVERTISEMENT
  • #1 20797839
    vanderploegbas
    Level 2  

    Hi! In the last months, I've flashed numerous devices with OpenBeken, all with great success. Unfortunately, there is one problem I keep running into for some of them.

    In this example, I'll talk about the LSC Smart Outdoor Flood Light, sold at Action shops across Europe.

    Packaging of LSC smart outdoor flood light featuring RGB+Warm White.

    The light – which has the BK7231N chipset - was easy to flash using Tuya Cloudcutter.

    It features RGB and Warm White LEDs (RGBWW). And this is where my issue lies.

    I can't find a correct way to configure the light in OpenBeken.

    The LEDs are connected like this:



    RED = Pin 26 (PWM)
    GREEN = Pin 24 (PWM)
    BLUE = Pin 6 (PWM)
    WARM WHITE = Pin 7 (PWM)

    In this case, the Warm White is just a fixed color temperature, which is dimmable.

    The RGB configuration works flawlessly, but there seems to be no way to control the Warm White channel separately.

    I know about Flag 24, but that's not the way I expect the light to work. I don't want to create a cool white emulation. Instead, I expect the Warm White light to be controllable without the RGB lights.

    In short: no color temperature, just brightness control.

    Is there any way to get this done?

    I appreciate all the help I can get!
  • ADVERTISEMENT
  • #2 20801016
    p.kaczmarek2
    Moderator Smart Home
    I see, this must be the one of the rare cases where RGB + W mode is required. I will try to look into it. I must admit that I have flashed many, many devices with OBK but haven't encountered that kind of lamp yet.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20801028
    vanderploegbas
    Level 2  

    I encountered the same with the LSC Smart Connect Outdoor Spotlights. They have the same LED configuration (RGB + Warm White).

    Colorful outdoor spotlights LSC Smart Connect on packaging.
  • ADVERTISEMENT
  • #4 20801045
    p.kaczmarek2
    Moderator Smart Home
    By the way, have you tried to just set a fifth PWM as a dummy? And then use it as RGBCW device but keep using one temperature mode?
    Helpful post? Buy me a coffee.
  • #5 20801070
    vanderploegbas
    Level 2  

    Out of all the configuration combinations that I've tested, I didn't try that.

    That is indeed giving me the ability to control the warm white LEDs. The LED Temperature Slider now lets me control the brightness level of the white light. Thanks! 😄

    It would be nice to have a correct slider though. Also for integration in Home Assistant.
  • #6 20828895
    alfakenzo
    Level 9  

    @p.kaczmarek2, can you please add this device to the list for better support in the templates? Thanks.
  • ADVERTISEMENT
  • #7 20828909
    p.kaczmarek2
    Moderator Smart Home
    I can make an entry but I don't even have a model number, do you have one, @alfakenzo ?
    or a config extracted that way https://www.youtube.com/watch?v=WunlqIMAdgw&ab_channel=Elektrodacom
    Helpful post? Buy me a coffee.
  • Helpful post
    #8 20830326
    alfakenzo
    Level 9  
    Yes, I have all you need. LSC Smart Connect 3200719 Outdoor Flood Light RGB+WW.
    The JSON
    Code: JSON
    Log in, to see the code


    and the Template I use and it works.

    Code: JSON
    Log in, to see the code
  • #9 20967079
    HumbleDeer
    Level 4  

    I have this light apart.

    Disassembly was destructive in nature, so I don't recommend opening it up unless you have other plans (like I do).

    The exact module used is the CB2L, the same one as in the outdoor spotlights formerly mentioned. I took those apart a year or so ago and posted a teardown on here.

    Component-wise:
    - CB2L module, flat on its back
    - local step-down regulator for the logic control
    - 24V input
    - 2835 LED's
    - AO3400 N-channel MOSFETs
    - LED's:
    - Warm white: 2 parallel strings of 7 in series
    - Red: 6 in series
    - Green: 6 in series
    - Blue: 6 in series
    - PWM lines:
    - Warm white: PWM1 (P7)
    - Red: PWM5 (P26)
    - Green: PWM4 (P24)
    - Blue: PWM0 (P6)

    Circuit board with a light module, LEDs, and electronic components.
  • #10 21322721
    voske15
    Level 2  
    Hi all!

    I picked up a few lights at Action a few weeks back, and they flashed easily. But I had some issues getting the light to register correctly in Home Assistant using the template from the teardowns database. (No light was created, only the telemetry.) It seems that enabling flag 24 to emulate a cool white channel does the trick, but this requires a slightly different channel order.

    So, the final template that works for me is:
    Code: JSON
    Log in, to see the code

    Hope it helps someone!
  • #11 21323170
    divadiow
    Level 34  
    >>21322721

    did you Cloudcutter flash? If not and you managed to take a backup of the Tuya factory firmware, please feel free to post it.
  • #12 21323822
    voske15
    Level 2  
    I flashed it using Cloudcutter indeed (what an amazing tool by the way), so no firmware backup sadly.
  • #13 21328990
    Rendition4994
    Level 1  
    This thread already contains some great info. I'm trying to convert it to ESPHOME but having some trouble. I'm using the config below but am only getting a ON/OFF button and a brightness slider for (remarkably) cool white. No colors and no warm white. Am I missing something here?

    The light does work as expected in HomeAssistant tho. Just not in the ESPHOME interface.

    
      ...
      platform: bk72xx
      board: generic-bk7231n-qfn32-tuya
    packages:
      device_base: !include common/template_common_base.yaml
    wifi:
      use_address: 192.168.1.212
    output:
      - platform: libretiny_pwm
        id: output_red
        pin: P26
      - platform: libretiny_pwm
        id: output_green
        pin: P24
      - platform: libretiny_pwm
        id: output_blue
        pin: P6
      - platform: libretiny_pwm
        id: output_cold
        pin: P7
    light:
      - platform: rgbw
        id: light_rgbw
        name: Light
        red: output_red
        green: output_green
        blue: output_blue
        white: output_cold

Topic summary

The discussion revolves around configuring the LSC Smart Outdoor Flood Light, which utilizes the BK7231N chipset and RGBWW LEDs, with OpenBeken firmware. The user successfully flashed the device but faced challenges in controlling the Warm White LED channel separately from the RGB channels. Other users shared similar experiences with devices having the same LED configuration. A suggested workaround involved setting a fifth PWM as a dummy to enable control over the Warm White LEDs, which proved effective. Additional details about the device's internal components and a request for better support in templates were also discussed.
Summary generated by the language model.
ADVERTISEMENT