Powertech MB3906 Bluetooth battery charger · Works · Source available

Reverse engineered a Bluetooth battery charger into ESP32 firmware for Home Assistant, with Claude Code finishing the job

View JSON
Powertech MB3906 Bluetooth battery charger: A charger flight recorder: BLE to Home Assistant on an ESP32.
Image: GitHub (freman/chargermon-mb3906)

Who did what

None of the 2 commits credits an AI. Many tools add no credit, so this does not show the AI was not used.

Counted from the public git history on 16 Nov 2026. How

What was done

A human decompiled the charger app and protocol, then Claude Code finished an ESP32 bridge with MQTT, a web UI and docs.

freman built firmware that bridges a Powertech MB3906 Bluetooth battery charger to a network. The author wanted a flight recorder, so the next battery failure would come with evidence. The author did the decompiling and protocol work and used Claude Code for the rest.

How it was done

The charger's BLE protocol is undocumented, so the author reverse engineered it and wrote it up in a blog post and a protocol reference. Claude Code, in the author's words, was brought in to finish: the captive portal, turning notes into readable documentation, and the web page code. Everything was checked against a live charger through full charge cycles.

Results

An ESP32-C3 connects over BLE, authenticates and streams voltage, current, capacity, program and faults, and starts or stops charge programs. Home Assistant gets ten sensors plus controls through MQTT discovery, and there is a web UI with live updates and a small OLED display. The code is MIT licensed.

Questions about Powertech MB3906 Bluetooth battery charger

Discussion

Your library

Sources

Sources reviewed · Added

An AI model drafted this entry from the sources above. Checked against the sources on 15 Oct 2026. The figures are the author's. How entries are checked. Something wrong? Tell me.

The weekly dump: new projects, once a week