Xpersona
G

Garden Irrigation

CLAWHUB · Unverified

Smart garden irrigation — reads soil sensors (avg of last 50 readings), checks weather, and decides when and how long to water each zone. Use when the user a... Skill: Garden Irrigation Owner: bowlderstudio Summary: Smart garden irrigation — reads soil sensors (avg of last 50 readings), checks weather, and decides when and how long to water each zone. Use when the user a... Tags: latest:1.0.6 Version history: v1.0.6 | 2026-05-25T14:59:25.673Z | user - Changes soil sensor averaging to use the last 50 readings (looking back up to 7 days), instead of a 24h average. - Updates de

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s178axn72cqsznyhvvfqr18ah984qbgm:garden-irrigation
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-bowlderstudio-garden-irrigation/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

75,638 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: garden-irrigation
description: "Smart garden irrigation — reads soil sensors (avg of last 50 readings), checks weather, and decides when and how long to water each zone. Use when the user asks: 'should I water today?', 'run irrigation report', 'water the garden', 'irrigation status'. Requires TUYA_ACCESS_ID, TUYA_ACCESS_SECRET."
license: MIT
metadata: {"openclaw":{"emoji":"🌱","primaryEnv":"TUYA_ACCESS_ID","requires":{"env":["TUYA_ACCESS_ID","TUYA_ACCESS_SECRET","TUYA_API_ENDPOINT"],"bins":["python3"]}}}
---

# garden-irrigation

Automated irrigation skill for greenhouse and outdoor garden zones. Reads Tuya soil sensors (avg of last 50 readings, looking back up to 7 days), fetches rolling 7-day weather history + 3-day forecast from Open-Meteo, and makes deficit-based watering decisions. Generates a bilingual (EN/ZH) Markdown report on every run.

## Tools

### `irrigation_report` — report only, no valve actuation

Read all sensors, fetch weather, compute decision for every zone, and generate a report. **Does not open any valves.**

```bash
python scripts/run_with_notifications.py
```

Use when the user asks: *"should I water today?"*, *"garden status"*, *"irrigation report"*, *"今天需要浇水吗?"*

### `run_irrigation` — full automation

Read sensors, fetch weather, decide, and **open valves automatically** if soil moisture is below the zone threshold. Respects `automation` config (enabled, max minutes per session).

```bash
python scripts/run_once.py
```

Use when the user asks: *"water the garden"*, *"run irrigation"*, *"start watering"*

### `run_irrigation_with_confirmation` — confirm before watering

Same as `run_irrigation` but prompts `y/n` on stdin before opening each valve. For each zone that needs water it prints the zone name, suggested duration, and reason, then waits for interactive input. Zones where the user answers `n` are skipped and logged as cancelled.

```bash
python scripts/run_with_confirmation.py
```

None of the three scripts accept CLI arguments — all configuration is read from `config/system.json` and `config/zones.json`.

## Decision logic

For each zone:

```
avg_moisture = mean(last 50 humidity readings per sensor, looking back up to 7 days)
                └─ falls back to current reading if Tuya logs API unavailable

recent_rain_mm  = sum of precipitation_sum over the last 7 days (Open-Meteo history)
forecast_rain_mm = precipitation_sum for the next 1 day (Open-Meteo forecast)

if avg_moisture < target_moisture_min (default 30%):
    deficit  = target_moisture_min - avg_moisture
    minutes  = default_minutes + round(deficit / 5)   ← +1 min per 5% deficit
    if zone is rain_sensitive AND (recent_rain_mm ≥ 8 OR forecast_rain_mm ≥ 5):
        minutes -= 4
    if any of the last 3 irrigation log entries exist for this zone:
        minutes -= 1                                  ← recently watered penalty
    minutes = clamp(0, minutes, max_minutes)
    → water if minutes > 0
else:
    → skip  (reason: "within target r

README.md

# garden-irrigation

Automated garden irrigation skill — reads Tuya soil sensors (24h average), checks rolling weather history + forecast, and decides when and how long to water each zone. Generates a bilingual Markdown report on every run.

## Dependencies

Requires the **[tuya-cloud](https://clawhub.ai/minshi-veyt/tuya-cloud)** skill to communicate with Tuya IoT devices. Install and configure it before using this skill.

## What it does

- reads all zone soil sensors via `tuya-cloud` (uses 24h average humidity, falls back to current)
- fetches rolling 7-day rain history + 3-day forecast from Open-Meteo (no API key needed)
- computes a deficit-based watering decision per zone
- opens valves automatically (or with confirmation, or report-only — see scripts below)
- writes sensor and decision history to `data/` as JSONL
- generates a Markdown daily report (EN or ZH based on query language)
- sends report via Telegram if configured

## Run

```bash
# Decision + report only — no valve actuation
python3 scripts/run_with_notifications.py

# Full automation — opens valve if moisture is below threshold
python3 scripts/run_once.py

