Battery and Power
A device on a battery protects itself: it sends less when the battery runs low, turns its radio off before the battery is empty and runs again once it recovered. You set these values once in HydroNode and the device keeps them. HydroNode shows what the device runs and whether it took your change.
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.
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
| Value | Below it the device | LiPo | Li-ion | LiFePO4 |
|---|---|---|---|---|
| Save below | sends half as often and skips gas and dust sensors. Back to normal 0.15 V higher. | 3.50 | 3.45 | 3.10 |
| Radio off below | sends one last round, turns radio and outputs off and only checks the battery. | 3.30 | 3.20 | 3.00 |
| Standby below | sleeps as deep as it can and wakes once an hour. | 3.20 | 3.00 | 2.80 |
| Resume at | runs again after two good readings at least a minute apart. | 3.60 | 3.50 | 3.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.
| Colour | Meaning |
|---|---|
| Green | The device runs these values. |
| Yellow | Saved, waiting for the device. It takes them with its next contact. |
| Red | The device refused the change. The reason is shown, Send again tries once more. |
| Blue | The device runs other values, for example after a reset. Use device value keeps them. |
| Grey | The device reports its values but cannot take new ones, or has not reported yet. |
| Device | How new values arrive |
|---|---|
| HydroNode firmware 0.8.0 or later | As a config update over the air, like any other change from the project page. |
| Your own sketch with HydroNode-Library 1.8.0 or later | In the answer to its next values, when the sketch uses onSettings(). |
| HydroNode station, firmware 2.1 | As a downlink after its next uplink, once downlinks are on (below). |
| ESPHome 0.5.0 | Reports 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.



