View on GitHub

Smart Irrigation

A Home Assistant integration to optimize irrigation

Sensor group configuration

Main page: Configuration
Previous: Module configuration
Next: Usage

Sensor groups define what sources provide the weather data to be collected and calculated on to determine irrigation duration. You can use any numeric Home Assistant sensor, regardless of its source. Additionally, if you configured a weather service in this integration, you can retrieve the data from that as well.

Continuous updates

The Continuous updates for all sensor groups card sits above the sensor groups, on the Weather › Sensor groups page, and applies to every group. It is only shown in advanced mode, or when the setting is already on. Continuous updates records every change of a sensor of the group, instead of one reading per update, so the averages the calculation works from, hour by hour and for the rain, follow the day more finely. Every sensor group with sensors of its own is recorded this way, also one that takes the rest of its data from a weather service: its sensors are recorded as they change, and the service is still read once per update, so it costs no extra requests. A rain gauge gains the most from it: the replay of the rain places what falls between two of its reports, so a gauge that reports every ten minutes places its rain within ten minutes rather than within the hour of the update. The zones are not calculated again at each change; the scheduled calculation does that, once, from the readings recorded.

It records and nothing more. It used to calculate the zones again at every change, which moved the water balance, and the trigger that accounts for the duration of the run, all day. The scheduled calculation now does that once, from the readings recorded, and the live estimate on the Info page and in the zone's live water balance entity shows where a zone stands in between without writing anything. Zones on a pure-sensor group are calculated at the scheduled time like any other. A sensor debounce setting controls how fast changes are recorded.

With it on, a group's readings are combined differently: see the column Expected aggregation for continuous updates below.

Adding a sensor group

Select Add sensor group below the groups, enter a name and add it; with no group yet the field is already open. Your sensor group is added and you 'wire up' the sensors.

Configuring a sensor group

Apart from changing the name, you can specify the source where to retrieve the weather data metrics. Metrics can be retrieved from a weather service (assuming you set it up), a sensor or a static value. When using a sensor or static value as a source, take care to make sure the unit the integration expects is the same as your sensor provides. You can choose which aggregation to use like average, maximum, minimum etc.

It's recommended to use actual sensor sources as much as you can and only rely on weather services as needed. If your zone is covered (such as a green house), of course you can set the total precipitation to 0.

The group's Evapotranspiration source is always the first field, and it decides what else is asked. Left on None, the zones calculate evapotranspiration from the weather, so the readings it needs are asked: temperature, dew point, humidity, pressure, wind speed and solar radiation. Given ready-made, by a weather service or a sensor, the other readings are not asked (a note says how many); rain stays. A plain sentence under each source explains what it does. The two choices are worded to tell them apart: None (Smart Irrigation calculates it) means the weather service, or your sensors, only supply the inputs of Smart Irrigation's own calculation, and Ready-made ET₀ from the weather service (or a sensor) means the value is taken as it comes and the other readings are not used.

The group also says when its zones and its source disagree: a zone calculated from the weather ignores a provided value, and a zone set to provided needs a source.

Some fields are only shown in advanced mode. Total precipitation (a rain gauge that adds up) is shown only in advanced mode, or when it already has a source. How the readings are combined (average, first, last, maximum, median, minimum, Riemann sum, sum, delta) is advanced mode only. The question Input provides values in is not asked when Home Assistant reports a unit the field can be read in; it is asked when Home Assistant reports nothing usable, or when the stored unit contradicts what it reports.

The following data can be provided:

Data Required Available sources Available units Expected aggregation Expected aggregation for continuous updates
Current precipitation No Weather Service
Sensor
Static value
in/h
mm/h
Average Riemann Sum
Dewpoint Yes Weather Service
Sensor
Static value
°C
°F
Average Last
Evapotranspiration No None (module will calculate it)
Ready-made ET0 from the weather service
Sensor
Static value
in
mm
Average Last
Humidity Yes Weather Service
Sensor
Static value
% Average Last
Total precipitation No Sensor
Static value
in
mm
Delta Delta
Pressure (*see notes below the table) Yes Weather Service
Sensor
Static value
hPa
inch Hg
millibar
psi
Average Last
Solar Radiation No Weather Service or None (requires module to estimate it)
Radiation sensor
Light sensor (lux)
Static value
MJ/day/m2
MJ/day/sq ft
W/m2
W/sq ft
Average Riemann Sum
Temperature Yes Weather Service
Sensor
Static value
°C
°F
Average Last
Wind speed Yes Weather Service
Sensor
Static value
meter/s
mile/h
km/h
knot
Average Last

Please note:

Weather service history

The table of the weather service history only shows values supplied by the weather service. A field whose source is a sensor appears as - there.

Silent sensors

When a temperature, humidity, dew point, wind speed or pressure source of a sensor group stops reporting for more than 6 hours, Smart Irrigation says so instead of calculating on old data without a word. Every 15 minutes it looks at the groups that automatic zones use:

Deleting a sensor group

Use the button at the bottom to delete a sensor group. Note you can only delete sensor groups that are not used by any zones.

Now you are ready to use the integration!

Main page: Configuration
Previous: Module configuration
Next: Usage