Virtual sensors and external data: sun, power price, weather

Averages and formulas over several sensors, values you set by hand, and the sun, the day-ahead power price and the weather as sensors of their own.

HydroNode 4 min read
The sources of a virtual sensor: two data points taken over from its pool, values set by hand and a computed averageThe sources of a virtual sensor: two data points taken over from its pool, values set by hand and a computed average

Some values come from no device: the average over three rooms, a setpoint, the position of the sun or the power price of the next hour. Virtual sensors and external data bring them into HydroNode, with charts, widgets and automations like any other sensor.

Virtual sensors

+SensorVirtual sensor adds a sensor without a device. Its inputs are the data points of its data pool, including the ones that come through links. It holds three kinds of values:

ReferenceShows a data point unchanged, without a copy. Detection and alerts stay with the source.
ComputedAverage, minimum, maximum, sum or a formula over up to eight inputs.
ManualA value you set: a setpoint, a mode, a switch, a grow log.

Formulas

Inputs are named a to h. Numbers, +, -, *, /, parentheses and min, max, avg, abs, round are allowed. A missing input, or one older than allowed, gives no value for that moment, never 0. The form shows the result live, and new computed values are calculated back over the history.

formulaFormula
kind: FORMULA
inputs: a = Bed 1 temperature, b = Bed 2 temperature
expression: round((a + b) / 2, 1)

External data

SourceValues
SunElevation, azimuth, daylight, minutes to sunrise and sunset. Calculated by HydroNode.
Power pricePrice now, in one hour, lowest and highest of the day in ct/kWh, day-ahead for DE-LU and AT.
WeatherTemperature, humidity, pressure, wind, cloud cover, UV, rain in the next hour. Forecast from MET Norway.

One source per data pool, at the project's location or a place you pick. External sensors do not count toward your 20 sensors and have no anomaly detection and no offline alerts.

Examples

  • The pump runs only while Price now is below a value.
  • The window closes when Rain next hour rises above zero.
  • The average of three greenhouse sensors as one station on the map.

Where to go next