2019 Dec 22, 12:02 AM
I am using this method to control my sprinklers using OpenHAB. You probably have already worked this out, but if you need to stop a sprinkler from running then send a command to either change to another sprinkler (or new set of sprinklers), or just post a 1 second command to the operating sprinkler.
so if I want to turn all my sprinklers off, I post- [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Since my first relay is actually not used this turns everything off. There is no reason that you could not just do:
ONĀ [0, 0, 0, 0, 0, 0, 0, 600, 0, 0, 0, 0, 0, 0, 0, 0]
OFF [0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0]
since it is not really that urgent to have it shut down.
In my case I have a page which configures the stations, and then posts (example)
[0, 300, 300, 90, 90, 60, 0, 0, 300, 300, 60, 0, 0, 0, 0, 0]
And a "STOP ALL" button that posts
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Later I will possibly tinker with using OpenHAB to set programs - but I am not really interested in reinventing the wheel. SIP does that fine.
so if I want to turn all my sprinklers off, I post- [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Since my first relay is actually not used this turns everything off. There is no reason that you could not just do:
ONĀ [0, 0, 0, 0, 0, 0, 0, 600, 0, 0, 0, 0, 0, 0, 0, 0]
OFF [0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0]
since it is not really that urgent to have it shut down.
In my case I have a page which configures the stations, and then posts (example)
[0, 300, 300, 90, 90, 60, 0, 0, 300, 300, 60, 0, 0, 0, 0, 0]
And a "STOP ALL" button that posts
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Later I will possibly tinker with using OpenHAB to set programs - but I am not really interested in reinventing the wheel. SIP does that fine.