Keragi Keragi Keragi
Solutions

Reference

On this page

Greenhouse environment and irrigation collaboration

Last updated: 2026-11-21

This is an example scenario and reference architecture, not a customer case. Device access, AI and actuator capability are marked reference; it does not replace greenhouse controllers, irrigation controllers or site safety protection.

The problem

Greenhouse and livestock environment data is scattered across controllers, mobile apps and manual notes:

  • Soil moisture, temperature, humidity, CO2 and light are hard to link to past actions.
  • Irrigation and ventilation rely on experience; handover depends on verbal notes.
  • Alerts are duplicated or arrive too late.
  • Unstable networks or power loss cause data gaps.

The goal is not “another app”. It is to keep environment data, AI suggestions, human confirmation and action records in one traceable thread.

Participants

Participant Role
Grower/livestock staff Confirm suggestions, execute or reject actions
Site lead Decide irrigation/ventilation strategy and escalation
AI Summarize environment data, past actions and weather; suggest next steps
Gateway/bridge Collect sensors, buffer data, forward commands
Actuator Pump, fan, valve, supplemental light; requires human approval and independent protection

Target workflow

  1. Sensors report soil moisture, temperature, humidity, CO2 and light.
  2. The gateway writes an anomaly or scheduled summary into the site conversation.
  3. AI summarizes history, actions and weather, and suggests irrigation/ventilation.
  4. The grower confirms or adjusts.
  5. A low-risk action runs through the gateway/bridge, or a task is created.
  6. The result returns to the same thread for review and handover.

Local control first on unstable networks

The most common misunderstanding in agriculture is letting a cloud message participate in critical control. The right split:

Loop Runs where If the network drops Keragi’s role
Temperature/ventilation protection Local controller Keeps running Receives events and results only
Irrigation schedule/volume Local controller or gateway Follows the local plan Sends suggestions and human acknowledgement
Sensor acquisition Gateway Buffers locally, backfills later Shows backfilled data with its timestamp
Human decisions People Phone or on-site judgement Records the decision after recovery

Boundary: never let “did the message arrive” decide a safety action for a pump, fan or heater. Critical control belongs to local controllers and independent protection; Keragi is the collaboration layer, not the control loop.

Seasonality and operating windows

  • Irrigation window: miss the morning/evening window and you wait for the next one; alarms must be tied to the window, not just “soil is dry”.
  • Weather coupling: rain, cold snaps and heat change the strategy; the AI may cite a forecast but must show the source and update time.
  • Sensor drift: soil moisture and EC probes need calibration, or the AI reasons from wrong data.
  • Season changes: planting, harvest and clearing change thresholds; reconfirm rules at each change.

How it differs from neighbouring scenarios

Agriculture is about unstable networks, seasons, local control and human experience. Manufacturing focuses on downtime and changeover, data centers on power continuity, buildings on tenant repairs. Do not start an agriculture pilot with automatic irrigation; first make “suggestion + human confirmation + record” work.

What Keragi handles

  • Environment events, discussion, AI suggestions, approval and action records in one conversation;
  • separate permissions for site staff, leads and AI service accounts;
  • AI takeover and connectors, bringing AI into the grower context;
  • device access through a gateway/bridge (reference).

What Keragi does not handle

  • It does not replace greenhouse, irrigation or livestock environment controllers.
  • It does not provide device lifecycle, dashboards or a time-series database.
  • It does not guarantee on-site control under unstable network or power loss.
  • It does not promise that a device gateway can read E2EE messages.
  • It does not provide official agricultural hardware or prebuilt protocol adapters.

Unstable networks and site safety

  • Keep critical control logic on the local gateway/controller; do not depend on a cloud message arriving before a safety action.
  • The gateway/bridge should buffer, reconnect and be idempotent to avoid duplicate execution.
  • Actuators need local fail-safe behavior, emergency stop, timeout reset and manual takeover.
  • The integrator manages per-device credentials, rotation and audit.

Data and security boundaries

  • Direct/group text is optional E2EE (off by default); media, channels, AI, connectors and device data have separate boundaries.
  • When E2EE is enabled, the server stores ciphertext; when it is off, messages follow the operator’s storage policy; the operator chooses retention.
  • A device gateway cannot decrypt E2EE messages; use a client participant or local bridge when encrypted messages are required.
  • Do not expose management interfaces to the internet; use a controlled network or TLS between device and gateway.

Deployment checklist

Item Recommendation
Server Linux x86_64, single host, SQLite (HelixDB supported)
Gateway/bridge Trusted on-site host; supports buffering and reconnection
Devices One to three soil/temperature/light sensors for the minimum pilot
Network On-site Wi-Fi/cellular; keep critical control local
Accounts Separate grower, lead and AI service accounts
Approval Define which actions can be automatic and which need human confirmation

Pilot metrics

  • Time from irrigation/ventilation decision to action;
  • false/duplicate alert ratio;
  • approval coverage;
  • data completeness during network loss/reconnection;
  • water/labour changes;
  • mis-operation or rollback events.

Risks and non-fit

  • Do not use for life support, medical, nuclear, aviation, emergency or industrial-safety applications.
  • Direct actuator control must be backed by independent protection.
  • Site protocols, firmware, gateways and credentials are the integrator’s responsibility.
  • Hardware is coming soon; provisioning/SDK follow the official release, and integration effort must be assessed up front.

Next steps

Frequently asked questions

Does this replace a greenhouse control system?

No. It handles alerts, AI suggestions, human confirmation and records; greenhouse control, irrigation controllers and site safety stay with the existing systems.

Can it start a pump or fan automatically?

It can support low-risk auxiliary actions, but they require human approval, authorization, fail-safe behavior and independent protection; do not let AI control critical actuators directly.

What about unstable rural networks?

The gateway/bridge should buffer and reconnect; keep critical control logic local and do not depend on a cloud message arriving before a safety action.

Is device data end-to-end encrypted?

Qualified yes. A device joining as a client participant (a subaccount can approximate one) can use E2EE like a normal client. By default, device data through a gateway uses plaintext/bot channels and is not encrypted; the gateway cannot decrypt E2EE messages.

What is the minimum pilot?

A server, an on-site gateway/bridge, one to three soil/temperature sensors, a grower conversation and a named irrigation/ventilation approver.