logo elektroda
logo elektroda
X
logo elektroda

Flashing Beken Software on LSC RGB Bulb 970719.1 for Pin Settings

potormaxl 582 6
ADVERTISEMENT
  • #1 21353504
    potormaxl
    Level 2  
    Help with LSC RGB Bulb 970719.1
    I managed to get this device out of tuya cloud by using cloud cutter. Then i took the usual procedure to take the device to home assistant into esphome.
    Unfortunately i forogt to figure out the pin settings with the ichiptool and so i am stranded in esphome now. The light bulb is always on an i cant turn it of. I cant change the brighness or colors.
    Is there a way to flash beken software on it, to figure out the pin settings?
    I got it out form tuya cloud by using: lsc-2578539-970724-white-and-color-ambiance-e27-806lumen.json wich is not the exact firmware but with: lsc-2578539-970719-rgbct-bulb-2.9.27.json or lsc-2578539-970719-rgbct-bulb-2.9.6.json the cloud cutter exploit did not work.
    So i hope someone could help me out and thanks in advance.
    Yours
    Peter
    AI: Could you share the ESPHome configuration or YAML file you are using for the LSC RGB Bulb 970719.1?
    name: lscbek
    friendly_name: LSCbek

    bk72xx:
    board: generic-bk7231t-qfn32-tuya

    logger:

    web_server:

    captive_portal:

    mdns:

    api:
    encryption:
    key: ""

    ota:
    - platform: esphome
    password: ""
    wifi:
    use_address: 192.168.178.51
    ssid: !secret wifi_ssid
    password: !secret wifi_password
    # Enable fallback hotspot (captive portal) in case wifi connection fails
    ap:
    ssid: "LSC Fallback Hotspot"
    password: ""

    button:
    - platform: restart
    name: Restart

    debug:
    update_interval: 30s

    text_sensor:
    - platform: debug
    reset_reason:
    name: Reset Reason
    - platform: libretiny
    version:
    name: LibreTiny Version

    sensor:
    - platform: uptime
    name: Uptime

    bp5758d:
    clock_pin: P24
    data_pin: P26

    output:
    - platform: bp5758d
    id: output_red
    channel: 2
    current: 14
    - platform: bp5758d
    id: output_green
    channel: 1
    current: 14
    - platform: bp5758d
    id: output_blue
    channel: 3
    current: 14
    - platform: bp5758d
    id: output_cold
    channel: 5
    current: 29
    - platform: bp5758d
    id: output_warm
    channel: 4
    current: 29

    light:
    - platform: rgbww
    id: light_rgbww
    name: Light
    color_interlock: true
    cold_white_color_temperature: 6500 K
    warm_white_color_temperature: 2700 K
    red: output_red
    green: output_green
    blue: output_blue
    cold_white: output_cold
    warm_white: output_warm




    AI: Have you tried any other troubleshooting steps besides using Cloud Cutter and attempting to flash Beken software? If so, what were they?
    Not yet. I tried to flash beken via ota form esphome but it did not work (magic size missing or so)
  • ADVERTISEMENT
  • Helpful post
    #2 21353540
    p.kaczmarek2
    Moderator Smart Home
    If your software does not support the automatic, online config extraction, then you can try migrating to OBK and using WebApp to extract Tuya config partition:
    https://github.com/BenJamesAndo/OpenBeken_uf2_firmware



    Alternatively, you can try searching known devices templates until you'll find a match.

    Have you tried to open the bulb to confirm that's using bp5758d chip?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 21353611
    potormaxl
    Level 2  
    Thank you very, very much for your fast help. With your help I could get openbeken on the device right now. And from there I can toggle the light. With your web tool I flashed the first template on the "import"-page called "RGBCW LED" and it works. The only problem I have got now, is that the colors don't match and the warm/cold output. Is there a way of getting these values or can I just try it out? At the moment the config says: P7(PWM1) PWM 1 / P8 (PWM2) PWM 5 / P9 (PWM3) PWM 2 / P24 (PWM4) PWM 3 and P26 (PWM5) PWM 4. I did not open the device because I wanted to avoid damaging something inside... Thank you very much for your answer! Yours Peter
  • ADVERTISEMENT
  • Helpful post
    #4 21353640
    p.kaczmarek2
    Moderator Smart Home
    It's good to hear you've got a progress. I can also try to help with the colors, but first you need to specify what is exactly wrong? There can be multiple things that needs adjustment.

    1. Do you mean that Warm is swapped with Cool, etc? If so, you need to reorder channels in configure module, and by that, I mean just swap 4 with 5 channel indexes (or if you use indexing starting with 0, then swap 3 and 4).
    The same goes if Green is swapped with blue, blue with red, etc, etc, in any case, you just need to reorder indexes in Configure module.

    The expected channel indexing is like RGBCW, so R = 1, G = 2, etc,

    So, just try to determine which PWM is which color, and then swap indexes, save, retry, check if order is good, if not, reorder again....


    2. Or do you mean that you have this strange kind of bulb with "alternate PWM control", where on slider controls CW brightness, and second temperature? If that's the case, we have a flag for that, called "[LED] Alternate CW light mode (first PWM for warm/cold slider, second for brightness)"
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/flags.md

    3. Alternatively, if basic colors are matching (red is kinda red, green is greenish, blue is blueish, etc), and you want to tune colors better, you can use color calibration;
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/led_gamma_control.md

    Added after 44 [seconds]:

    EDIT:
    Or try those steps I mentioned alreAdy , try to get Tuya config:
    https://youtu.be/WunlqIMAdgw
    Helpful post? Buy me a coffee.
  • #5 21353671
    potormaxl
    Level 2  
    Thank's a lot; I followed the video again step by step and now it worked: The original tuya config from the device is:
    Device configuration, as extracted from Tuya:
    - LED Green (Channel 2) on P9
    - LED Cool (Channel 4) on P26
    - LED Blue (Channel 3) on P24
    - LED Warm (Channel 5) on P7
    - PWM Frequency 1000
    - LED Red (Channel 1) on P8
    Device seems to be using WBLC9 module, which is using BK7231T.
    And the Tuya section starts at UNCOMMON POSITION 0

    So finally it works perfectly - thank you very much for your great help!
  • ADVERTISEMENT
  • #6 21353770
    p.kaczmarek2
    Moderator Smart Home
    Nice, can you also share the JSON template from the Web App, so we can add this device to our devices list here:
    https://openbekeniot.github.io/webapp/devicesList.html
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around flashing Beken firmware on the LSC RGB Bulb model 970719.1 after extracting it from the Tuya cloud using a cloud cutter. The user initially faced issues with pin settings, resulting in the bulb being stuck in an "always on" state without control over brightness or color. After receiving guidance, the user successfully flashed OpenBeken firmware, allowing control over the bulb. However, they encountered color mismatches and were advised on how to adjust PWM channel configurations to correct these issues. The final configuration was shared, detailing the correct pin assignments and PWM frequencies for optimal performance.
Summary generated by the language model.
ADVERTISEMENT