Smart irrigation for Home Assistant that waters on what each area really got: scheduled runs, rain and manual watering all count toward a weekly need set by temperature. Multi-zone, own schedule and valves, shadow mode to test safely.
Note
Shadow mode. Up to 0.3 Quench never turns a switch on or off. It watches the area switches (driven by whatever you use today, Node-RED, Scheduler, automations), counts the water they give, keeps the weekly balance and works out what it would do instead. You can run it next to your current setup and compare before trusting it with the valves.
| Indicators | Statistics | Admin |
|---|---|---|
![]() |
![]() |
![]() |
- HACS → three-dot menu → Custom repositories.
- Add
https://github.com/bonello78/quench, category Integration. - Install Quench and restart Home Assistant.
Copy custom_components/quench into /config/custom_components/ and restart.
- Settings → Devices & services → Add integration → Quench, and give the system a name. That's the only step there.
- Create the dashboard (below) and open its Admin view. Everything else is
configured from there and can be changed at any time:
- System: language (automatic, Italian, English) for the dashboard and the entity names; temperature sensor and reference (yesterday's max, 3 or 7 day mean), daily, weekly and last-24h rain sensors, weather entity, rain threshold, table output (mm per week, minutes per day, multiplier) and the temperature table, edited row by row with a preview of today's value
- Areas: add, rename, delete; mode (shadow or active); schedule (days and start times); switches (one area each, in series or in parallel), unit (mm or minutes), flow rate, runs per week, minimum and maximum run length, optional own table that gives the area's weekly need directly
The table works in steps: the row with the highest threshold that doesn't exceed the temperature wins. Below the first threshold the value is 0.
Every area starts in shadow mode: Quench never touches its switches, it watches them, counts the water and, at the scheduled times, records what it would have given. Switch an area to active when you trust it: at the scheduled times Quench decides and waters, one area at a time.
In active mode the switches are always turned off at the end of a run, after
an error or after quench.stop_all; a switch going unavailable stops the run;
after a restart any switch of an active area found on is turned off.
| Service | What it does |
|---|---|
quench.start_area |
Runs an area now (area device, optional minutes). Dry run in shadow mode |
quench.skip_next |
The area's next scheduled run won't start |
quench.stop_all |
Stops the running run and clears the queue |
quench.pause |
Pauses automatic irrigation for N days, 0 resumes |
Events: quench_run_started, quench_run_finished, quench_skipped,
quench_shadow_run, quench_run_observed.
- The reference temperature comes from the recorder's daily statistics of the temperature sensor (yesterday's max, or the 3 or 7 day mean).
- The table turns it into the weekly need, converted to each area's unit.
- Rain this week and the water already given are subtracted.
- What's left becomes the run, unless something stops it. The checks go in this order: automatic irrigation off, pause, area disabled, rain forecast, need already covered, run shorter than the minimum. The run is capped at the area's maximum duration.
Weekly totals restart on Monday.
| Device | Entities |
|---|---|
| System | Status, Automatic irrigation, Pause (days), Reference temperature, Table value, Rain this week, Rain forecast today |
| Each area | Watered this week, Weekly need, Remaining need, Need covered, Quench run, Decision, Last watering, Last run duration, Quench at last run, Decision at last run, Area enabled, Manual duration, Manual start |
When a real run starts, Quench stores the decision it had at that moment
(Quench at last run), so you can line it up against what actually happened.
It also fires quench_run_observed when the run ends.
One dashboard, three views, built from your areas and updated on its own:
| View | Who | What |
|---|---|---|
| Indicators | everyone | system status and controls, one section per area: need covered, watered, rain, need, last watering, Quench's run and decision, manual start |
| Statistics | everyone | 30-day history of watered vs need, coverage, temperature and rain; the comparison between each actual run and Quench's call |
| Admin | administrators | the whole configuration |
To create it: Settings → Dashboards → Add dashboard → New dashboard from scratch, open it, Edit → three dots → Raw configuration editor, and replace everything with:
strategy:
type: custom:quench- 0.1 — setup, areas, entities, persistence
- 0.2 — shadow mode, water balance, rain, decision, dashboard strategy
- 0.3 — dashboard with Indicators, Statistics and Admin views; setup moved out of the config flow
- 0.4 — schedule, active mode (queue, series/parallel, safety), services, events
- 0.9 — polish: icons, diagnostics, screenshots, docs
- 1.0 — Marketplace catalog listing
Quench runs inside Home Assistant with its permissions, and its dashboard script loads in every page of your HA session, so both are checked on every push and before every release. The Python audit rejects dynamic code, external processes, network clients, file writes and unpinned dependencies: Quench only reads entities you pick, switches the valves you assign and saves its state through HA's own storage. The script audit rejects network calls, browser storage and obfuscated code, allows websocket calls only to Quench's admin API, then runs the script in a sandbox to confirm it defines nothing beyond its dashboard strategy and admin card. Each audit also proves it would catch a tampered copy.
Dependency updates come from Dependabot: GitHub's own actions are merged
automatically once every required check passes, anything else is reviewed by
hand. The main branch refuses force pushes and deletions.
Releases carry no attachments: the Marketplace installs the files of the release tag. A weekly job checks that the latest tag still points at the commit it was released from, that nothing was attached afterwards and that the tagged code still passes both audits.
- Diagnostics: Settings → Devices & services → Quench → three dots → Download diagnostics. Attach the file to issues.
- Debug log: same menu → Enable debug logging, reproduce, then disable.
- Dashboard not updating after an upgrade: hard-reload the browser, or in the app use Settings → Reset frontend cache.


