ESPHome Sprinkler Controller

Two ESP32 controllers run four watering zones each. See which valve is open, run a timed zone, and change watering settings from the controller’s local page or a matching Home Assistant card.

Try a watering cycle

The demo uses sample zones and short timers. Start a cycle, watch the active valve on the diagram, or open Watering settings to rename a zone and set its run time.

Install with ESPHome

Version 1.1.0 includes the four-zone controller and the branded web interface. ESPHome embeds the CSS, JavaScript, and logo in the firmware.

Pull from GitHub

Add this block to your device YAML. Keep the device name, board, Wi-Fi, API, and OTA settings in your local profile. Requires ESPHome 2026.11.1 or later.

packages:
  tryon_sprinkler:
    url: https://github.com/Tryon-Electronics/tryon-sprinkler-controller
    ref: v1.1.0
    files:
      - packages/sprinkler.yaml

Package and example profile

Use the sample profile for a new ESP32 controller. The reference uses GPIO23, GPIO22, GPIO18, and GPIO19 for four active-high relay outputs. Check those against your board before flashing.

Use it in Home Assistant

Add one card for each controller. The same card supports the four timed valves and their settings on either device.

Install the card

Save both files to /config/www/tryon-irrigation/. Add /local/tryon-irrigation/irrigation.js?v=1 as a JavaScript module under Dashboard Resources.

Map your zones

Paste the example into a Manual card and replace the sample entity IDs with the IDs from your ESPHome device. Map each Run control to its timed sprinkler valve switch. The optional text entities let you rename zones without flashing the controller again.

Use Watering settings to change run times or include zones in the automatic cycle. Changes are made on the controller and are visible in both interfaces.