Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Format of MQTT Schedule plugin commands?
#12
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.
Reply


Messages In This Thread
Format of MQTT Schedule plugin commands? - by Ryan - 2019 Aug 10, 01:20 PM
RE: Format of MQTT Schedule plugin commands? - by stifler - 2019 Dec 22, 12:02 AM

Forum Jump:


Users browsing this thread: 12 Guest(s)