Do you want a Smart Sprinkler controller that is integrated with SmartThings but won’t break the bank? Are you looking for a DIY Smart Sprinkler that doesn’t require an Arduino and SmartThings Shield? If so, this may be what you’re looking for.
I’ve created an ESP8266 based Smart Sprinkler based on the Smart Sprinkler project written by Stan Dotson and Matthew Nichols. Rather than using an Arduino with a SmartThings Shield, the ESP8266 is WIFI capable and communicates directly to your SmartThings hub over the local LAN.
The entire project is on github and consists of two SmartApps, two Device Types, and the firmware source and binaries for the ESP8266 microprocessor. Additional details and high level instructions are in the Readme.
Project highlights include:
- A SmartApp that discovers Smart Sprinkler controllers on your network using SSDP
- SmartThings scheduler to run your sprinklers based on day of the week, time, and even current weather
- Over-the-air (OTA) updates of controller firmware
- Directly control your sprinklers from your phone or even Amazon Echo
- Option to directly control a manual relay or pump
ESP8266 Hardware Options
There are a large variety of ESP8266 based options including prefabricated boards with relays that can be used for Sprinkler Controllers. I’m using the LinkNode R4 and LinkNode R8. They can both be found on Amazon for around $15USD. They even have files available for 3D printing enclosures.
I am not a professional developer and haven’t coded in many years. The code I’ve come up with is a result of a lot of copy/paste and trial and error. It’s not pretty, but it’s been keeping my lawn green for a couple weeks now. Feel free to try out the project and send me your questions, comments, and suggestions.