iHarmony™ Farm Lab Presenter guide

Presenter Guide (smart irrigation across four states)

Farm Lab

A 20-25 minute demo of iHarmony™'s connected-device testing for an irrigation, ag-tech or farm-operations audience, then a proposed pilot. Every claim below is backed by something that runs on the laptop.

Positioning: the sprinkler decision - water or not, and why - is software, and software can be tested before a valve opens: across sites, states, time zones, weather and water rules, with faults on purpose.

0Before the meeting (T-1 day and T-30 min)

scripts\run_device_studio.bat      # the Studio: http://127.0.0.1:8790/  (device group Farm)
pytest demo/farm_lab -o addopts= -q    # the farm lab suite on its own (~4 minutes): must pass
powershell
  • Open the Studio, set Device group to Farm, open the Farm scene. Farm clock 600x (a farm day in about 2.4 minutes).
  • Keep a second tab on the Test Explorer (http://127.0.0.1:8790/explorer, tabs under Farm).
  • Dry-run section 2 once the same day. Before the audience arrives, click Back to normal on any site page you changed.
  • Do not run the farm lab suite at the same time as a live walkthrough: both are CPU-heavy.

1Run sheet

MinShowcase pointShowSay
0-2FramingFarm scene"1,000 hectares on 8 sites in four states, each with an irrigation controller and a field station, and one forecast service. All digital twins, on real protocols."
2-51. The decisiona site card"Every morning at 05:00 local time each controller decides per field: water, or skip - and it says why. Dry alfalfa is watered just long enough to refill the root zone; moist almonds are left alone."
5-92. Rain forecastStorm over Fresno, Water all sites now"Rain is forecast for Fresno. Fresno skips every field and says so. Utah, 1,000 km away, still waters. Rain for one area never stops another."
9-123. Frost and windCache Valley at -1 °C"A frost in Cache Valley: sprinkling at freezing builds ice on the crop, so the controller stays off."
12-154. Each state's water rulesCalifornia drought stage, Arizona shortage tier"Utah and Nevada have water rights - a daily limit. California declares drought stages; Arizona's allotment is cut by Colorado River shortage tiers. The controller never plans more than the binding rule allows, and names it."
15-185. Time zonesthe map: local times"Every site waters at 05:00 its own time. Arizona does not use daylight saving: before the switch it waters an hour before California, after it at the same moment. That is a classic scheduling bug, and a test checks it."
18-226. FaultsTest Explorer, a site page"A dead soil probe, a stuck one, a broken pipe, a forecast outage, a power cut mid-cycle. One click each here, one line each in a test."
22-25Boundary and pilotsection 4Closing statement, then the pilot proposal.

2Farm scene walkthrough (8-10 minutes)

Start with every site idle at 600x. The map shows the 8 sites; each card shows local time, soil moisture per field against its refill point (the red line), what each zone did today and why, and the water rule.

StepDoSay
1. OrientPoint at the map, then a card"Green is idle, blue is watering, amber means rain kept it off today, red is an alarm. On each card: soil moisture per field - the red line is where that crop needs water."
2. A normal morningWater all sites now"Every controller decides now instead of waiting for 05:00. Dry fields water, moist ones skip, and each card says why: 'dry (18.0 % < 21 %)', 'soil moist (27.0 % >= 22 %)'."
3. Storm over FresnoSite picker Fresno, rain chance 85 %, amount 15 mm. Then Water this site now"Fresno skips every field: 'rain forecast (85 % chance of 15 mm in 24 h)'. The other seven sites are untouched."
4. Frost in Cache ValleyPicker Cache Valley, air temperature -1 °C, Water this site now"'Freeze risk (-1 °C)': no sprinkling at freezing."
5. California droughtOpen Fresno, set stage 2, clear its rain (0 %), Water now"Stage 2 cuts California's daily allocation by 20 %. If the day's plan is bigger than that, the last zones are shortened or skipped - and the reason names the rule that bound."
6. Watch the soil600x for a minute"Watering fields' moisture bars rise; idle fields dry slowly in the desert air. The field station reports it over MQTT; the controller reads it."

Reset after the demo: Back to normal on each site page you changed and on the Forecast service.

So nothing surprises you:

  • A site that has already watered today will not start its daily cycle again at 05:00; Water now always does.
  • Right after the Studio starts, give it a few seconds before Water all sites now: until the first soil readings arrive, zones skip with "soil sensor offline". That is the correct behaviour, but not the story.
  • The rule order is fixed: rain sensor, rain delay, frost, wind, rain forecast, soil sensor, soil moisture, then the water limits. A frost on a rainy day reads "freeze risk", not "rain forecast".

3Test Explorer walkthrough (5 minutes)

Tabs under Farm: Cache Valley irrigation (UT), Yuma irrigation (AZ), Farm forecast service.

StepDoSay
1. HealthyRun all tests on Cache Valley"Real pytest tests against a live controller over HTTP. All pass."
2. Rain sensorRain sensor wet, run "Rain sensor is dry": FAIL; Back to normal: PASS"The wired rain sensor is hardware; here it is a click. Pass, fail, recover."
3. Arizona waterYuma tab: Tier 2 shortage declared, run "Full Colorado River allotment": FAIL with what is left this year"A shortage on the Colorado River cuts Arizona's allotment by 20 %. The test sees it at once."
4. ForecastForecast tab: Storm forecast for Fresno: FAIL; Service down: FAIL with HTTP 503"Forecast data is an integration: tests cover it being wrong, and being gone."

4The boundary - say it plainly

These twins test irrigation logic and its integrations: the decisions, the protocols, the faults, the time zones and water rules. The soil is a simple root-zone water balance and the forecast is whatever the test sets. We are not claiming agronomic accuracy - crop water use, soil types and real weather are what a pilot with a grower's data adds.

What the twins are, honestly:

TwinModelsDoes not model
Irrigation controllerzones, daily schedule in local time (US daylight saving rules; Arizona without), rain sensor, rain delay, frost and wind rules, rain forecast rule, soil moisture rule, run time from the root-zone deficit, flow meter with high / low flow alarms, operator budget, state water rulesa real vendor's API, pressure regulation, pump control, multi-program schedules
Field stationa soil moisture probe per field (root-zone water balance: evapotranspiration out, rain and irrigation in, drainage above field capacity), weather mast, battery, radio signalsoil types, infiltration, runoff, real evapotranspiration from weather
Forecast service24 h / 48 h rain chance and amount per site, outagesa real forecast provider

The farm layout is illustrative: the places are real, the fields are not. The water rules are simplified versions of each state's kind of rule, with illustrative numbers.

5Proposed pilot

  1. Pick one controller model a grower or vendor uses, and two or three representative sites.
  2. Obtain its API or protocol, the farm's zone layout, a season of sensor and flow data, and the water rules that apply.
  3. Swap the generic controller twin for an adapter to that controller (the tests use device objects, so they do not change) and calibrate the soil model against the recorded data.
  4. Run the same scenarios against the real controller on a bench, then in the field for a season.
  5. Agree what counts as a correct decision and measure: water saved, missed irrigations, alarms caught.

Closing statement

"Today you saw irrigation decisions tested the way software should be: across sites, states, time zones, weather, water rules and faults, automatically and repeatably, before a valve opens. We propose a pilot with one controller and your data, to show the same tests against your real equipment."

6Likely questions

QuestionAnswer
Is this a Rain Bird (or other vendor) controller?No: a generic controller twin with its own clean API. An adapter for a specific vendor is pilot scope; the tests do not change.
Real protocols?HTTP REST to the controllers and the forecast service, MQTT from the field stations - the production transports, as on a real network.
Real weather?No: the forecast service is a twin, so a test can set any forecast, including a storm or an outage. A real provider can sit behind the same device object.
How do you test daylight saving?The simulation starts the day before the switch (14 March 2027). Tests check every site waters at 05:00 local, and Arizona against California before and after.
How fast is it?Simulated time: a farm day passes in seconds in a test, about 2.4 minutes in the Studio at 600x.
Faults in the field?Probe dropout and stuck probes, broken pipes, clogged lines, forecast outages, power loss: all injected on purpose and checked by tests.

7Glossary

TermMeaning
VWCVolumetric water content: soil moisture as a percentage of the soil's volume.
Refill pointThe soil moisture below which a crop needs water; the controller waters below it.
Root zoneThe depth of soil the roots draw water from; deeper roots hold more water per percent of VWC.
Evapotranspiration (ET)Water the field loses to the air and the crop, in mm per day.
Rain delayA pause on watering for a number of days, set by the operator.
Water rightA legal limit on how much water may be diverted (Utah, Nevada).
Drought stageA declared drought level that cuts water allocations (California, simplified).
Shortage tierA Colorado River shortage level that cuts Arizona's allotment.
AMAActive Management Area: an Arizona groundwater management area (Maricopa is in the Pinal AMA).
DSTDaylight saving time; Arizona does not observe it.
m³Cubic metre: 1 mm of water on 1 hectare is 10 m³.