DIY WiFi Sprinkler Controller using ESP8266

Sure it could. It says it’s using http to trigger the relays so can definitely use a command line switch and the equivalent URLs to trigger them. These are supposed to also have a URL that returns the state for each relay but unclear whether that exists for this one.

http://192.168.1.4/30000/00 : Relay-01 OFF
http://192.168.1.4/30000/01 : Relay-01 ON

ALso unclear what these are
http://192.168.1.4/30000/41 : Enter
http://192.168.1.4/30000/40 : Exit
http://192.168.1.4/30000/42 : Next Page
http://192.168.1.4/30000/43 : Next Page

So something like this:

switch:
  platform: command_line
  switches:
    zswitch1:
      command_on: http://192.168.1.4/30000/01
      command_off: http://192.168.1.4/30000/00
      friendly_name: Zone 01

Probably yes. The way is definitely correct but might be that you need to put some actuall command in front that calls the url

OK cool I placed an order for a web relay board, once I get it I’ll start playing with it. I wonder if I can also get the state out of it as well…

Are the links from the OP still working?
I can’t access: https://selfhostedhome.com/diy-wifi-sprinkler-controller-using-esp8266-part-1/

Hmm weird. His website is down. I remeber in the past his SSL certs expired. So not sure what’s happened to his website :frowning:

That sux…got all the parts wanted to check his schematics.

@ThaNerd

It looks like this may be what you’re looking for:

https://github.com/selfhostedhome/smart-sprinkler

Full disclaimer: Not my repo, and haven’t built any of the circuitry, so I can’t comment on the accuracy.

1 Like

Thanks! Yes that was what i was looking for.

Also, can’t figure out how to flash the nodemcu…is there a place to find out? I did it a few years back but can’t figure out how…

I find the Ethernet controller way more stable than the esp. It even has the capabilities to send the state of each relay back. Already implemented the state into my code, there is a small delay but nothing crazy. We shall see in the long run how it holds up.