Update every device over the air

Change the interval, sleep mode or firmware of one board or forty from the dashboard, without a USB cable. Jobs, templates, verify modes and rollback explained.

HydroNode Updated 8 min read
The HydroNode dashboard with the device details of a board that is downloading an updateThe HydroNode dashboard with the device details of a board that is downloading an update

Three sensors in the greenhouse, two on the balcony, one in the cellar. And now every one of them should send every 5 minutes instead of 10. That used to mean fetching the cable six times. Today you do it on the dashboard, and each board checks after the update that it still measures correctly.

What updates over the air

HydroNode firmware 0.5.0 or laterFlashed once with the Device Builder. That is the last USB flash the board needs.
Firmware: the ESP32 familyESP32, S2, S3, C3 and C6 take new firmware and new config.
Config: everythingThe ESP8266 takes new settings but no new firmware. It has no room for a second copy.
Owner or Can manageYou change your own devices and every device shared with you as Can manage.

Config is everything the builder asked you: which sensors sit on which pins, how often the board sends and how it sleeps. WiFi and the secret are never part of it; the board keeps the ones it has.

The overview on the dashboard

Every device is listed on the Dashboard under Devices. The Firmware column shows the version and config revision, and below them what is going on right now. The Needs attention tab narrows the list to the devices that want you.

In the columnMeans
→ 0.8.0 availableNew firmware is available and the board can take it over the air.
latestThe board already runs the newest firmware.
r14The config revision. Counts up with every change.
config driftedCame from a template but was changed on its own since.
no OTAYour own sketch, ESPHome or firmware before 0.5.0. No updates from HydroNode.
downloading 34%A job is running. Queued, offered, restarting and verifying show up here too.

Change one device

  1. Open the detailsClick the gear in the device row. The details open on the right with the state, key figures and error rates. ↑ and ↓ jump to the next device.
  2. FirmwareUpdate to 0.8.0 installs the newest signed firmware. When that is not possible the button says why, such as Config only on an ESP8266 or Needs USB reflash on old firmware.
  3. ConfigChange config opens the Device Builder with the saved setup. The board stays fixed; you go through wiring, power and timing, and the last step, Send, sends it all over the air.
Device details with an update running, buttons and key figuresDevice details with an update running, buttons and key figures
The device details: the state with the five steps of a job, firmware, config and verify mode.
No setup saved? Then HydroNode does not know what is wired to the board and cannot change its config. Reflash it once with the builder, through Reflash via USB in the details. Everything after that goes over the air.

Many devices at once

Tick devices in the list and a bar appears at the bottom with Update firmware to 0.8.0, Change config and Send command. Bulk change above the list ticks every device you may change. One device or forty, the same rules apply, and nothing goes out before you confirm.

  1. ChangeFirmware, send interval, an extra value (such as the WiFi signal), the power mode or the battery thresholds, plus the verify mode for this change.
  2. DevicesWhich boards get the change. All with update available picks every board with new firmware waiting in one click.
  3. Check & reviewHydroNode runs every rule for every device and sorts them into OK, Warning and Not possible. Yellow marks a device that starts from a different value than most. Then Create jobs.
The check step of a bulk change with OK, warnings and the firmware per deviceThe check step of a bulk change with OK, warnings and the firmware per device
The check step: what is the same for everyone sits at the top, below it each device with its result and reason.
Battery below 30 % A firmware download is the most power hungry thing a board does. With a weak battery you confirm twice. If the battery dies mid update, the old firmware starts again.

How a job runs

Every device in a change gets its own job. The board starts each step itself when it checks in; HydroNode never reaches into your network. A sleeping device therefore picks up its update with its next round.

  1. QueuedWaits for check-in
  2. OfferedWith the next answer
  3. DownloadSigned image
  4. VerifyStrict or Lenient
  5. InstalledOr rolled back
Every job walks these steps. The drawer and Job history show where it stands.

After the restart the board does not sleep but checks itself: up to three tries, two minutes at most. Until it passes, the old firmware and old config stay on the board. If it fails, it goes back on its own and reports why, for example sensor_read_failed:bme280.

Verify modeGood afterUse it for
StrictAn accepted signed reading and every configured sensor readAlmost everything. A sensor that stops answering after an update is caught.
LenientThe first accepted signed readingA device with a sensor that is already broken and would fail Strict every time.

Set the default for your account with the gear in the job history. Per device, change it in the details under Verify mode.

Templates for identical boards

A template is a saved setup without a sensor and without WiFi: board, wiring, power and timing. You find them on the dashboard under Templates. Flash every identical board from one and change all of them later in one go. When you save a new version, the template shows which linked devices still run the old one, and Apply to linked devices… brings them up to date after the usual check.

Templates with versions and linked devicesTemplates with versions and linked devices
Up to 50 templates, each versioned. Devices changed on their own carry drifted.

The history

Job history above the device list shows every change of the last 30 days with a number: J-0140 for one device, B-0142 for a bulk change. The Firmware, Config and Problems filters help you find things. Whoever started a change gets a push when all devices are done, and one right away on a rollback.

The job history with changes, outcomes and devicesThe job history with changes, outcomes and devices
Running changes update live. A click opens the devices of a change.

Security

  • Every firmware image is signed with ECDSA P-256. The board checks the signature before it installs anything.
  • The WiFi password and the secret are never part of an update.
  • HydroNode never connects to your device. The device asks, HydroNode answers.

Read more