1. flash the firmware
2. start driver BL0942SPI, probably in short startup command
3. you should already get readings, but it's good thing to calibrate, VoltageSet, etc commands
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamTL;DR: Over 150 Tuya/Beken devices already work with OpenBeken [Elektroda, p.kaczmarek2, post #20351359] “No hardware modifications are required” [Elektroda, p.kaczmarek2, post #20537263] to read power on the CBU-based 6-in-1 meter after flashing. Follow the backup-flash-calibrate routine to avoid data loss.
Why it matters: You can turn a cloud-locked meter into a fully local, Home-Assistant-ready sensor in under 10 minutes.
• Chipset: BK7231N (CBU), 32-bit @120 MHz, 2 MB flash [Tuya CBU DS]. • Meter IC: BL0942, 0–65 A, 0.1 mA resolution (SPI mode) [BL0942 DS]. • Supported firmware: OpenBeken ≥ 1.17.0 with BL0942SPI driver [Elektroda, p.kaczmarek2, post #20535543] • Typical post-calibration accuracy: ±1 % for power and voltage [BL0942 DS]. • Flashing time: ~35 s at 921 kbit/s using hid_download_py [Elektroda, p.kaczmarek2, post #20347216]
python uartprogram mybackup.bin -d /dev/ttyUSB0 -r -s 0x0 -l 0x200000 [Elektroda, p.kaczmarek2, post #20347216]mybackup.bin now holds the 2 MB image.hid_download_py; bkWriter 1.60 fails on BK7231N [Elektroda, p.kaczmarek2, post #20347216] Download OpenBK7231N_QIO_x.xx.xxx.bin from the GitHub releases page [Elektroda, p.kaczmarek2, post #20347327]dmesg | grep tty. A CH341 adapter reports as ttyUSB0 when attached [Elektroda, deanfourie, post #20347438]*_N_QIO_*.bin file and flash at address 0x0 [Elektroda, p.kaczmarek2, post #20347327]startDriver BL0942SPI to Short Startup Command and reboot. Readings appear instantly in the UI [Elektroda, p.kaczmarek2, post #20535543]
sensor:
- platform: mqtt
name: "Meter Power"
state_topic: "obk_meter/POWER/get"
unit_of_measurement: W
Channel numbers map to topics like obk_<MAC>/<chan>/get [Elektroda, p.kaczmarek2, post #20355143].rbl image for BK7231N, wait for the automatic reboot [Elektroda, p.kaczmarek2, post #20538842]