avenpa/lumi-os-esp32 is the firmware Lumi’s ESP32 devices run. It is a fork of 78/xiaozhi-esp32 at upstream commit 831ffd1, with Lumi’s changes on top:
- only the eyes on the screen, with text only for setup, updates and errors,
- setup by QR code, and Wi-Fi over USB with Improv Serial,
- a small WebSocket that keeps the device reachable from the phone between conversations,
- an on-device name model, so it answers to “Hey Lumi” or the name you give it,
- English and Korean in one build,
- servo and I2C detection, exposed as MCP tools,
- a crash report on the next update check,
- a board for Espressif’s QEMU.
Status
Version 0.0.5. A real bread-compact-wifi-lcd board ran 0.0.1 and 0.0.2. The fixes in 0.0.3 and 0.0.4 were tested only in QEMU, and 0.0.5 changes no code. Other boards build from upstream but have not been tried with the Lumi options, except bread-compact-wifi and otto-robot, which were built but not run.
Flash the prebuilt image
For bread-compact-wifi-lcd (ESP32-S3 with 16 MB flash and PSRAM, a 240x320 ST7789 screen):
-
Download
lumi-os-esp32-0.0.5-bread-compact-wifi-lcd.binfrom the releases page. -
Write it at offset
0x0:pip install esptool esptool --chip esp32s3 write-flash 0x0 lumi-os-esp32-0.0.5-bread-compact-wifi-lcd.binOr use Espressif’s browser flasher in Chrome or Edge.
-
The board shows its Wi-Fi hotspot as a QR code. Scan it with your phone and pick your network, then add the device as described in ESP32 and xiaozhi boards.
Build it
With ESP-IDF v6.1:
. $IDF_PATH/export.sh
python scripts/build.py bread-compact-wifi-lcd --language en-US --wake-word lumi
esptool --chip esp32s3 write-flash 0x0 build/merged-binary.bin
Leave out --wake-word lumi and the board uses the stock “Hi ESP” wake word.
Servers
The default server address, https://device.avenpa.com/xiaozhi/ota/, is Lumi’s hosted service (paid, with a 7-day trial; see Plans and credits). Any xiaozhi-compatible server works for voice, for example the self-hosted xiaozhi-esp32-server: set its address in idf.py menuconfig under Xiaozhi Assistant > Default OTA URL and build.
Lumi’s extras (the phone line, the name, the language switch) need a server that implements the lumi_ctl control line.
Developer docs
In the repository:
| Page | Covers |
|---|---|
| architecture.md | Start-up, tasks, the face, the link, the name model, the body, NVS keys |
| protocol.md | The OTA fields Lumi adds, every lumi_ctl message, the MCP tools |
| boards.md | Other boards, servos, running in QEMU |
| CONTRIBUTING.md | What belongs here and what belongs upstream |