logo elektroda
logo elektroda
X

Ledytech Smart Ceiling Light BK7238 OpenBeken: CCT LED Configuration Issues

Wagr0 108 5
ADVERTISEMENT
  • #1 21730818
    Wagr0
    Level 2  
    Ledytech smart ceiling light with Surplife app, OpenBeken configuration help!

    I recently purchased this light to go inside my preexisting ceiling fan: Ledytech Smart Ceiling Light... https://www.amazon.com/dp/B0F89C2YCW?ref=ppx_pop_mob_ap_share

    I usually go with Zigbee for my lights; however, I was unable to find a light that would fit inside my Harbor Breeze ceiling fan. I took a gamble on this light and Unfortunately it did not work with the Magic Home integration. So I looked into flashing it.

    I was able to flash it successfully, as the chip is a BK7238 on a WB43-M5 v1.1 board. Just like in this post: https://www.elektroda.com/rtvforum/topic4097320.html

    However, after getting OpenBeken flashed, I was having a heck of a time figuring out what pins to get the light to do stuff.

    Ultimately, I figured out that the template for this light: https://www.elektroda.com/rtvforum/topic4058754.html

    Worked almost perfectly for the RGB section of the light. With the exception that I had to change BRG to GRB in config.

    With that being said, this ceiling light still has a whole set of CCT LEDs that I have not been able to successfully turn on even once, and was curious if anyone had any insight into what I should try to get them configurable as well. Thanks so much!
  • ADVERTISEMENT
  • #2 21730927
    divadiow
    Level 36  
    does Easy Flasher (https://github.com/openshwprojects/BK7231GUIFlashTool/releases) extract any config if you run your backup through it?

    BK7231 Easy UART Flasher interface with Tuya config extraction tab selected
  • ADVERTISEMENT
  • #3 21730928
    Wagr0
    Level 2  
    I’m so sorry; I should have come back here. I solved this: PWMs on pins 6 and 8 allow me to control color temperature. They weren’t doing anything until I had figured out the RGB configuration. It’s working perfectly now. I’d be happy to share my template, but to be honest, I’m not sure how. Very new to this!
  • ADVERTISEMENT
  • #4 21730930
    divadiow
    Level 36  
    just re-read and it's SurpLife, so not Tuya anyway - ie no config extraction

    paste the config, modifying any TODO with relevant info if you can, from the web application config tab:

    Screenshot of configuration tool interface with JSON form and copy button

    additionally, if you have a backup of the factory firmware please post that too. if you paired with SurpLife before the backup it may contain your wifi credentials, in which case you may not want to. Or send to me and I'll reset it and post anything interesting that my be gleaned from it.
  • ADVERTISEMENT
  • #5 21730932
    Wagr0
    Level 2  
    OK, here is the config I'm using; it is giving full functionality.


    {
    "vendor": "LadyTech",
    "bDetailed": "0",
    "name": "Smart Ceiling Light Replacement Kit, RGB LED Ceiling Fan Light Retrofit Kit",
    "model": "XGD-NZ-002 ",
    "chip": "BK7238",
    "board": "WB43-M5 V1.1",
    "flags": "1024",
    "keywords": [
    "Surplife",
    "WB43-M5 V1.1",
    "BK7238",
    "SM16703P_DIN"
    ],
    "pins": {
    "6": "PWM;5",
    "8": "PWM;4",
    "12": "SM16703P_DIN;0"
    },
    "command": "backlog powersave 1; startDriver SM16703P; SM16703P_Init 240 GRB; startdriver pixelanim",
    "image": "??",
    "wiki": "??"
    }

    Hopefully I did that right. If not, I apologize. First day ever of flashing something. Hopefully it helps someone, though! Also sent you the firmware in private message.

    Added after 8 [minutes]:

    OK, update. Almost full functionality. As I was turning off the light to go to bed, I noticed that it was glowing slightly and realized about 6 of the LEDs were still on at a very low brightness even after I “turned the light off”. Not sure what I need to do to fix that, but will work on it tomorrow.
  • #6 21730936
    divadiow
    Level 36  
    thanks for template and backup. It did contain credentials (see offset 1E1000). I have reset it now and it only contains test AP bits. Unpair/factory reset often doesn't actually remove user data on these, hence the caution.

    For the record, boot log at 115200 (then switches to 2000000 baud after the bootloader):

    Code: Text
    Log in, to see the code


    log is all from P11

    Added after 20 [minutes]:

    devicelist add

    https://github.com/OpenBekenIOT/webapp/pull/233
    Colorful round LED light with smartphone and remote control
ADVERTISEMENT