← Thu, Nov 12 digest

I gave an agent a lakehouse and control of my garden

read article ↗ hn thread ↗

A developer over-engineered a small vegetable garden by connecting IoT sensors, a custom data lakehouse, and an LLM agent to automatically manage irrigation and pest control.

read it A delightful, over-engineered deep dive into connecting IoT sensors, an Apache Iceberg lakehouse, and an LLM agent to fully automate a tiny vegetable garden.

summary

A developer spent an excessive amount of money and effort instrumenting a two-square-meter garden with soil probes, a weather station, a camera, and a custom data lakehouse. They then deployed an LLM agent running on a daily schedule to ingest millions of telemetry readings, analyze visual crop health for pests, cross-reference weather forecasts, and automatically control the irrigation system within strict safety limits. The post details the system architecture, unexpected hardware hurdles, and the pragmatic shift from rigid cron jobs to context-aware agent decisions.

key points

  1. The setup ingests millions of telemetry rows from Ecowitt sensors and camera images directly into Apache Iceberg tables via native device sinks.
  2. An LLM agent runs every morning to review historical soil response, check daily weather forecasts, and evaluate visual crop health for pests.
  3. Physical watering control is achieved via an old Android phone automating the proprietary Bluetooth irrigation app, bounded by strict operational limits.

who should read it

Software engineers and data practitioners interested in practical LLM agent workflows, IoT architectures, and creative personal projects.

discussion positive

consensus

Commenters thoroughly enjoyed the over-engineered nature of the project and its humorous embrace of automation, while debating the trade-offs between custom builds and existing platforms like Home Assistant.

pushback

Some participants noted the writing exhibits hallmarks of AI assistance and viewed the post as a promotional wrapper for the author's lakehouse project.

best comment by krishanjarvis ↗

One practical lesson with agents that control physical things: give them a small set of named actions with hard limits, such as 'water zone 2 for at most 10 minutes', instead of raw device access. Models sometimes misread a sensor value or repeat an action because they forgot they already did it. A log of past actions that the agent reads before every decision, plus a cap on how often each action can run per day, turns most of those mistakes into harmless no-ops. A plant can survive one bad guess but not a stuck valve.

It outlines a vital safety principle for physical agent control: restricting raw device access to named actions with hard limits to prevent catastrophic mistakes.

Generated by an LLM from the article and thread. Check the sources before relying on it.