Push ingest
Create a push device under Dashboard → Devices on the live app. You receive a per-device ingest key in a 30-minute callout (survives refresh until dismissed). Lost it later? Use Reveal ingest key on the device card when key recovery is enabled on the server, or Rotate key for a new one.
Full UI walkthrough (push and pull): Adding push and pull devices.
Plain ESP32, no code? The browser flasher installs the ProbeHarbor firmware over USB from Chrome or Edge on a computer, then sends the board your Wi-Fi and device key over the same cable. On a classic ESP32 it has been tested with DS18B20 probes, a DHT22, a BME280, an SHT31 and a door switch; AHT20 sensors, leak and battery inputs, and ESP32-S3/C3 boards are built in but not yet hardware-tested. Right after you create a device, the same flasher appears on the Devices page with the key filled in.
POST https://probeharbor.dev/api/ingest/<device-key>
Content-Type: application/jsonOptional top-level health fields (any payload style):
| Field | Meaning |
|---|---|
battery / battery_pct | Battery percent (0–100) |
rssi | Wi-Fi / radio RSSI (dBm) |
fw | Firmware version (1.5.1); the device page offers updates for ProbeHarbor's probe firmware |
crash | ProbeHarbor probe firmware 1.5.1+: its last crash, sent once after a restart (elf build hash, pc, up to 16 bt addresses, task, cause, addr, reset). Shown decoded on the device page; never a sensor. A malformed one is ignored |
Sensors auto-import on first POST
Sensor keys import automatically from your JSON (flat keys, classic temp object, typed sensors[], SenML, or Home Assistant REST). Rename labels on the Devices page afterward. Manual mapping under Advanced is optional if you want to pre-map keys before the first POST.
After the first successful POST, open Overview while signed in to confirm live values. History collects from the 15-minute background poll and successful ingests.
Nothing arriving? See A device never sent its first reading.
No hardware yet? On Overview, use Try without hardware to save the public example pull feed in one click.
Home Assistant
REST sensors, MQTT bridge, and inbound webhook examples: Home Assistant integration.
Product page: probeharbor.dev/integrations/home-assistant · HACS: github.com/doodersrage/probeharbor-home-assistant
curl smoke test
curl -X POST "https://probeharbor.dev/api/ingest/YOUR_DEVICE_KEY" \
-H "Content-Type: application/json" \
-d '{"temp1": 42.5, "door1": false, "battery": 87, "rssi": -62}'Expect HTTP 200 when the key is valid. Keys temp1 / door1 appear as sensors after the first POST; rename labels on Devices if needed.
Payload styles
Flat keys
Simplest for ESP32 / Pico W sketches. Keys become sensor IDs on first POST.
{
"temp1": 42.5,
"humidity1": 41,
"door1": true,
"rssi": -62
}Classic Arduino temp object
Matches the Ethernet garage firmware JSON shape. Sample sketch: ethernet_dht22_ingest (Uno + W5100; HTTP only — use push_https_forward.py on a LAN host for TLS).
{
"temp": {
"0": { "c": 18.5, "f": 65.3, "h": 42 },
"1": { "c": 19.0, "f": 66.2, "h": 40 },
"avg": { "f": 37.5, "c": 3.1, "h": 42.2 }
},
"battery": 87,
"rssi": -62
}Typed sensors[]
{
"sensors": [
{ "key": "garage_temp", "kind": "temperature", "value": 65.3, "unit": "F" },
{ "key": "garage_rh", "kind": "humidity", "value": 42, "unit": "%" },
{ "key": "door1", "kind": "door", "bool": true },
{ "key": "co2", "kind": "co2", "value": 820, "unit": "ppm" },
{ "key": "pm25", "kind": "pm25", "value": 12, "unit": "µg/m³" },
{ "key": "sump", "kind": "level", "value": 22, "unit": "%" }
],
"battery": 87,
"rssi": -62
}Supported kind values: temperature, humidity, co2, pressure, pm25, voc, level, energy, door, power, flood, motion, generic.
Humidity is matched to the temperature probe on the same device whose key shares the same name once a temp/temperature/humidity/hum/rh prefix or _/- suffix is removed: temp1 + humidity1, temp_air + humidity_air, garage_temp + garage_rh. Matched pairs give the charts their humidity and dew-point lines and let humidity alerts fire. A humidity key that matches no temperature (for example bme_h next to bme_t) is still stored and charted as humidity, but without a dew point (that needs the matching temperature) and it can't trigger humidity alerts tied to a temperature probe.
Temperatures are stored and alerted on in °F. A temperature value with unit C, °C, Cel, celsius, degC, K or kelvin is converted to °F when it arrives; the value and unit you sent are kept in the reading's meta (sent_value, sent_unit). No unit, or F, is taken as °F.
Implausible values
Values that can't be a real measurement are not stored, so they can't fire or hide an alert:
| Kind | Rejected | Reason code |
|---|---|---|
temperature | exactly 185°F or -196.6°F (DS18B20 power-on reset / disconnected) | sensor_fault |
temperature | below -100°F or above 250°F (after °C/K conversion) | out_of_range |
humidity | below 0% or above 100% | out_of_range |
The other values in the same request are stored as usual. The response lists what was dropped:
{ "ok": true, "readings": 1, "sensors_created": 0,
"rejected": [{ "key": "temp1", "kind": "temperature", "value": -196.6, "reason": "sensor_fault" }] }If every value is rejected the endpoint answers 400 with { "error": "No valid sensor values", "rejected": [...] }. The payload checker shows the same result before you deploy a device.
Reading time and buffered batches
By default a reading is stamped with the time the server receives it. A device with a synced clock (NTP) can send recorded_at instead, as ISO 8601 with a time zone (2026-11-13T11:58:00Z) or Unix seconds (1794575880):
{ "temp_c": 4.5, "recorded_at": "2026-11-13T11:58:00Z" }To send readings buffered during a Wi-Fi or server outage, put up to 100 of them in readings, each with its own recorded_at. Device fields stay at the top level:
{
"fw": "1.3.0",
"rssi": -67,
"readings": [
{ "temp_c": 4.5, "recorded_at": 1794575880 },
{ "temp_c": 4.4, "recorded_at": 1794575940 }
]
}Rules:
recorded_atmust be at most 72 hours old and at most 5 minutes ahead of the server. Anything else is rejected, never moved to "now": a wrong clock must not put readings at the wrong place in history. A time string without a zone is rejected too.- Milliseconds are not accepted; send seconds.
- A reading already stored for the same sensor at the same
recorded_atis skipped and counted induplicates. Resending after a lost reply is safe. The answer is still200, so the device can clear its buffer. - In a batch, items with a bad time are listed in
rejected_entries({ "index": 3, "reason": "recorded_at_too_old" }) and the others are stored. For a single payload, a bad time fails the request with400 Invalid recorded_at. - Alerts are checked once, against the state after the batch is stored. Old readings fill in history; a condition that was already over by the newest reading does not send an alert.
SenML packs (a top-level RFC 8428 array) use the records' own times: each record's time is bt + t, where bt carries over to later records until the next bt. Unix seconds are the device's clock (same window and duplicate rule as recorded_at); values below 2^28 are relative to now ("t": -60 is a minute ago); no time means now. A record with a bad or out-of-range time is listed in rejected_entries by its index in the pack. At most 100 distinct times per pack.
[
{ "bn": "garage/", "bt": 1794575880, "n": "temp", "u": "Cel", "v": 4.5 },
{ "n": "temp", "u": "Cel", "v": 4.4, "t": 60 }
]{ "ok": true, "readings": 2, "sensors_created": 0, "duplicates": 1,
"rejected_entries": [{ "index": 3, "reason": "recorded_at_too_old" }] }The payload checker checks recorded_at and batches the same way, and names the items it would skip.
SenML (RFC 8428)
SenML JSON arrays are auto-detected when native shapes are absent. Temperature uses unit Cel or degF; humidity uses %RH. Probe keys come from the SenML name (last path segment).
[
{ "bn": "probeharbor/garage/", "n": "0", "u": "Cel", "v": 18.5 },
{ "n": "0", "u": "%RH", "v": 42 },
{ "n": "door", "vb": true }
]Example feed: https://probeharbor.dev/api/feeds/example?format=senml
Home Assistant REST sensor
Single-entity REST responses (state + attributes.unit_of_measurement) are also auto-detected:
{
"state": "65.3",
"attributes": {
"unit_of_measurement": "°F",
"friendly_name": "Garage temperature"
}
}Example feed: https://probeharbor.dev/api/feeds/example?format=homeassistant
MQTT-over-HTTP bridge
Cloudflare Workers are not an MQTT broker. Keep Mosquitto / Home Assistant MQTT on your LAN and mirror readings with:
POST https://probeharbor.dev/api/ingest/mqtt
X-Ingest-Key: <device-key>
Content-Type: application/jsonBody may include topic, payload (JSON string), or message (object). The Worker unwraps and forwards into the same ingest path.
Recipes (Home Assistant + Node-RED import): MQTT bridge. Product page: Adding devices § MQTT.
Common mistakes
| Symptom | Check |
|---|---|
401 | Wrong or rotated device key |
| Readings missing on Home | First POST not received yet, or device disabled |
| No history | Need successful ingest and 15-minute poll / signed-in Home |
| TLS failures on MCU | Use a local HTTPS relay (python feeds). Uno + W5100: ethernet_dht22_ingest + push_https_forward.py |
| Can't recover key | Operator must set INGEST_KEY_ENCRYPTION_SECRET; older devices need one Rotate key |
Related
- Sensor sketches
- Pull feeds (alternative to push)
- Home Assistant
- Product: Adding devices · ingest & webhooks · Pico W · STM32 Zephyr · CH32V RISC-V · AVR assembly · Teensy 4.1 · PIC18 Ethernet · Cellular