Smart Garden Irrigation V1.0 beta
English version
Automatic and manual control of your garden irrigation — all in one blueprint!
Note:
This blueprint is currently in beta, as the full range of features has not yet been completely tested.
If you encounter any issues or have suggestions for improvement, feel free to reach out!
I’m happy to help with troubleshooting and will do my best to implement your feedback in future versions.
English version
Features
Zone control: Supports lawn, raised bed, vegetables & shrubs — individually configurable.
Flexible start time:
- Fixed time (manual input)
- Night (02:00 AM)
- Sunset/sunrise (with offset)
- Manual start via
input_select
Parallel or sequential watering: Choose whether all zones run at the same time or one after the other.
Rain and soil moisture check: Automatically cancels watering if it’s raining or soil moisture is sufficient.
Select water source: Mains water or rainwater (with minimum level check).
Pump control: Optional with start delay for safe operation.
Water consumption: Optional calculation of estimated water consumption in liters.
Notifications: Get notified if watering is aborted (e.g., rain, low tank level) or after successful completion.
Inputs
Zones: Lawn
, Raised bed
, Vegetables
, Shrubs
Manual control: Input selects + individual duration per zone
Sensors: Soil moisture, rain amount, current rain (
binary_sensor
), water tank levelWater source: Rainwater or mains water
Pump: Optional, with delay
Start time: Flexible options (fixed time, night, sunset/sunrise + offset)
Water usage: Optional consumption calculation
Highlights
Universal — suitable for simple or complex gardens
All-in-one — no separate automation needed per zone
Manual or automatic — depending on your needs
Requirements
- Switches/valves per zone (e.g. ESPHome, Zigbee, WiFi)
- Optional: sensors for rain, soil moisture, water level
- Optional: controllable pump via Home Assistant
Notes
All parameters configurable via UI.
Defaults (e.g. duration, thresholds) can be adjusted anytime.
Notifications sent to
notify.notify
by default — can be customized in the blueprint.
Requirements for the Blueprint
Smart Garden Irrigation with Flexible Start Time
-
Home Assistant Installation
You need a working Home Assistant instance (e.g., on a Raspberry Pi, NAS, or using Home Assistant OS). -
Access to YAML Editor
Settings → Automations & Scenes → Blueprints → Import / Upload -
Input Selects for Manual Control
Example:
input_select:
lawn_control:
name: Lawn Control
options:
- "Stop"
- "Start"
flowerbed_control:
name: Flowerbed Control
options:
- "Stop"
- "Start"
Create more zones like vegetable_garden_control
, etc., using the same structure.
Sensors (Optional but Recommended)
Feature | Required Entity | Type |
---|---|---|
Soil Moisture | sensor.soil_moisture_zone1 |
Sensor (percentage) |
Rain Detection | binary_sensor.rain_detected |
Binary sensor (on/off) |
Water Level Monitoring | sensor.water_level |
Sensor (percentage/L) |
Pump Control | switch.irrigation_pump |
Switch |
Time-Based Control | Automation with time triggers | - |
Manual Controls (Optional)
You can create buttons or a Lovelace dashboard interface for manual zone control.
Automations & Scenes
Make sure to assign the correct entities (switches, sensors, input selects).
Internet Connection (if using external services)
For external weather data (e.g. OpenWeatherMap), you’ll need integration + API.
Guide: Smart Garden Irrigation with Flexible Start Time
Table of Contents
- Import the Blueprint
- Create Input Selects (for Zone Control)
- Set Up Sensors & Devices
- Create Automation Using the Blueprint
- Lovelace Dashboard (Optional)
- Function Test & Troubleshooting
1.
Import the Blueprint
- Open Home Assistant
- Navigate to: Settings → Automations & Scenes → Blueprints
- Click “Import Blueprint”
- Paste the blueprint URL or YAML code
- Click “Import”
The blueprint will now be available when creating a new automation.
2.
Create Input Selects (for Zone Control)
input_select:
lawn_control:
name: Lawn Control
options:
- "Stop"
- "Start"
flowerbed_control:
name: Flowerbed Control
options:
- "Stop"
- "Start"
Create one
input_select
per irrigation zone.
Restart Home Assistant if you added this via
configuration.yaml
.
3.
Set Up Sensors & Devices
Feature | Entity | Type | Example |
---|---|---|---|
Soil Moisture | sensor.soil_moisture_* |
Sensor (%) | sensor.soil_moisture_zone1 |
Rain Detection | binary_sensor.rain_detected |
Binary sensor (on/off) | e.g., from weather integration |
Water Level | sensor.water_level |
Sensor (% or liters) | Sensor in a rainwater tank |
Pump Control | switch.irrigation_pump |
Switch | Smart plug or relay control |
Set up your devices/sensors via integrations or ESPHome.
4.
Create Automation Using the Blueprint
- Go to: Settings → Automations & Scenes → Add Automation
- Select “Use Blueprint”
- Choose: Smart Garden Irrigation with Flexible Start Time
- Fill out the fields:
- Which
input_select
zones to control - Optional: rain, moisture, and water level sensors
- Enable automatic start?
- Set watering times and durations
- Which
- Click Save
5.
Lovelace Dashboard (Optional)
type: entities
title: Garden Irrigation
entities:
- entity: input_select.lawn_control
- entity: input_select.flowerbed_control
- entity: sensor.soil_moisture_zone1
- entity: switch.irrigation_pump
You can also create buttons or use other custom cards.
6.
Function Test & Troubleshooting
Testing
- Set an
input_select
to “Start” → the pump/valve should activate. - Check sensor readings → irrigation pauses if rain/moisture detected.
- Monitor via Logs or Developer Tools.
Common Issues
- Incorrect entity names → check Developer Tools → States
- Missing/unassigned
input_select
- Automation not enabled or configured incorrectly
Done!
Your smart garden irrigation system is now ready. You can expand it anytime (e.g. with weather APIs, notifications, more zones).