📡 IoT 🏠 Smart Home

Integrating SprinklerID With Home Assistant: HACS Integration and MQTT Auto-Discovery Guide

Why SprinklerID and Home Assistant Work Well Together

We built SprinklerID to work locally first. Your schedules are stored in the ESP32's flash. Countdown timers, sequential multi-zone runs, and the Master Valve interlock all run on the controller itself. The built-in web UI at http://sprinklers.local doesn't need a cloud account. Because of that, Home Assistant connects as one more local client on your network, and your controller doesn't depend on it. If Home Assistant is down for an update, your yard still gets watered on schedule.

You can connect SprinklerID to Home Assistant in two supported ways:

  1. The HACS custom integration: local HTTP polling, with no MQTT broker needed.
  2. MQTT Auto-Discovery: messages go through your own broker, and entities set themselves up.

Both work alongside the local web UI, the SprinklerID Android app, and the optional cloud portal. The full reference is in the SprinklerID documentation. This post walks through both options in practice, explains how each one works, and covers the issues people run into most.

Which Option Should You Use?

HACS Integration MQTT Auto-Discovery
MQTT broker required No Yes (e.g., the Mosquitto add-on)
How it talks Home Assistant polls /api/status on the controller over your LAN Messages through your broker
Setup Install via HACS, point it at the controller's IP or sprinklers.local Turn on MQTT in the controller's Settings tab and enter the broker details
Good fit for Most homes, and anyone running more than one controller Setups that already use MQTT, Node-RED, or other MQTT tools

If you don't run a broker yet, start with HACS. If MQTT is already the backbone of your smart home, Auto-Discovery fits right in.

Before You Start

  • Get the controller on Wi-Fi. On first boot, SprinklerID opens a temporary setup access point where you enter your Wi-Fi network details. After that, it's available at http://sprinklers.local or at its local IP.
  • Reserve its IP address in your router (DHCP reservation). mDNS (.local) names often don't resolve inside Docker or some Home Assistant setups. A fixed IP avoids the problem.
  • Update the firmware. Open the Settings tab, scroll to the Firmware Update (OTA) card, choose the Stable (v2.0.x) or Beta (v2.1.x) channel, and install. The update steps are in the OTA documentation.
  • Prepare Home Assistant. You'll need HACS installed for Option 1, or the MQTT integration plus a broker for Option 2.

Option 1: The HACS Integration (No Broker Needed)

The HACS integration talks to the controller directly over your LAN. It polls the controller's local /api/status endpoint and sends commands to the controller's local HTTP API. No cloud and no broker are involved.

Setup

  1. In HACS, find the IntelliDwell Sprinkler Controller integration and download it. The docs list the current install details.
  2. Restart Home Assistant.
  3. Add the integration and point it at your controller's local IP address (or sprinklers.local if your setup resolves mDNS names).
  4. Home Assistant creates entities for all 10 zones, timers, and controller status.

Zone names you set in the controller's Settings tab (for example, "Fruit Tree Area" or "Flower Bed Drippers") sync to the local UI, the cloud portal, and Home Assistant. You only have to name each zone once.

One thing to know about polling

Polling means Home Assistant asks the controller for its state at regular intervals. If someone starts a zone from the local web UI or the mobile app, Home Assistant shows the change at the next poll, not immediately. Commands you send from Home Assistant go to the controller right away.

Option 2: MQTT Auto-Discovery

If you already run a broker, the controller can publish Home Assistant discovery messages. Your entities then appear without any YAML.

Step 1: Prepare the broker

The Mosquitto broker add-on works well. Create a dedicated Home Assistant user for the controller so it has its own login.

Step 2: Turn on MQTT on the controller

MQTT is off by default. Open the controller's Settings tab, either locally at http://sprinklers.local or from the cloud portal. Turn on MQTT and enter your broker's IP address, username, and password.

Step 3: Let discovery do the rest

When the controller connects, it publishes retained discovery messages and its current state. Home Assistant will show:

  • A Sprinkler Controller device with Zone 1 through Zone 10 switches, a Rain Delay number entity (0–5 days), and a Restart button.
  • A Sprinkler Scheduler device with Zone 1 Scheduler through Zone 10 Scheduler switches. These turn each zone's saved schedule on or off.

MQTT topic reference

These are the topics the current firmware uses. They help when you write Node-RED flows or debug with an MQTT client.

Entity Discovery topic Command topic (payload) State topic
Zone valve switches homeassistant/switch/SC0/config … SC9 cmnd/zone/<n>/power (ON / OFF) stat/zone/<n>/state
Zone schedule on/off homeassistant/switch/SS0/config … SS9 cmnd/zone/<n>/schedule (true / false) stat/zone/<n>/schedule
Rain Delay (0–5 days) homeassistant/number/rain_delay/config cmnd/rain_delay/set (integer) stat/rain_delay/state
Restart homeassistant/button/intellidwell_restart/config cmnd/restart (RESTART) n/a

Availability is published to home/sprinklers/status as a retained Online / Offline message.

Zone numbers in topics start at 0. Zone 1 is 0, and Zone 10 is 9. For example, cmnd/zone/0/power controls the zone Home Assistant shows as "Zone 1."

Check that it's working from the command line

Before you open Home Assistant, you can confirm the controller is talking to your broker:

