Smart Home / OpenHAB integration

OpenHAB: You can OpenSprinkler with the binding on from

https://www.openhab.org/addons/bindings/opensprinkler/

include

This is also possible for other smart home systems. OpenSprinkler has an API with which one can control all functions over the network.

https://openthings.freshdesk.com/support/solutions/articles/5000716363-os-api-documents

Important: You must pass the password for access as an MD5 hash. And when you're in OpenSprinkler change the password, then the MD5 hash must also change! online you can for her OpenSprinkler-Password get the hash generated here: https://www.md5hashgenerator.com/

For example, you can then start an irrigation:

http://<ip-opensprinkler>/cm?pw=<md5pw>&sid=<Bewässerungskreis>&en=<1|0>&t=<Sekunden>

Irrigation circuit is the index starting at 0

en=1 for on, en=0 for off

9 opinions on “Smart Home / OpenHAB integration"

  1. Kito
    Kito says:

    Hi. Short question. I have a Raspberry Pi 3 Model B running with openHAB. This is how knx is controlled for me. If I now want to have the control for the sprinkler system, do I only have to buy the one for the Raspberry from you (as an extension, so to speak) or the dc model, which then goes into the garden shed? thank you in advance

    • admin
      admin says:

      Hello Kito, of course both are possible. However, remember that with the variant OSPI all GPIO ports are occupied by the board and you do that OSPI need to use housing. You also have to lay the 24VAC cables for the solenoid valves from the openHAB Raspi to the garden shed.
      In the OpenSprinkler 3.0/3.2 you can choose the installation location and connect to the openHAB via WiFi/Ethernet.

  2. Stefan
    Stefan says:

    Hello, I have IT knowledge and use knx and several raspis. I would like to connect an ultrasonic sensor to the irrigation computer, which opens a magnetic valve for water replenishment depending on the fill level. Which of your products should I use for this? Raspi + circuit board or finished controller?

    • admin
      admin says:

      Hello, in principle you can take both. Both products have a (digital) input that can function as a switch. This switch can be connected to the program control, so then a program starts.
      In principle you don't need a controller for this, a threshold switch, a 24VAC power supply and a 24VAC relay would probably also work.

  3. Kito
    Kito says:

    Hello Admin, I have a question about the integration into openhab. I installed the binding and it works. Another thing, but here I have to enter the ip of the OpenSprinkler enter it manually because it cannot be found by searching. Sometimes I had already shown it as online for a short time, but then as offline shortly afterwards? Something is fishy there. Then I read this with the password here. There I also go the page, give the password from OpenSprinkler one at “Use this generator to create an MD5 hash of a string:” and then I generate the string. Take this and then enter it under password in openhab? But even then it doesn't connect. However, when I call up the sprinkler with its IP via a browser, I get connected... I just don't understand it. Do you have another tip?

  4. smhaller
    smhaller says:

    openHAB v3 is just around the corner and I am therefore experimenting. Under openHAB v2 I implemented the connection directly via HTTP binding from OpenHAB, since I can send all calls via api. Contrary to opensprinkler binding. In the new version, however, I don't even bring the basics of the opensprinkler bindings to run. openHAB always tries to access the url http://1.2.3.4/sn0 access which does not exist at all

    • admin
      admin says:

      Correct, the sensor inputs (regardless of what is attached to them) can be read out. Is 0 or 1. Also applies to the API

Write a comment on Kito Cancel reply

Your e-mail address will not be published. Required fields are marked with * marked

This website uses Akismet to reduce spam. Learn more about how your comment data is processed.