How petergridge/irrigation-v5 works
IrrigationProgram is a Home Assistant integration for configuring and running scheduled irrigation programs across zones. The principal workflow is gardener configuration in the UI, integration setup, program scheduling, and zone watering through configured valves; entities expose controls and status back to Home Assistant. Zone behavior includes time- or volume-based watering, ECO cycles, rain and water-source checks, and adjustment inputs. The README also documents a bundled Lovelace card, diagnostics, and automation events. Root-level files duplicate the custom component; this map uses the installable custom_components implementation. Some subsystem links are omitted where excerpts do not show the runtime wiring.
Main entry points: __init__.py Integration setup · program.py Program scheduler · zone.py Zone watering · config_flow.py Program configuration
Components 21
Configuration
- Program configuration
custom_components/irrigationprogram/config_flow.py - Integration setup
custom_components/irrigationprogram/__init__.py
Watering orchestration
- Program scheduler
custom_components/irrigationprogram/program.py - Zone watering
custom_components/irrigationprogram/zone.py - Pump control
custom_components/irrigationprogram/pump.py - Runtime state
custom_components/irrigationprogram/globals.py
Home Assistant entities
- Switch controls
custom_components/irrigationprogram/switch.py - Status sensors
custom_components/irrigationprogram/sensor.py - Number controls
custom_components/irrigationprogram/number.py - Select controls
custom_components/irrigationprogram/select.py - Text controls
custom_components/irrigationprogram/text.py - Time controls
custom_components/irrigationprogram/time.py
User interfaces
- Irrigation card
custom_components/irrigationprogram/www/irrigation-card.js
Integration support
- Device monitor
custom_components/irrigationprogram/monitor.py - Configuration utilities
custom_components/irrigationprogram/utils.py - Diagnostics
custom_components/irrigationprogram/diagnostics.py
Other components
- Gardener
- Home Assistant
- Configured sensors
- Zone valves
- Weather history
Connections 18
- Gardener → Program configuration: configures
readme.md - Program configuration → Integration setup: provides configuration
custom_components/irrigationprogram/config_flow.py - Integration setup → Device monitor: checks devices
custom_components/irrigationprogram/__init__.py - Program scheduler → Zone watering: starts zones
custom_components/irrigationprogram/program.py - Program scheduler → Pump control: uses pump control
custom_components/irrigationprogram/program.py - Program scheduler → Runtime state: updates runtime state
custom_components/irrigationprogram/program.py - Switch controls → Program scheduler: controls
custom_components/irrigationprogram/switch.py - Switch controls → Zone watering: controls
custom_components/irrigationprogram/switch.py - Status sensors → Runtime state: reads status
custom_components/irrigationprogram/sensor.py - Zone watering → Configured sensors: reads inputs
- Zone watering → Zone valves: operates
- Weather history → Configured sensors: may provide inputs
readme.md - Integration setup → Irrigation card: serves card
custom_components/irrigationprogram/__init__.py - Gardener → Irrigation card: views controls
readme.md - Integration setup → Diagnostics: provides diagnostics
readme.md - Home Assistant → Integration setup: hosts integration
readme.md - Integration setup → Home Assistant: emits events
readme.md - Configuration utilities → Program configuration: supports configuration
custom_components/irrigationprogram/config_flow.py