# Watch availability and zone state changes
mosquitto_sub -h <BROKER_IP> -u <USER> -P <PASS> -v -t 'home/sprinklers/status' -t 'stat/zone/#'

# Briefly turn Zone 1 on, then off again
mosquitto_pub -h <BROKER_IP> -u <USER> -P <PASS> -t 'cmnd/zone/0/power' -m 'ON'
mosquitto_pub -h <BROKER_IP> -u <USER> -P <PASS> -t 'cmnd/zone/0/power' -m 'OFF'

Things to know before relying on MQTT mode

  • An MQTT zone switch stays open until something turns it off. Turning on a zone over MQTT opens that valve directly. It doesn't start a timed run. Add a safety automation (example below), or use the controller's own countdown timers and Sequential Runs, which close the valve automatically.
  • Discovered zones get generic names ("Zone 1", "Zone 2", …). Rename them in Home Assistant's entity settings.
  • Use HACS if you have more than one controller. The MQTT topics don't include a device name, so two controllers on the same broker would use the same topics.

Feeding Home Assistant Weather Into Rain Delays

SprinklerID can delay watering using NWS forecasts, NOAA ACIS rain gauges, or Ambient Weather stations. If you already have a rain gauge, moisture sensor, or weather entity in Home Assistant, you can send that data to the controller instead.

The controller accepts weather data at POST /api/weather:

{
  "rain_today_in": 0.32,
  "source": "Home Assistant Weather",
  "delay_days": 2,
  "temp": 62.4
}

Which weather source wins: the ha_rain_delay setting

  • Cloud services off (cloud_enabled = 0): The controller uses rain delays sent from Home Assistant (ha_rain_delay = 1 by default).
  • Cloud services on, with Ambient Weather or NWS as the property's weather source: The cloud sets ha_rain_delay = 0. Home Assistant updates still record temperature and rainfall, but they don't overwrite the rain delay chosen by the cloud weather source.
  • Cloud services on, with Controller Pushed (Home Assistant) as the weather source: The cloud sets ha_rain_delay = 1, and Home Assistant controls the delay.

The controller saves this setting, so it survives reboots.

Example: rest_command plus an automation

# configuration.yaml
rest_command:
  sprinklerid_weather:
    url: "http://192.168.1.50/api/weather"   # use your controller's reserved IP
    method: POST
    content_type: "application/json"
    payload: >
      {"rain_today_in": {{ rain }}, "source": "Home Assistant Weather",
       "delay_days": {{ days }}, "temp": {{ temp }}}
# automations.yaml
- alias: "SprinklerID - push local rain data"
  triggers:
    - trigger: time_pattern
      hours: "/1"
  actions:
    - action: rest_command.sprinklerid_weather
      data:
        rain: "{{ states('sensor.rain_today') | float(0) }}"
        temp: "{{ states('sensor.outdoor_temperature') | float(0) }}"
        days: "{{ 2 if states('sensor.rain_today') | float(0) >= 0.25 else 0 }}"

Replace the sensor names with your own entities. The 0.25-inch threshold and 2-day delay are only examples. Pick values that suit your soil and plants.

If you use MQTT mode, you can skip the REST call and set the Rain Delay number entity with the number.set_value action.

Two Useful Automations

Safety shut-off for zones turned on over MQTT

- alias: "SprinklerID - Zone 1 safety shut-off"
  triggers:
    - trigger: state
      entity_id: switch.zone_1        # your entity ID may differ
      to: "on"
      for: "00:30:00"
  actions:
    - action: switch.turn_off
      target:
        entity_id: switch.zone_1

Pause backyard schedules during an event

Turn off the relevant Zone N Scheduler switches before a backyard party, then turn them back on afterward. The schedules stay saved on the controller and are only skipped while their switch is off.

Troubleshooting

  • No MQTT entities appear. Check that MQTT is turned on in the controller's Settings and that the broker IP and login are correct. Then watch home/sprinklers/status with mosquitto_sub. If you never see Online, check the controller's Logs page for MQTT connection errors.
  • HACS can't reach sprinklers.local. Use the controller's reserved IP address. Home Assistant in Docker often can't resolve mDNS names.
  • Rain delays sent from Home Assistant are ignored. If cloud services are on and your property uses Ambient Weather or NWS, the controller records Home Assistant's data but keeps the cloud's rain delay. Switch the property's weather source to Controller Pushed (Home Assistant) in the cloud portal.
  • Old or duplicate entities after you change setups. Discovery messages are retained by the broker. To remove an entity, publish an empty retained message to its .../config topic.
  • The Master Valve opens unexpectedly. If you assigned a Master Valve relay in Settings, the controller opens it 1 second before any zone and closes it when watering finishes. That's expected behavior and needs no setup in Home Assistant.

Getting SprinklerID

SprinklerID costs $84.99 for the controller alone, which reuses your existing 24VAC transformer, or $94.99 for the complete kit with a 24VAC power supply. You can order on the SprinklerID product page. Every unit comes with our Lifetime Return Policy: a full refund or replacement at any time unless intentional damage is suspected, with return shipping paid by the buyer.

The firmware is open source under GPLv3, with a restriction on commercial hardware use. It's on GitHub if you want to see exactly how the MQTT topics and HTTP endpoints above are built. For full setup guides, API details, and release notes, see the SprinklerID docs.