Elektroda.com
Elektroda.com
X

[BK7231N - CB2L] Aubess WiFi Smart LED Light Bulb 15W E27 RGBCW

ferbulous 1395 14
  • This is a short teardown of the Aubess WiFi Smart LED Light Bulb 15W E27 RGBCW based on - BK7231N (CB2L).

    Basic information:
    Brand: Aubess
    Chip: CB2L (BK7231N) - the chip listed is QM-02L, but seems to be another variant of CB2L
    Local Vendor: https://www.aliexpress.com/item/1005004846008613.html


    Teardown Photos:
    [BK7231N - CB2L] Aubess WiFi Smart LED Light Bulb 15W E27 RGBCW
    [BK7231N - CB2L] Aubess WiFi Smart LED Light Bulb 15W E27 RGBCW [BK7231N - CB2L] Aubess WiFi Smart LED Light Bulb 15W E27 RGBCW [BK7231N - CB2L] Aubess WiFi Smart LED Light Bulb 15W E27 RGBCW [BK7231N - CB2L] Aubess WiFi Smart LED Light Bulb 15W E27 RGBCW [BK7231N - CB2L] Aubess WiFi Smart LED Light Bulb 15W E27 RGBCW [BK7231N - CB2L] Aubess WiFi Smart LED Light Bulb 15W E27 RGBCW


    Flashing method:
    a) Using tuya-cloudcutter
    1. Select profile with firmware version 1.3.21

    b) Serial:
    1. You'll need to desolder the CB2L chip because the TX & RX pin are not accessible from the back
    2. Using serial method with hid_download tool. Start flashing and do a power cycle or ground the CEN pin.
    UART TX --> PCB RX
    UART RX --> PCB RX
    UART GND --> PCB GND
    UART 3.3V --> PCB 3.3V

    Pinout:
    PinAssignment
    P8PWM 1
    P7PWM 2
    P6PWM 3
    P24PWM 5
    P26PWM 4

    Cool? Ranking DIY
    About Author
    ferbulous
    Level 15  
    Offline 
    ferbulous wrote 261 posts with rating 36, helped 4 times. Been with us since 2022 year.
  • #2
    Zain00
    Level 9  
    Thank you for the review.
    I ordered this bulb https://www.aliexpress.com/item/1005004816481....order_list.order_list_main.22.51fc1802pM0UN1 and it's identical to yours.

    Flashed it using tuya-cloudcutter and set the pins and it's working now.

    What I didn't like about this bulb is Color temperature it's 3000k - 6500k not 2700k - 6000K as advertised in the seller page
    I still like the sonoff bulb better because it gives 2700k color
  • #3
    spin55
    Level 14  
    Hello. I have flashed via USB and it works, but I have a problem.
    The light bulb is integrated into Home Assistant and from here I can control it and it updates the values ​​fine on the web, but when I control it from here it doesn't update the values ​​in Home Assistant. Any ideas?

    mqtt:
      light:
      - unique_id: "OpenBK7231N_FF2F4FEB_light"
        name: "obkFF2F4FEB 0"
        rgb_command_template: "{{ '#%02x%02x%02x0000' | format(red, green, blue)}}"
        rgb_value_template: "{{ value[0:2]|int(base=16) }},{{ value[2:4]|int(base=16) }},{{ value[4:6]|int(base=16) }}"
        rgb_state_topic: "obkFF2F4FEB/led_basecolor_rgb/get"
        rgb_command_topic: "cmnd/obkFF2F4FEB/led_basecolor_rgb"
        command_topic: "cmnd/obkFF2F4FEB/led_enableAll"
        state_topic: "obkFF2F4FEB/led_enableAll/get"
        availability_topic: "obkFF2F4FEB/connected"
        payload_on: 1
        payload_off: 0
        brightness_command_topic: "cmnd/obkFF2F4FEB/led_dimmer"
        brightness_state_topic: "obkFF2F4FEB/led_dimmer/get"
        brightness_scale: 100
        #brightness_value_template: "{{ value }}"
        color_temp_command_topic: "cmnd/obkFF2F4FEB/led_temperature"
        color_temp_state_topic: "obkFF2F4FEB/led_temperature/get"
        #color_temp_value_template: "{{ value }}"
    

    Regards

    It's fixed. The problem was the redrafting of yaml text.
  • #4
    Zain00
    Level 9  
    @spin55 Did you have the QM-02L module ? I removed the module from the board but Tx and Rx were not marked
  • #5
    spin55
    Level 14  
    They are marked as:
    P10 --> RXD1
    P11 --> TXD1
    P0 --> TXD2
    P1 --> RXD2
    This module is the same as the CB2L, only the nomenclature of the pads changes.
    I say this from memory because I have already closed the bulb.
    Regards

    To remove the QM-02L module, it is convenient to unsolder the electrolytic capacitor next to it, which is lying horizontally.

    [BK7231N - CB2L] Aubess WiFi Smart LED Light Bulb 15W E27 RGBCW [BK7231N - CB2L] Aubess WiFi Smart LED Light Bulb 15W E27 RGBCW [BK7231N - CB2L] Aubess WiFi Smart LED Light Bulb 15W E27 RGBCW
  • #6
    spin55
    Level 14  
    Hello,
    I'm trying to get an RGBCW bulb to turn on when the toggle switch is flipped.
    For this I have put the following code in autoexec.bat:
    backlog led_basecolor_rgb FFFFFF; led_enableAll 1; led_dimmer 100

    The bulb turns on correctly but after a few seconds it goes off.
    Looking at the Log it seems that it starts with a certain configuration in MQTT that overrides the one in autoexec.bat

    Info:MQTT:Publishing val 40FF00 to obkFF2F4FEB/led_basecolor_rgb/get retain=0
    Info:MQTT:Publishing val 463 to obkFF2F4FEB/led_temperature/get retain=0
    Info:MQTT:Publishing val 0 to obkFF2F4FEB/led_enableAll/get retain=0
    Info:MQTT:Publishing val 38 to obkFF2F4FEB/led_dimmer/get retain=0


    Code: text
    Log in, to see the code


    Any solution?
  • #7
    ferbulous
    Level 15  
    @spin55 do you have flag 12 enabled?
    Are you turning off the relay from the switch or using detached mode to keep the bulb always online?
  • #8
    spin55
    Level 14  
    The bulb only connects to the mains when I flip the switch, that's why I have put the code in the starter.
    I did not have Flag12 activated because I considered that I did not need it, however I did the test activating it and it continues the same.
    When the switch is activated, 230 volts are applied and it turns on correctly, but after a few seconds it turns off by itself.
    The idea is that it works like a normal light bulb when turned on, and once turned on, it can be controlled remotely via the web or Home Assistant.
    Regards

    In Esphome, the bulb turns on during startup and does not go out until Home Assistant is activated or the power is cut off with the switch:
    esphome:
      name: albertlight
      platform: ESP8266
      board: esp8285
      on_boot:
        then:
          - switch.turn_on: relay
    

    It is a series connection, the bulb is powered through the mains on/off switch.
  • #9
    ferbulous
    Level 15  
    @spin55 I’m using slightly different command on startup for the cold white and flag 12 disabled

    
    backlog led_temperature 154; led_enableAll 1; led_dimmer 100
    
  • #10
    spin55
    Level 14  
    @ferbulous, thanks, I've tried it and same effect. It turns on fine but then shuts itself off.
    Does that backlog command run from autoexec at startup when you plug in the bulb?
    I clarify that once the bulb is turned on, the operation is correct both from the web and Home Assistant. The problem occurs when turning it on for the first time or doing a Restart.

    Would you mind posting a Log, similar to mine, after a Restart or disconnection/connection?
    thanks
  • #11
    ferbulous
    Level 15  
    @spin55 i’ll update tomorrow once i’m home.
    Maybe there’s some automation running that keeps toggling it off?
  • #12
    ferbulous
    Level 15  
    @spin55

    This is the logs after it's turned on


    Info:GEN:sta:rssi=-60,ssid=Suliana,bssid=a0:ab:1b:84:8c:d0 ,channel=10,cipher_type:CCMP
    Info:MAIN:Main_Init_Before_Delay
    Info:CFG:####### Boot Count 44 #######
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 19 changes count.
    Error:CMD:no file early.bat err -2
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:CFG:####### Flash Save LED #######
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:Using SSID [Suliana]
    Info:MAIN:Using Pass [0122345318]
    Info:MQTT:MQTT_RegisterCallback called for bT aubess_bulb5/ subT aubess_bulb5/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/aubess_bulb5/ subT cmnd/aubess_bulb5/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/BK7231N/ subT cmnd/BK7231N/+
    Info:MQTT:MQTT_RegisterCallback called for bT aubess_bulb5/ subT aubess_bulb5/+/get
    Info:CFG:####### Flash Save LED #######
    Info:CFG:####### Flash Save LED #######
    Info:CFG:####### Flash Save LED #######
    Info:MAIN:Main_Init_After_Delay done
    Info:MAIN:Time 1, idle 276279/s, free 80224, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 2, idle 188783/s, free 80224, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Boot complete time reached (1 seconds)
    Info:CFG:####### Set Boot Complete #######
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 3, idle 181008/s, free 80224, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 4, idle 190402/s, free 80224, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 5, idle 189051/s, free 80224, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:ssid:Suliana key:0122345318
    Info:MAIN:Time 6, idle 192871/s, free 75264, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 7, idle 187530/s, free 74192, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 8, idle 113318/s, free 73880, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 9, idle 0/s, free 73880, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 10, idle 0/s, free 73880, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=fc:67:1f:59:d1:f6 
    Info:GEN:sta: 0, softap: 0, b/g/n
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:wl_status 3
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
    Info:MAIN:wl_status 10
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:wl_status 11
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Time 11, idle 55500/s, free 74552, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 12, idle 187763/s, free 74592, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MQTT:mqtt_user
    mqtt_pass 
    mqtt_clientID aubess_bulb5
    mqtt_host 192.168.1.40:1883
    Info:MAIN:Time 13, idle 188751/s, free 74312, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MQTT:mqtt_connection_cb: Successfully connected
    Info:MQTT:mqtt_subscribed to aubess_bulb5/+/set
    Info:MQTT:mqtt_subscribed to cmnd/aubess_bulb5/+
    Info:MQTT:mqtt_subscribed to cmnd/BK7231N/+
    Info:MQTT:mqtt_subscribed to aubess_bulb5/+/get
    Error:MQTT:MQTT client "aubess_bulb5" request cb: err 0
    Error:MQTT:MQTT client "aubess_bulb5" request cb: err 0
    Error:MQTT:MQTT client "aubess_bulb5" request cb: err 0
    Error:MQTT:MQTT client "aubess_bulb5" request cb: err 0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic aubess_bulb5/led_enableAll/get
    Info:MQTT:MQTT in topic aubess_bulb5/led_enableAll/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic aubess_bulb5/led_temperature/get
    Info:MQTT:MQTT in topic aubess_bulb5/led_temperature/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic aubess_bulb5/led_dimmer/get
    Info:MQTT:MQTT in topic aubess_bulb5/led_dimmer/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic aubess_bulb5/led_finalcolor_rgbcw/get
    Info:MQTT:MQTT in topic aubess_bulb5/led_finalcolor_rgbcw/get
    Info:MQTT:channelSet part topic led_enableAll/get
    Info:MQTT:channelSet channel 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet part topic led_temperature/get
    Info:MQTT:channelSet channel 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet part topic led_dimmer/get
    Info:MQTT:channelSet channel 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:channelSet part topic led_finalcolor_rgbcw/get
    Info:MQTT:channelSet channel 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:Publishing val aubess_bulb5 to aubess_bulb5/host retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -13 result 0
    Info:MAIN:Time 14, idle 156610/s, free 74504, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Will scheduled HA discovery in 9 seconds
    Info:MQTT:Publishing val Build on Jan 24 2023 03:37:40 version 1.15.377 to aubess_bulb5/build retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -12 result 0
    Info:MAIN:Time 15, idle 186679/s, free 74232, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Will scheduled HA discovery in 8 seconds
    Info:MQTT:Publishing val fc:67:1f:59:d1:f6  to aubess_bulb5/mac retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -11 result 0
    Info:MAIN:Time 16, idle 189376/s, free 74504, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Will scheduled HA discovery in 7 seconds
    Info:MQTT:Publishing val 2 to aubess_bulb5/sockets retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -8 result 0
    Info:MAIN:Time 17, idle 190986/s, free 74504, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Will scheduled HA discovery in 6 seconds
    Info:MQTT:Publishing val -61 to aubess_bulb5/rssi retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -7 result 0
    Info:MAIN:Time 18, idle 189454/s, free 74272, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Will scheduled HA discovery in 5 seconds
    Info:MQTT:Publishing val 18 to aubess_bulb5/uptime retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -6 result 0
    Info:MAIN:Time 19, idle 377989/s, free 74504, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Will scheduled HA discovery in 4 seconds
    Info:MQTT:Publishing val 74504 to aubess_bulb5/freeheap retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -5 result 0
    Info:MAIN:Time 20, idle 187656/s, free 74504, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.105 gate=192.168.1.1 mask=255.255.255.0 mac=fc:67:1f:59:d1:f6 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=Suliana,bssid=a0:ab:1b:84:8c:d0 ,channel=10,cipher_type:CCMP
    Info:MAIN:Will scheduled HA discovery in 3 seconds
    Info:MQTT:Publishing val 192.168.1.105 to aubess_bulb5/ip retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -4 result 0
    Info:MAIN:Time 21, idle 181249/s, free 74504, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Will scheduled HA discovery in 2 seconds
    Info:MQTT:Publishing val 1 to aubess_bulb5/led_enableAll/get retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -3 result 0
    Info:MAIN:Time 22, idle 188058/s, free 74264, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Will scheduled HA discovery in 1 seconds
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic aubess_bulb5/led_enableAll/get
    Info:MQTT:MQTT in topic aubess_bulb5/led_enableAll/get
    Info:MQTT:channelSet part topic led_enableAll/get
    Info:MQTT:channelSet channel 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:Publishing val 155 to aubess_bulb5/led_temperature/get retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -2 result 0
    Info:MAIN:Time 23, idle 183964/s, free 74504, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Will do request HA discovery now.
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic aubess_bulb5/led_temperature/get
    Info:MQTT:MQTT in topic aubess_bulb5/led_temperature/get
    Info:MQTT:Queued topic=homeassistant/light/OpenBK7231N_aubess_bulb5_light/config, 1 items in queue
    Info:MQTT:channelSet part topic led_temperature/get
    Info:MQTT:channelSet channel 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:Publishing val 100 to aubess_bulb5/led_dimmer/get retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -1 result 0
    Info:MAIN:Time 24, idle 188609/s, free 73088, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic aubess_bulb5/led_dimmer/get
    Info:MQTT:MQTT in topic aubess_bulb5/led_dimmer/get
    Info:MQTT:channelSet part topic led_dimmer/get
    Info:MQTT:channelSet channel 0
    Info:MQTT:channelSet NOT 'set'
    Info:MAIN:Time 25, idle 185275/s, free 73328, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val (812 bytes) to homeassistant/light/OpenBK7231N_aubess_bulb5_light/config retain=1
    Info:MAIN:Time 26, idle 190208/s, free 72248, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 1 to aubess_bulb5/led_enableAll/get retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -3 result 0
    Info:MAIN:Time 27, idle 183862/s, free 73328, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic aubess_bulb5/led_enableAll/get
    Info:MQTT:MQTT in topic aubess_bulb5/led_enableAll/get
    Info:MQTT:channelSet part topic led_enableAll/get
    Info:MQTT:channelSet channel 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:Publishing val 155 to aubess_bulb5/led_temperature/get retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -2 result 0
    Info:MAIN:Time 28, idle 183562/s, free 73120, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic aubess_bulb5/led_temperature/get
    Info:MQTT:MQTT in topic aubess_bulb5/led_temperature/get
    Info:MQTT:channelSet part topic led_temperature/get
    Info:MQTT:channelSet channel 0
    Info:MQTT:channelSet NOT 'set'
    Info:MQTT:Publishing val 100 to aubess_bulb5/led_dimmer/get retain=1
    Info:MQTT:[g_bPublishAllStatesNow] item -1 result 0
    Info:MAIN:Time 29, idle 191147/s, free 73328, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic aubess_bulb5/led_dimmer/get
    Info:MQTT:MQTT in topic aubess_bulb5/led_dimmer/get
    Info:MQTT:channelSet part topic led_dimmer/get
    Info:MQTT:channelSet channel 0
    Info:MQTT:channelSet NOT 'set'
    Info:MAIN:Time 30, idle 184540/s, free 73328, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.1.105 gate=192.168.1.1 mask=255.255.255.0 mac=fc:67:1f:59:d1:f6 
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-61,ssid=Suliana,bssid=a0:ab:1b:84:8c:d0 ,channel=10,cipher_type:CCMP
  • #13
    spin55
    Level 14  
    @ferbulous, thanks for the log. I have solved it by activating Flag12
    Regards
  • #14
    jkwim
    Level 7  
    Does OpenBK Support Philips Hue Emulation like Tasmota does?

    Can these be integrated with Alexa?
  • #15
    jkwim
    Level 7  
    Same product from following link worked with cloudcutter as described in OP.

    Link

    [BK7231N - CB2L] Aubess WiFi Smart LED Light Bulb 15W E27 RGBCW