logo elektroda
logo elektroda
X
logo elektroda

BK7231T Globe Fairy Lights - can't get GPIO config config template or cloud-cutter profile

MnM1 2787 35
ADVERTISEMENT
  • #1 20658283
    MnM1
    Level 10  

    I have just installed BK7231T onto Globe Fairy Lights:

    https://www.aliexpress.com/item/1005004946026...order_list.order_list_main.113.21ef1802T0lCoU
    BK7231T Globe Fairy Lights - can't get GPIO config config template or cloud-cutter profile

    The device is on the Wi-Fi and can be accessed via the web interface.

    I was looking to configure the device and came across these issues:

    1. Reading GPIO Tuya config - got the file through the WebApp

    BK7231T Globe Fairy Lights - can't get GPIO config config template or cloud-cutter profile

    When moving the binary into Easy Uart Flasher, I get this error:

    BK7231T Globe Fairy Lights - can't get GPIO config config template or cloud-cutter profile

    2. I have also tried the cloud-cutter config for the device - https://github.com/tuya-cloudcutter/tuya-clou...ces/tuya-generic-msl6-globe-fairy-lights.json
    However, even that doesn't show anything useful:

    BK7231T Globe Fairy Lights - can't get GPIO config config template or cloud-cutter profile

    Now I am stuck and not sure what else to try... so I need some assistance, please.
  • ADVERTISEMENT
  • #2 20658302
    p.kaczmarek2
    Moderator Smart Home
    Hello, can you send me that binary file so I can check what's wrong?

    Aren't those devices TuyaMCU?

    Or maybe start with GPIO Doctor. Set PWM roles to PWM pins (There are only 6 possible PWM pins) and see if colors reacts. You can also try setting them to relay roles. Relay role will act like 0% or 100% PWM.
    https://www.elektroda.com/rtvforum/topic3976371.html
    Helpful post? Buy me a coffee.
  • #4 20658806
    MnM1
    Level 10  
    I have tried GPIO doctor.

    The unit itself has 3 buttons - ON/OFF, Colour and Music.

    This is what I found when looking for buttons

    P7 - triggers when I press the MUSIC button
    P9 - triggers when I press the Colour button
    P24 - triggers when I press the On/Off button

    In terms of PWM - I have not found any that will turn on the leds.

    Added after 25 [minutes]:

    I have tried enabling TuyaMCU driver - to me it looks like this devide is not using that as I get this in the logs

    
    Info:TuyaMCU:Consumed 256 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Info:TuyaMCU:Consumed 256 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Info:TuyaMCU:Consumed 256 unwanted non-header byte in Tuya MCU buffer
    Info:TuyaMCU:Skipped data (part) 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    
  • #5 20658835
    p.kaczmarek2
    Moderator Smart Home

    Before we proceed, have you considered opening the device to get some more information, like for example, which LED driver may be used there?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #6 20658855
    MnM1
    Level 10  

    Yes, I was in the middle of that :)
    Pics below

    BK7231T Globe Fairy Lights - can't get GPIO config config template or cloud-cutter profile

    BK7231T Globe Fairy Lights - can't get GPIO config config template or cloud-cutter profile

    BK7231T Globe Fairy Lights - can't get GPIO config config template or cloud-cutter profile

    Added after 39 [seconds]:

    Hope they help. Please let me know if you want me to take more pics
  • ADVERTISEMENT
  • #7 20658881
    p.kaczmarek2
    Moderator Smart Home

    Which cable is for LEDs? How many wires are there for LEDs? I can only see markings: V+ and GND, what are the other LED wire markings?
    Helpful post? Buy me a coffee.
  • #8 20658887
    MnM1
    Level 10  

    New pic - hope it shows what you are after

    BK7231T Globe Fairy Lights - can't get GPIO config config template or cloud-cutter profile

    Added after 1 [minutes]:

    So the clear cable looks like it's having 3 wires - V+, LED and GND
  • ADVERTISEMENT
  • #10 20658893
    MnM1
    Level 10  
    Yes - below is how the device looks like

    BK7231T Globe Fairy Lights - can't get GPIO config config template or cloud-cutter profile
  • #11 20658944
    p.kaczmarek2
    Moderator Smart Home

    Well, that means there is a driver inside the LEDs themselves, and it must be something like WS2812B or similar. First of all, we would need to know what kind of driver that is, and it would require disassembly of the LEDs. Secondly, we do not support such drivers at the moment, but they are on the TODO list. You would need to first check which exact LED driver is used there and then wait for implementation on our side.

    Can those bulbs display different colors individually?
    Helpful post? Buy me a coffee.
  • #12 20659398
    MnM1
    Level 10  

    Hi,

    Yes, these bulbs can display different colors individually.
    Regarding the drivers - I will see if I can open one LED up. I wonder what will happen if I just cut out one of the LEDs from the wire? Will the rest still work?
  • #13 20659400
    p.kaczmarek2
    Moderator Smart Home
    Well, to the best of my knowledge, assuming they are like WS2812B, then even removing one LED will just make strip shorter by one LED and all effects will still work.

    If you don't want to cut them, you can, for example, take Arduino or NodeMCU with WS2812B driver and check if it works, maybe they are WS2812B.

    In general, I apologize, but we don't currently have driver for that kind of LEDs. They are very rare in common IoT devices. We are planning to support them in the future, but it's still pending.

    I should have realized sooner, but I didn't notice that your LEDs are individually addressable.
    Helpful post? Buy me a coffee.
  • #14 20659404
    MnM1
    Level 10  

    No apologies required - I am thankful for your help for this and many other devices :)

    "take Arduino or NodeMCU with WS2812B driver and check if it works" - would you have some links with examples of what I should be doing? I am not familiar at all with that. If I can get away without cutting or opening one up, it will be best :)

    Thank you.
  • #15 20659424
    p.kaczmarek2
    Moderator Smart Home
    Well, it depends whether you have Arduino or NodeMCU or any board like that, but you basically would need to search for WS2812B tutorial with a sample code and then desolder your strip from IoT device and try to use it with Arduino. Of course, connect GND, proper power, and data pin....

    I am curious myself to see if it works, it would be a valuable piece of information.

    Or just open one LED and check, there are multiple LED controllers similar to WS2812B , I don't know which is used in your device.
    Helpful post? Buy me a coffee.
  • #16 20659442
    MnM1
    Level 10  

    I opened up one of the LEDs only to find that it is covered in some sort of hard plastic. I could not get the hard plastic off - it feels like it will damage the LED if I do that.

    BK7231T Globe Fairy Lights - can't get GPIO config config template or cloud-cutter profile

    I guess the next step is to see how I can make it work with Arduino. I have an Arduino around that I haven't used in ages - need to find some guides and see how to make it work.

    Also, I guess I can cut off the LED I have just opened and use that in the Arduino tests? I don't think I will need all of the LEDs for this - what do you think?
  • #17 20675737
    MnM1
    Level 10  

    When I look in Tuya IoT, I see the device being described as "33*IC MSL5" - not sure if this is any indication of the LED controller it is using.

    Still working on the Arduino side - might take a couple of weeks before I get to it.
  • #18 20754527
    MnM1
    Level 10  
    Hi @p.kaczmarek2 - I can confirm that the LEDs on this device are WS2812B.

    Any chance you can implement the recent drivers on BK7231N to BK7231T? I can test as soon as it is ready.

    Cheers.
  • #19 20766395
    MnM1
    Level 10  

    MnM1 wrote:

    Hi @p.kaczmarek2 - I can confirm that the LEDs on this device are WS2812B.

    Any chance you can implement the recent drive on BK7231N to BK7231T? I can test as soon as it is ready.

    Cheers.


    @p.kaczmarek2 - when do you think you can get some time to implement the WS2818B drivers from N version to the T version?
    It is on the cards any time soon?
  • #20 20786058
    Nimierkki
    Level 4  

    I also have the same exact board/light, but a different brand (Nedis). Following this thread!
  • #21 20786266
    p.kaczmarek2
    Moderator Smart Home
    Hey @Nimierkki , is your device also BK7231T based, so it requires porting like @mnm11 device?
    Helpful post? Buy me a coffee.
  • #22 20786290
    Nimierkki
    Level 4  

    Hi @p.kaczmarek2, my board is exactly the same, BK7231T based, and requires porting. If I can assist you with anything or you need to connect to my device via remote connection, please let me know.
  • #23 20786400
    p.kaczmarek2
    Moderator Smart Home
    Well, do you know C programming language?
    Helpful post? Buy me a coffee.
  • #25 20825415
    jshstadler
    Level 4  

    I have similar BK7231T based Fairy Lights LED strips.
    After flashing ESPHome or OpenBK, I realized that I can't get the LEDs to light up either. Have you had any luck yet?
    At this point, it seems like the easiest would be to cut off the LED strip and connect it to an ESP32.
  • #26 20825515
    MnM1
    Level 10  

    No luck yet.
    Still waiting for OBK to support WS2812B on the BK7231T.
    Let me know what you are thinking in regards to ESP32. If it works, I might give it a test too while waiting for OBK.
  • #27 20825703
    jshstadler
    Level 4  

    Thanks for confirming.

    I'll try and get it working with an ESP32, and then I'll decide between the following options:

    WLED with MQTT to Home Assistant
    https://esphome.io/components/light/rgb.html
    https://esphome.io/components/light/neopixelbus.html
    https://esphome.io/components/light/fastled.html
    https://esphome.io/components/light/esp32_rmt_led_strip

    I'll keep you posted on the progress.

    Added after 8 [hours] 9 [minutes]:

    Quickly gave it a try with https://esphome.io/components/light/esp32_rmt_led_strip. Worked like a charm on my first try. (With basic on/off, color and scenes functionality)

    I desoldered the 3 led strip wires for the LED strip from the Tuya unit, and soldered them onto the ESP32 as follows:
    Strip Wires to ESP32
    LED to GPIO19
    V+ to VIN (5V in from USB power)
    GND to GND

    Update: Just gave https://esphome.io/components/light/fastled.html a try now as well, works perfectly as well.
    I've attached the YAML config as well, with the fastled components being used, the commented-out config is there for the esp32_rmt_led_strip as well in case you'd like to have a look.
  • #28 20836604
    MnM1
    Level 10  
    Thanks for the info.

    What ESP32 chip did you use? What kind of case did you use for it?
  • #29 20836616
    jshstadler
    Level 4  
    Here's the pictures of how it's connected, I just connected the ESP32 to a 5V phone charger (it has a USB-C connector), which is powering both the ESP32 and LED strip.

    Here's the one I bought, but any ESP32 that takes 5V power should do the trick: https://www.robotics.org.za/ESP32-DEV-CH340-C?search=esp32-dev

    ESP32 module connected to LED strip wires. ESP32 module connected to a LED strip.

    Edit: Oh and for the enclosure, I was going to 3D print one, but then I decided not to bother, as it's completely hidden away and out of reach. If you get a smaller ESP32 with less pins (generally more expensive) you might be able to fit it inside the original housing.
  • #30 20836621
    MnM1
    Level 10  

    Thanks.

    I have some WROOM32s around - I will give it a try.
    Looks like I will need a case for it as the ESP32s I have will not fit into the original case the light had.

Topic summary

The discussion centers on configuring BK7231T-based Globe Fairy Lights, specifically addressing difficulties obtaining a usable GPIO configuration template or cloud-cutter profile. Attempts to read the GPIO Tuya config and use cloud-cutter JSON profiles failed to yield functional results. The device features three buttons mapped to GPIO pins P7 (Music), P9 (Colour), and P24 (On/Off). The LED wiring includes three wires: V+, LED data, and GND, indicating individually addressable LEDs likely using WS2812B or a similar driver. The device does not appear to use TuyaMCU protocol, as indicated by log errors. Disassembly revealed LEDs encased in hard plastic, complicating direct inspection. Users confirmed the LEDs support individual color control. Current firmware (OpenBK or ESPHome) lacks WS2812B driver support for BK7231T, though such support exists for BK7231N and is pending porting. As a workaround, users successfully desoldered the LED strip and controlled it via an ESP32 using ESPHome with fastled and esp32_rmt_led_strip components, achieving basic lighting and color control. Flashing the BK7231T module via UART is possible with CH340 adapters, but LED control remains unsupported in native firmware. The community awaits official WS2812B driver implementation for BK7231T to enable native control without external hardware.
Summary generated by the language model.
ADVERTISEMENT