How Thesada fits together
Part of Thesada: How it fits together · Hardware · Firmware · Web App · Applications · Getting started
One product in three layers. Hardware sits on the equipment and measures. Firmware on the ESP32 reads the sensors, runs the alert rules and gets the readings out over Wi-Fi or cellular. The web app stores the readings, shows them and sends the alerts to your phone. Each layer is its own open repository, and each can be used without the others.
flowchart TD
P[Probes and clamps on the equipment] --> C[Base carrier board]
C --> E[ESP32 board running the firmware]
E -- "Wi-Fi or LTE-M, MQTT over TLS" --> B((MQTT broker))
B --> A[Web app]
B -. optional .-> H[Your Home Assistant]
A -- "email, Telegram, webhook" --> Y[Your phone]
1. Hardware: what sits on the equipment
| Part | What it does | Where it stands |
|---|---|---|
| Probes | Waterproof DS18B20 temperature probes on the pipes, in the tank or the room | Running on our boiler |
| Current clamps | A clamp on one wire of a pump or heater circuit. No current means it is not running | Running on our boiler pumps |
| Base carrier | Our board: 2 clamp inputs, a 1-Wire bus with 4 probe connectors, surge protection on every input | v0.1 fabricated, assembled and tested, one part removed by hand. v0.2, the next revision, is design only |
| ESP32 board | An off-the-shelf LILYGO T-SIM7080G-S3 with the LTE-M modem and battery charger, or a Freenove ESP32-S3 where Wi-Fi is enough | Bought, not made |
| Node case | Printed, gasket-sealed wall case for the carrier, the ESP32 board and its 18650 cell | Two printed |
The board files, the case model and the print files are in Thesada/thesada-hw under CERN-OHL-P-2.0. More in Hardware.
2. Firmware: what runs on the ESP32
The same firmware runs on every board. A build per board picks the modules, and config.json on the device sets the pins, intervals and limits.
| Job | How |
|---|---|
| Read the sensors | Temperature probes, the clamps through the carrier’s ADS1115, the battery through the charger chip |
| Decide when to alert | Lua rules on the device, with a sustain count and a cooldown, changed without reflashing |
| Get the readings out | MQTT over TLS on Wi-Fi, LTE-M cellular when no Wi-Fi answers |
| Stay reachable | One shell over serial, the web dashboard, HTTP and MQTT, so a node in a far pasture can be checked and fixed remotely |
| Update itself | Pulls a new image, checks its SHA256, falls back after three crash resets |
Source: Thesada/thesada-fw, GPL-3.0. More in Firmware, and the design decisions in Why this way.
3. Web app: where readings and alerts go
| Job | How |
|---|---|
| Store and show | Every reading goes into Postgres and TimescaleDB, the dashboard updates live |
| Send alerts | Email, Telegram or a webhook, per person, per device, per severity |
| Notice silence | An offline alert when a paired node has not reported for 15 minutes |
| Pair a node | The owner claims it with the code on its sticker. The app gives it its own client certificate for mutual TLS |
| Manage it remotely | Config, alert rules and the device shell from the browser |
Source: Thesada/thesada-app, AGPL-3.0. It runs as one Go binary, so it can be self-hosted. More in Web App.
Already on Home Assistant? The firmware announces every sensor to it over MQTT, no app needed. See OWB Home Assistant.
4. Applications: what it is set up to watch
A module is one application on the same hardware and firmware: which probes, which clamps, which rules.
| Module | Watches | Where it stands |
|---|---|---|
| OWB Monitor | Outdoor wood boiler: supply and return on two loops, both pump currents | Running on our boiler |
| SHT31 Monitor | Room temperature and humidity | Running |
| Well Pump Monitor | Short cycling, running dry, tank pressure, pump house freezing | On the bench |
How we keep this page honest
Each claim about the code on this site carries an anchor into the source repository: the line of source text it rests on. On every change a check reads each anchor in the published firmware, app and hardware, and flags a claim whose source text changed or went away. A few claims also compare the value the page states, like which board revision was fabricated. The check does not read the sentence around a claim, so keeping that in step is on us. Status words like “running” and “on the bench” mean exactly that.
| Repository | What | Licence |
|---|---|---|
| thesada-hw | Base carrier board files, node case model and prints | CERN-OHL-P-2.0 |
| thesada-fw | ESP32 firmware | GPL-3.0 |
| thesada-app | Web app and API | AGPL-3.0 |
| thesada-doc | This site | CC BY-NC-SA 4.0 |
Want one for your place? See hit-con.ca/monitoring for monitoring and custom setups.