# Ask y/n before opening valve
python3 scripts/run_with_confirmation.py
```

## Configuration

### `config/zones.json` — zones, sensors, valves

Each zone needs:
- `soil_sensor_ids` — list of Tuya device IDs for soil moisture sensors
- `valve.device_id` — Tuya device ID for the water valve
- `valve.switch_code` / `valve.countdown_code` — DP codes (e.g. `switch_1`, `countdown_1`)
- `target_moisture_min` / `target_moisture_max` — moisture target range in %
- `default_minutes` / `max_minutes` — base and max watering duration
- `rain_sensitive` — if `true`, reduces watering when recent or forecast rain is significant

For **dual-channel valves** (e.g. SGW02), each channel is independent:
- Channel 1: `switch_1` / `countdown_1`
- Channel 2: `switch_2` / `countdown_2`

### `config/system.json` — system-wide settings

| Field | Description |
|---|---|
| `location.name` / `latitude` / `longitude` | Location for weather lookup |
| `timezone` | IANA timezone, e.g. `Europe/Oslo` |
| `language` | `"auto"` (follows query language), `"en"`, or `"zh"` |
| `automation.enabled` | Master switch for valve actuation |
| `automation.require_confirmation` | If `true`, valve won't open without user approval |
| `automation.max_minutes_per_session` | Hard cap on valve-open time per run |
| `reporting.bot_target` | Telegram destination, e.g. `telegram:1234567890` |

### Environment variables (`.env` at project root)

```bash
TUYA_ACCESS_ID=your_access_id
TUYA_ACCESS_SECRET=your_access_secret
TUYA_API_ENDPOINT=https://openapi.tuyaeu.com   # EU; adjust for your region
```

## Decision logic

```
avg_moisture = mean(24h humidity readings)   # falls back to current if unavailable

if avg_moisture < target_moisture_min:
    minutes = default_minutes + round(deficit / 5)
    if rain_sensitive AND (recent_rain ≥ 8mm OR forecast_rain ≥ 5mm): minutes -= 4
    

_meta.json

{
  "ownerId": "kn71hwy16e2xdeczvhckk9bkbn82dxq0",
  "slug": "garden-irrigation",
  "version": "1.0.6",
  "publishedAt": 1779721165673
}

skill-card.md

## Description:

Smart garden irrigation reads soil sensors, checks weather, and decides when and how long to water each configured zone.

This skill is ready for commercial/non-commercial use.

## Publisher:

[bowlderstudio](https://clawhub.ai/user/bowlderstudio)

### License/Terms of Use:

MIT-0

## Use Case:

External users, developers, and garden operators use this skill to generate irrigation reports, review soil and weather conditions, and optionally run Tuya-connected watering valves for greenhouse or outdoor garden zones.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can control real irrigation hardware automatically.

Mitigation: Use report-only mode or confirmation mode until valve IDs, countdown behavior, and zone limits are verified on the actual hardware.

Risk: Configured daily and minimum-interval safety limits may not be enforced consistently in all actuation paths.

Mitigation: Do not rely on those limits as the only protection; keep automation disabled or externally supervised until enforcement is reviewed.

Risk: Notifications can send irrigation reports to an external bot destination when enabled.

Mitigation: Disable report sending unless needed and verify bot account and target settings before use.

## Reference(s):

- [Garden Irrigation ClawHub Skill](https://clawhub.ai/bowlderstudio/skills/garden-irrigation)
- [tuya-cloud dependency](https://clawhub.ai/minshi-veyt/tuya-cloud)
- [Tuya API endpoint used by configuration](https://openapi.tuyaeu.com)
- [Open-Meteo Forecast API](https://api.open-meteo.com/v1/forecast)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance]

**Output Format:** [Markdown irrigation report with plain-text command output and JSONL history files]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May open configured Tuya irrigation valves when automation is enabled; requires Tuya credentials, device IDs, zone configuration, and network access.]

## Skill Version(s):

1.0.6 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

config/system.json

{
  "timezone": "Europe/Oslo",
  "language": "auto",
  "schedule": {"daily_run": "07:00"},
  "location": {"name": "Asker, Norway", "latitude": 59.833, "longitude": 10.433},
  "reporting": {
    "enabled": true,
    "channel": "telegram",
    "send_report_to_bot": true,
    "bot_account_id": "telegram bot id",
    "bot_target": "telegram:telegram user id",
    "send_on_irrigation": true,
    "send_on_no_irrigation": true
  },
  "learning": {"enabled": true, "min_samples_per_zone": 20},
  "safety": {"max_daily_minutes_per_zone": 30, "skip_if_sensor_missing": true},
  "automation": {
    "enabled": true,
    "mode": "auto",
    "require_confirmation": false,
    "max_minutes_per_session": 20,
    "min_hours_between_irrigation": 6
  },
  "storage": {"base_dir": "../data"}
}

Sponsored

Ads related to Garden Irrigation and adjacent AI workflows.