Smart irrigation system

Keizer

Getting comfortable
Jan 3, 2023
265
541
Wa
Has anyone built their own smart sprinkler controller for home assistant? I know you can purchase smart controllers that are drop in replacements but building one appeals to me. I'd really like to incorporate something into ESPHome on my home assistant setup. Has anyone done this?
 
The advantage to using a "smart" controller is that it is still a stand alone controller. If something happens to your automation system, the sprinkler system should continue to function as expected. If you build your own "smart controller" then you want to make sure that whatever solution you build can work on it's own should home assistant go down.

That being said, if you use the correct ESPHome chip/device, it would work this way. Something with enough outputs paired with enough relays to control all of your individual sprinkler zones, along with enough programming power to set everything up on the chip itself. Having HS be able to monitor and even command the controller is great, but secondary to the controller being responsible for the operation of the sprinkler system.

A quick search found this: Sprinkler Controller and Sprinkler automation with ESPHome, a complete project
 
Yes, ESP32 chip + some relays is the answer, in my case, to control other things around the house, not sprinklers. If you haven't worked on ESP32 before, it will be fun & educational.

The added benefit with DIY is that there are a ton of other sensors you can add like temperature, humidity, etc.. listed here ESPHome — ESPHome
 
  • Like
Reactions: Keizer
Yes, ESP32 chip + some relays
Exactly what I was wanting to do. There are so many different ESP32 boards online to choose from. Are they all pretty much the same?
Here's a list of what I was thinking.




 
As an Amazon Associate IPCamTalk earns from qualifying purchases.
I bought one of these for $89 and wrote some code to talk to it over a socket to turn relays on and off. Been working for 3 years now.
32 relay controller
 
As an Amazon Associate IPCamTalk earns from qualifying purchases.
Okay I got it all mocked up on my desk. I only added one entity (Zone 1) to the ESP32 so far. I can now click relay one manually. Fun stuff!!
 

Attachments

  • 20240308_170212.jpg
    20240308_170212.jpg
    1.9 MB · Views: 26
  • Like
Reactions: actran
@Keizer Yeah, it's addictive when you hear the relay noise.

Next thing you'll need is a 3D printer so you can custom print a case for your hardware.
 
  • Like
Reactions: Keizer
I’ve read about this but don’t use one. I currently use a RainMachine controller

I was playing around with open sprinkler on a Raspberry pi I had laying around. Although you can integrate open sprinkler into Home assistant via HACS, I wanted to use ESPHome and build my own dashboard.
 
  • Like
Reactions: BORIStheBLADE
Okay, it's all wired up and all relays function. Just have to wire the actual solenoids to the other side of the relays. I tested out an automation that would simulate automatic watering by time of day and it works perfect.
 

Attachments

  • 20240309_170639.jpg
    20240309_170639.jpg
    1.9 MB · Views: 14
  • Screenshot_20240309_170713_Home Assistant.jpg
    Screenshot_20240309_170713_Home Assistant.jpg
    159.9 KB · Views: 14