Trying to see Esphome sprinkler entities inside irrigation_unlimited

Hi,

I’m a relative newbie to the “sprinkler” entity in Esphome but have successfully set up two esp8266 devices as separate irrigation sprinkler/dripline controllers. Each irrigation controller drives a 4 channel relay module, which in turn controls three 12v solenoid valves (it should be four, but I need to work out how to get a fourth gpio pin working on the esp8266 in a way I understand)

My ultimate goal is to have three irrigation controllers - 2 x 4 channel and 1 x 8 channel, to control drip lines in separate areas of a large garden.

The two controllers are not yet “live”, but seem to work really nicely being driven manually in testing mode in the sense that the relay indicator lights are doing exactly what’s expected and I can change settings. In addition I’ve set up a standalone esp8266 soil moisture sensor and would like to use it in the irrigation control process.

The configurations started off pretty much cut and pasted, but I’m getting a better understanding of how to trim them down as I play around.

I am now investigating methods of automating the controllers from within HA. This is where I came across irrigation_unlimited, which seems to provide an overarching method of being able, relatively easily, to manage the separate controllers and relay+solenoid combinations.

Problem is I’m missing the probably quite obvious way of referring to the relay/solenoid entities as defined in Esphome on the esp8266 devices, and “seeing” them in the configuration.yaml file for irrigation_unlimited.

Any links or references, or comments about better/different ways of achieving this, would be very welcome. e.g. it seems one can achieve a whole lot just using the “sprinkler” component, but irrigation_unlimited seems to offer an easier way.

Thanks for any insights/advice.

A quick glace at the irrigation unlimited docs says it supports entity ids as controller objects:

https://github.com/rgc99/irrigation_unlimited?tab=readme-ov-file#51-controller-objects

Your esphome irrigation controller should generate switch entities for your relays:

https://esphome.io/components/sprinkler.html#an-important-note-about-gpio-switches-and-control
Screenshot 2024-12-01 at 11-07-42 Sprinkler Controller — ESPHome

Go to Settings → Devices & Services → ESPHome and find one of your irrigation controllers. You should have switch entities listed there. Click on the name of one. Then click on the cog icon in the pop-up card. This will show the entity id. You can even copy it from there for use in irrigation unlimited.

Eureka! - almost…

Thanks for helping narrow my terminology gap - there’s still tons to learn about how things fit together.

I still haven’t managed to turn on a relay board indicator led from inside irrigation_unlimited after a quick and dirty test after reading your post, but I’m now in a much better position to re-read the documentation and make more sense of the fine print. I’ll provide feedback on how I got things to work when - eventually - it all clicks.

Regards

1 Like