USB, battery or battery and solar

Tell HydroNode how the device is powered. When you flash, use Powered by in the Power step of the Device Builder. Later, use the sensor settings under Battery. A device on USB has no thresholds, only its send interval. With a battery you add Battery type (LiPo, Li-ion, LiFePO4), Cells in series, Capacity (mAh) and the Charger. The builder then fills in Device thresholds that suit the battery. Most of the time you can keep them.

Power step of the device builder with battery type, capacity, the four device thresholds and the sleep modesPower step of the device builder with battery type, capacity, the four device thresholds and the sleep modes
The Power step: battery, thresholds and the sleep mode with its estimated current.

The device has to measure its battery. Any of these works: a voltage divider on an ADC pin, a fuel gauge (MAX17043, MAX17048, MAX17049, LC709203F, BQ27441) or an INA219, INA226 or INA260 that counts the charge. Gauges sit on I²C. The LC709203F, the BQ27441 and charge counting need the battery capacity. Add the measurement in the Wiring step. When it is missing, the builder reminds you with Add a battery measurement so the device can protect the battery.

Four values in volts per cell

ValueBelow it the deviceLiPoLi-ionLiFePO4
Save belowsends half as often and skips gas and dust sensors. Back to normal 0.15 V higher.3.503.453.10
Radio off belowsends one last round, turns radio and outputs off and only checks the battery.3.303.203.00
Standby belowsleeps as deep as it can and wakes once an hour.3.203.002.80
Resume atruns again after two good readings at least a minute apart.3.603.503.20

The rules: Standby at least 0.05 V below Radio off, Radio off at least 0.05 V below Save, Resume at least 0.10 V above Radio off and at most 0.40 V above Save. On a pack with more cells the device works with the pack voltage, so the gaps count for the whole pack. If a value breaks a rule, the field tells you which one. A reading that fails never sends a device into standby. Three failed readings in a row turn the radio off.

While the device waits for the battery, the sensor shows Low battery standby instead of offline, and the sensor list of its project shows STANDBY. Widgets and Live Activities do not treat the old value as a fault either. You get a message through the Low battery standby channel under Settings → Monitoring, a push by default, and another one when the device is back.

Send to device and the colours

Open the sensor, press Settings and pick Battery. The box On the device shows the send interval and the four thresholds the device runs right now. Change a value and press Send to device. The change becomes an update job, and the device picks up the values with its next contact. You can follow the job in the device drawer on the project page and in the Job history. The owner and people with Can manage change the values, everyone else sees them.

The On the device box with the send interval, four battery thresholds in volts per cell and Send to deviceThe On the device box with the send interval, four battery thresholds in volts per cell and Send to device
Green dots mean the device runs exactly these values.
ColourMeaning
GreenThe device runs these values.
YellowSaved, waiting for the device. It takes them with its next contact.
RedThe device refused the change. The reason is shown, Send again tries once more.
BlueThe device runs other values, for example after a reset. Use device value keeps them.
GreyThe device reports its values but cannot take new ones, or has not reported yet.
DeviceHow new values arrive
HydroNode firmware 0.8.0 or laterAs a config update over the air, like any other change from the project page.
Your own sketch with HydroNode-Library 1.8.0 or laterIn the answer to its next values, when the sketch uses onSettings().
HydroNode station, firmware 2.1As a downlink after its next uplink, once downlinks are on (below).
ESPHome 0.5.0Reports its power: block only; change the YAML to change it.

Several devices at once? Tick them in the sensor list of a project, press Change config in the bar at the bottom and tick Device thresholds. The rest of that dialog is described in Changes.

Let HydroNode send to your stations

A HydroNode station gets new values as a downlink through your network server. Connect The Things Network or ChirpStack once in the Downlinks section of your LoRaWAN interface (Operations › Interfaces): connect, test, turn on. After that every change goes out after the next uplink of the station. The LoRaWAN guide shows the setup for The Things Network and ChirpStack.

In the sensor list of its project, click the gear of the station and press Change config, or use On the device in the sensor settings. LoRaWAN takes one station at a time and no bulk changes.

The station acknowledges a change and reports its values right after. If it does not answer within six uplinks, HydroNode sends the change again, three times at most.

More: LoRaWAN downlinks, Device Builder, Devices and updates, LoRaWAN guide.