Lutra Lite firmware¶
On this page: what the firmware does, the design rules behind it, and a map of the firmware chapter. The current beta version is 0.5.5; the current stable version is 0.4.0. See Updates and channels.
What the firmware does¶
Lutra Lite is firmware in C on ESP-IDF for ESP32-S3 boards. It is closed source and free to use with Lutra; Lutra builds and signs every image. A box with Lutra Lite:
- reads pool equipment over RS485 (Modbus RTU as master, or listen-only next to an existing master), and optionally local network devices over HTTP;
- reads contacts on its digital inputs (8DI-8DO board): flow switch, pump running, level floats, leak, door;
- listens passively for wireless Bluetooth sensors in the BTHome v2 format (firmware 0.5.0 and later);
- sends readings, events and its state to the Lutra cloud over MQTT with mutual TLS;
- buffers readings in flash when offline and sends them later, in order;
- accepts a fixed list of signed commands and a small set of settings from the cloud;
- installs only firmware signed by Lutra, with automatic rollback if the new version fails its self-test;
- in the switching build only: drives outputs through interposing relays, with interlocks in the firmware.
Design rules¶
| Rule | Consequence |
|---|---|
| The box may be unreachable at any time | Every update must be safe to fail: A/B partitions, self-test, rollback, watchdog. Remotely you can only read data, change a few settings and request an update. |
| The read build never switches | The read build contains no code that can set an output. The CI checks the source and the compiled binary. |
| No open ports at the pool | Only outgoing connections. The setup page runs only on the box's own temporary network. |
| On site wins | A change made on site is never overwritten by an older wish from the cloud. |
| Physical access for sensitive actions | Network, "changes from the cloud" and output functions are set on site only. |
Chapter map¶
| Task | Page |
|---|---|
| Which boards are supported, pins and power | Boards |
| Read build or switching build | Builds |
| Flash or update from the browser | Web flasher |
| Flash or update from the command line | USB and command line |
| Change a box from read to switching (or back) | Converting to another build |
| Configure devices, network and inputs on site | Setup page, Network, Bus devices and inputs |
| Read wireless Bluetooth (BTHome) sensors | Bluetooth sensors |
| Read the LED, use the BOOT button | LED and BOOT button |
| Updates, beta and stable channels | Updates and channels |
| Outputs and interlocks | Switching build |
| Which equipment can be read | Supported devices |
| Something does not work | Troubleshooting |
Related pages¶
Last reviewed: 2026-11-24. Applies to Lutra Lite 0.5.0.