Hello,
Today I bought a new device with CBU on it. Flashing only works via UART, and the version is MCU v1.0.10.

https://vi.aliexpress.com/item/10050056714858...t_main.16.4e5f1c24BrcPTA&gatewayAdapt=glo2vnm
After I did a full backup, I tried to put Open Beken on it, but it is not working. I can only control the LED, but not the PIR and Lux sensors, which I have from the extracted bin file.
Device configuration, as extracted from Tuya:
- LED Cool (Channel 4) on P24
- PWM Frequency 1000
- PIR Sensitivity 8
- PIR Frequency 20000
- Control Pin (TODO) on P26
- PIR Low Duty 16
- PIR High Duty 7
- PIR Input 6
Device seems to be using CBU module, which is using BK7231N.
And the Tuya section starts, as usual, at 2023424
On ESPHome, I have the same problem. But on ESPHome, I can control the LUX and PIR sensors, but not like on the Tuya App. On the Tuya App, you can control the LED as a switch and can control the LED with the PIR and Lux sensors.





ESPHOME yaml:
esphome:
name: lumina-hol1
bk72xx:
board: generic-bk7231n-qfn32-tuya
logger:
web_server:
captive_portal:
mdns:
api:
password: ""
ota:
password: ""
wifi:
ssid: !secret wifi_smart
password: !secret wifi_smart_pass
ap:
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
- platform: adc
pin: P23
id: lux_sensor
name: "LUX Sensor"
update_interval: '10s'
unit_of_measurement: lux
filters:
- lambda: |-
return (x / 10000.0) * 2000000.0;
output:
- platform: libretiny_pwm
id: output_cold
pin: P24
frequency: 1000 Hz
light:
- platform: monochromatic
id: light_monochromatic
name: Light
output: output_cold
binary_sensor:
- platform: gpio
pin: 26
name: "PIR Sensor"
device_class: motion
id: pir_sensor_light
on_press:
then:
- component.update: lux_sensor
I will attach a 2 MB binary file.