OpenSprinkler Component

I wanted to share with folks a python module I have been working on to talk to the REST API of the OpenSprinkler.
https://github.com/devanl/pyOpenSprinklerRest

Its not fully complete yet but I wanted to let folks know it was available before I disappear behind our incoming newborn. Hopefully I will be able to keep working on it until its at least feature complete. The end goal was to provide an integration component for HomeAssistant

Devan

3 Likes

Thanks Devan,

I’ll check it out as soon I have my alarm integration going.

How did you plan to use the integration as it is pretty sorted on its own?

My usecase would be to take a snapshot from my security cameras a min after a program has started in order to try and spot any sprinklers that might require attention.

The other one is to have the programs start when the outside alarm is tripped. Not to prevent the buglary but to make it easier to spot them afterwards :wink:

Regards

Paul

Hi Paul,

I was going to start by just integrating the zones as a switch component. Allow better logging of watering time. Long term I was hoping to centralize the weather component between the two platforms and allow for automation to tie in to watering schedules.

Devan

This would be amazing Devan… I am on the fence about getting the OpenSprinkler mainly because I only want to use one interface to control my house (HA) instead of multiple apps, and this would fit the bill for sure!

1 Like

I agree with grikka. This would be awesome. I’m a long ways away, but would like to get the irrigation system integrated with the rest of HASS.

This is awesome. I was thinking of trying my hand at writing a homeassistant component and though opensprinkler would be a good place to start.

I think I know the answer after reviewing your code but is this written for the Arduino version of opensprinkler or the raspberry pi port ? I believe the APIs differ slightly between the native arduino version and the raspberry pi port. I may just fork your project for the pi version (SIP) https://github.com/Dan-in-CA/SIP

Mine is Arduino, good luck!

Hi everyone,

I was also thinking about starting on an OpenSprinkler component, has anyone started integrating Devan’s project into Home Assistant?

Thanks,
Nathan

What are the major benefits of running OpenSprinkler compared to SprinklerPi?

I´m currently running SprinklerPi on a separate Pi and it is working well. I report the sprinkler statuses to HASS using MQTT but I would love a complete integration if possible.

I was trying to embrace an IoT strategy with many separate appliances, if this appliance is just running my irrigation then the canned solution seemed much easier to maintain given its level of support by the developer.

1 Like

You can find a custom component here: https://github.com/vinteo/hass-opensprinkler

If anyone has any ideas how to install this, please let me know.

1 Like

There is a HACS component… https://github.com/vinteo/hass-opensprinkler

2 Likes

Hi uiguy! I recently found out about HACS. So I installed hass-opensprinkler like you suggested.
I wanted to ask you or anyone willing to help. Should I just put the ip address of the open sprinkler (ex: 192.168.0.103) and the password should actually be the password I put in Open Sprinkler passed through a md5 encryption (I used https://www.md5online.org/)? It is the first time I am doing this and this is why I am asking. I did all that and I cannot see Open Sprinkler elements as entities. I also restarted HA.

Any idea what else I should do?

This is the code one should input in configuration.yaml

hass_opensprinkler:
  host: <host>
  password: <md5-password>


 * Replace  `<host>`  with the IP address or hostname of your Opensprinkler controller.
 * Replace  `<md5-password>`  with the MD5 encrypted version of your password to your Opensprinkler interface.

sometimes deives don’t appear in entities… especially for custom components (which all of the HACS stuff is really)

Have a look under developer tools-states and you should see the switches there…

Otherwise, setup looks ok at a quick glance…

MQTT now has been integrated on opensprinkler.