🔧 Tutorials 🏠 Smart Home

Migrating From Rachio to Local ESP32 Control: Home Assistant Soil-Moisture Automations

Why Move From Rachio to Local ESP32 Control?

If you already run Home Assistant, a cloud-tethered irrigation controller quickly becomes the odd device out on your wall. While a commercial smart timer like Rachio gives you a polished mobile app out of the box, its schedules, remote control, and Home Assistant integration depend on vendor servers, mandatory accounts, and cloud API connectivity. If you also want real backyard soil-moisture probes—Zigbee, ESPHome, or local RF sensors—to drive watering skips or zone-level runtime decisions, you quickly hit a wall when weather and saturation logic lives in someone else's cloud.

SprinklerID by IntelliDwell flips that model around: "SprinklerID identifies your irrigation needs—without needing to identify YOU." It is a drop-in 10-zone 24VAC ESP32 irrigation controller that keeps every schedule, countdown timer (1–240 minutes), sequential multi-zone queue, and configurable Master Valve interlock in non-volatile flash memory on your own LAN (http://sprinklers.local), with zero mandatory cloud account.

Moving your irrigation off a cloud API and onto local ESP32 hardware gives you two immediate advantages for soil-moisture automation:

  • Deterministic local execution: Home Assistant can adjust zone schedules, push soil-moisture readings, or trigger timed runs over your local Wi-Fi—while the ESP32 itself still owns countdown shutoffs, Master Valve sequencing, and baseline schedules if your server reboots or your ISP drops.
  • Open, inspectable software: Our GPLv3 firmware (with a non-commercial hardware restriction) is public on GitHub, and our native HACS integration talks directly to the controller's local HTTP REST API without cloud relays.

Step 1: Pre-Migration Wiring Check (Rachio to SprinklerID)

Before taking your Rachio controller off the wall, spend two minutes checking your terminal count and power supply so the physical swap is clean.

1. Verify Zone Count and 24VAC Power

Standard residential North American sprinkler manifolds—including systems wired to Rachio—use 24VAC low-voltage solenoid valves tied back to a shared Common (C / COM) wire. Because your underground wiring and manifold stay untouched, swapping controllers is strictly a low-voltage wall transfer:

  • Channel capacity: SprinklerID supports 10 independent 24VAC zones (up to 1.5A per terminal, short-circuit and surge protected), or 9 irrigation zones plus 1 configurable Master Valve / Pump Start Relay. If you are migrating from a Rachio 8-zone unit—or a 12- or 16-zone cabinet that only uses up to 10 terminals—a single SprinklerID drops right in.
  • Reusing your 24VAC transformer: Most indoor Rachio installations use an external plug-in 24VAC wall adapter. If your existing transformer exposes standard 24VAC wire leads, you can reuse it with the $84.99 controller-only option, or pick up the $94.99 Complete Kit with a dedicated 24VAC power supply at intellidwell.net/sprinklercontroller.
  • V2 safety enclosure: SprinklerID's V2 wall enclosure (145mm x 95mm x 38mm) uses a magnetic front cover and keeps all 120VAC wiring outside at the wall plug—only low-voltage 24VAC enters the enclosure. Mount it indoors in a garage, utility room, or shed protected from freezing temperatures and direct water spray.

2. Terminal Mapping: Rachio to SprinklerID

Rachio Terminal SprinklerID Terminal Migration Notes
C (Common) COM Shared common return (typically white). If multiple field cables meet at the box, tie commons together onto COM.
1 – 10 1 – 10 One wire per zone solenoid valve. Strip 1/4" of clean bare copper before clamping.
M (Master Valve / Pump Start) Any spare terminal (1 – 10) Assign that channel in Settings -> Master Valve Relay so firmware opens it 1 second early. Switch only the 24VAC coil of an external Pump Start Relay—never mains AC.
24VAC Power Input (24VAC adapter leads) 24V AC (2 terminals) Low-voltage AC power from your external 24VAC transformer. Polarity does not matter for AC.
S1, S2, & sensor power terminals Leave disconnected Do not connect old wired rain or flow sensor loops to zone or 24V AC terminals. Home Assistant soil sensors and NWS/Ambient Weather replace legacy wired sensor loops.

3. Swap the Box and Reserve a Local IP

  1. Unplug the 24VAC adapter from the wall outlet, photograph your existing Rachio terminal strip, and label every wire with tape by terminal number (not wire color, which can change at underground splices).
  2. Mount the V2 base using the two vertical midline mounting holes (3/16" drywall anchors included), route the 24VAC leads and zone bundle through the bottom wiring channel, and tighten 24V AC, COM, and Zones 1–10 securely.
  3. Snap on the magnetic cover and plug in the 24VAC supply. Connect a phone or laptop to the temporary intelidwellSC Wi-Fi access point (password Sprinkler12345), browse to http://192.168.4.1, and select your 2.4GHz Wi-Fi network (ESP32 radios do not connect to 5GHz-only SSIDs).
  4. Set a DHCP IP reservation for SprinklerID in your router right away. Home Assistant running in Docker or segmented VLANs often cannot resolve mDNS hostnames like http://sprinklers.local, whereas a reserved LAN IP stays reachable every time.
  5. Open http://<CONTROLLER_IP> (or http://sprinklers.local), go to Settings, name your zones, set your UTC offset/DST option, and designate your Master Valve Relay if your manifold has one. Check the SprinklerID Documentation for full wiring diagrams, OTA update steps, and local REST endpoints.

Step 2: Connect SprinklerID Locally to Home Assistant

SprinklerID supports two local Home Assistant integration paths—no cloud credentials required.

Our official custom integration (IntelliDwell Sprinkler Controller, repository https://github.com/TannerNelson16/ha-intellidwell) polls http://<CONTROLLER_IP>/api/status every 10 seconds over your LAN and creates:

  • switch.intellidwell_sprinkler_controller_zone_1 through zone_10 (manual valve switches)
  • sensor.intellidwell_sprinkler_controller_active_zone (active zone name or Idle)
  • sensor.intellidwell_sprinkler_controller_watering_time_remaining (live countdown timestamp)
  • sensor.intellidwell_sprinkler_controller_weather_modifier (exposes active scaling/skips plus pushed soil_moisture_pct)
  • number.intellidwell_sprinkler_controller_rain_delay (0–5 day rain delay persisted on the ESP32)

It also registers two Lovelace dashboard cards automatically—custom:intellidwell-scheduler-card for editing on-device flash schedules and custom:intellidwell-weather-card for local weather and soil-moisture rules—plus services including intellidwell.start_timer, intellidwell.cancel_timer, intellidwell.toggle_zone_schedule, intellidwell.push_weather, and intellidwell.apply_weather_modifier.

Option B: Zero-Config MQTT Auto-Discovery

If your smart home already standardizes on Mosquitto or Node-RED, enable MQTT in SprinklerID's Settings tab and enter your broker IP and credentials. The controller publishes retained discovery payloads (homeassistant/switch/SC0..SC9/config for valves, homeassistant/switch/SS0..SS9/config for per-zone schedule toggles, and homeassistant/number/rain_delay/config) using 0-indexed zone topics (cmnd/zone/0/power for Zone 1, cmnd/zone/0/schedule, and cmnd/rain_delay/set).

Important Timer Safety Rule: Toggling a switch.* entity (or sending ON to cmnd/zone/<n>/power) opens a relay indefinitely without a countdown. Whenever an automation starts irrigation directly, call intellidwell.start_timer (or GET http://<CONTROLLER_IP>/relay-timer/<pin>/<minutes>) so the ESP32 enforces the shutoff countdown locally—even if Home Assistant goes down mid-cycle.

Step 3: Placing and Calibrating Soil-Moisture Sensors

Before writing automations, make sure your soil sensor gives stable readings that reflect root-zone moisture rather than surface puddles:

  • Choose local-first hardware: Common Home Assistant options include Ecowitt WH51 soil probes bridged locally through an Ecowitt LAN gateway, Zigbee capacitive soil sensors via Zigbee2MQTT or ZHA, or DIY ESPHome capacitive probes wired inside sealed enclosures.
  • Place probes at root depth, out of direct nozzle splash: Bury the sensing blade in the active root zone of your turf or drip-irrigated bed, and keep it away from sprinkler head spray overlap or roof downspouts where standing water skews readings.
  • Baseline your own soil rather than guessing percentages: Clay, loam, and sandy soils read completely differently on the same capacitive sensor. Run one normal soaking cycle, wait for excess surface water to drain through the profile, and record that settled reading as your drained field capacity (your upper skip threshold). Watch how low the reading drops right before turf or plants need water, and set your dry refill threshold just above that point.

Step 4: Four Home Assistant Soil-Moisture Automations

Depending on how many sensors you have—one representative lawn probe or per-zone bed probes—choose the pattern below that matches your yard.

1. Zero-YAML Soil-Moisture Veto in the HACS Smart Weather Card

If you install the ha-intellidwell HACS integration, you do not need custom YAML just to keep hot weather rules from overwatering damp soil. Open Settings -> Devices & Services -> IntelliDwell -> Configure (or add custom:intellidwell-weather-card to your Lovelace dashboard) and bind your sensor.* soil moisture entity alongside your local temperature, rain, and wind entities.

Set Soil Moisture Max (%) (soil_moisture_max_pct, default 45%). The coordinator forwards soil_moisture_pct locally to POST /api/weather and automatically vetoes Heat Wave runtime boosts and Afternoon Cooling Mist runs whenever your soil is already at or above that saturation ceiling. It also works alongside Freeze Skip and Wind Drift Guard (which can exempt drip zones by name).

2. Per-Zone Schedule Gating With Hysteresis (intellidwell.toggle_zone_schedule)

If you keep baseline schedules stored locally in SprinklerID's flash memory (schedules.json) and want one moisture probe to pause only its matching zone—leaving sunny turf zones running on schedule—use intellidwell.toggle_zone_schedule with hysteresis (separate upper and lower thresholds plus a for: duration) so sensor jitter never toggles schedules back and forth. Adjust the example percentages below (42 and 28) to match your calibrated probe:

alias: "Irrigation - Zone 3 Garden Bed Soil Moisture Gate"
mode: single
triggers:
  - trigger: numeric_state
    entity_id: sensor.garden_bed_soil_moisture
    above: 42
    for:
      minutes: 15
    id: skip_wet
  - trigger: numeric_state
    entity_id: sensor.garden_bed_soil_moisture
    below: 28
    for:
      minutes: 15
    id: allow_dry
actions:
  - choose:
      - conditions:
          - condition: trigger
            id: skip_wet
        sequence:
          - action: intellidwell.toggle_zone_schedule
            data:
              zone: 3
              enabled: false
      - conditions:
          - condition: trigger
            id: allow_dry
        sequence:
          - action: intellidwell.toggle_zone_schedule
            data:
              zone: 3
              enabled: true

In MQTT mode, you can achieve the exact same per-zone schedule hold by publishing "false" or "true" to cmnd/zone/2/schedule (remembering Zone 3 is index 2). Your saved start/stop schedule stays intact on the ESP32 and simply resumes once the soil dries back below your lower threshold.

3. Whole-Yard Saturation Rain Delay (number.set_value)

If a single probe represents your main turf area—or your yard stayed damp after overcast weather even though little rain hit your gauge—you can apply a 1-day local rain delay whenever morning soil moisture is still high before schedules fire:

alias: "Irrigation - Morning Turf Soil Saturation Check"
mode: single
triggers:
  - trigger: time
    at: "04:30:00"
conditions:
  - condition: numeric_state
    entity_id: sensor.front_lawn_soil_moisture
    above: 45
  - condition: numeric_state
    entity_id: number.intellidwell_sprinkler_controller_rain_delay
    below: 1
actions:
  - action: number.set_value
    target:
      entity_id: number.intellidwell_sprinkler_controller_rain_delay
    data:
      value: 1

Because SprinklerID persists rain_delay.json in local ESP32 flash and decrements it once per day, every scheduled zone is skipped cleanly for that day without modifying your saved schedules.

4. Demand-Based Timed Watering (intellidwell.start_timer)

For raised vegetable beds, new trees, or greenhouse zones where you only want irrigation to run when soil drops below a target moisture level, disable fixed recurring schedules for that zone and trigger an on-device timer at dawn instead:

alias: "Irrigation - Zone 4 Raised Bed Water When Dry"
mode: single
triggers:
  - trigger: time
    at: "05:45:00"
conditions:
  - condition: numeric_state
    entity_id: sensor.raised_bed_soil_moisture
    below: 26
  - condition: state
    entity_id: number.intellidwell_sprinkler_controller_rain_delay
    state: "0"
  - condition: state
    entity_id: sensor.intellidwell_sprinkler_controller_active_zone
    state: "Idle"
actions:
  - action: intellidwell.start_timer
    data:
      zone: 4
      duration_mins: 15

Calling intellidwell.start_timer issues a local /relay-timer/3/15 command to the ESP32. The controller opens your Master Valve 1 second early (if configured), runs Zone 4 for 15 minutes on its internal timer, and closes everything deterministically when time expires.

Step 5: Reliability Safeguards and Common Gotchas

  • Guard against dead sensor batteries: Battery-powered Zigbee and RF soil sensors eventually go unavailable or freeze on a stale reading. Keep conservative baseline schedules in SprinklerID flash for high-stakes turf zones (gating them with Pattern 2 rather than deleting them), and add a Home Assistant notification if any soil moisture entity remains unavailable or unknown for 24 hours.
  • Cloud Portal + Home Assistant ha_rain_delay arbitration: SprinklerID includes an optional, zero-subscription Cloud Portal (https://sprinklers.intellidwell.net) with an interactive 2D vector CAD Yard Map (with rotor/dripper animations and an optional user-key Gemini Vision satellite screenshot scanner), multi-property management, and contractor sharing—plus an Android App (.APK) (iOS coming soon) that also works in Local-Only Mode. If you pair the Cloud Portal and set its weather source to NWS or Ambient Weather, the controller sets ha_rain_delay = 0 and ignores POST /api/weather pushes ({"status": "ignored", "reason": "cloud_active"}) so cloud and local automations never overwrite each other. Either keep Cloud disabled for 100% local control or switch the Cloud Portal weather source to Controller Pushed (Home Assistant) if you want Home Assistant to drive /api/weather.
  • Avoid stacking custom apply_weather_modifier pushes with automatic weather push: If you enable HACS weather pushing in ha-intellidwell, the coordinator recalculates and pushes its built-in weather modifier whenever tracked weather or soil entities change. Stick to custom:intellidwell-weather-card, intellidwell.toggle_zone_schedule, number.set_value on Rain Delay, or intellidwell.start_timer so your automations never collide with coordinator refreshes.

Wrapping Up Your Rachio Migration

Migrating from Rachio to local ESP32 control replaces cloud lock-in and generic weather guesses with hardware you fully control and automations tuned to the actual moisture in your soil.

  • Hardware & Pricing: Pick up SprinklerID by IntelliDwell at intellidwell.net/sprinklercontroller for $84.99 (controller only, reusing your existing 24VAC transformer) or $94.99 (Complete Kit with 24VAC power supply).
  • Documentation & OTA Portal: Full wiring guides, HACS/MQTT setup instructions, and REST API references are available at docs.intellidwell.net/sprinkler/.
  • Lifetime Guarantee: Every unit is covered by our Lifetime Return Policy—a full refund or replacement anytime unless intentional damage is suspected (buyer pays return shipping).