The amount of time that will be used to keep the station This channel indicates whether the station is on or off. The following channels are supported by the station thing. stationIndex: The index of the station to communicate with, starting with 0 for the first station.
The station thing must be used with a http bridge and has the following configuration properties:
You can choose to manually start, stop or delay the stand alone watering programs that are stored and run fully from the OpenSprinkler device.Īlternatively you can setup openHAB rules to control everything in more depth by setting up multiple station things for each watering zone to gain more in depth control.īy using the internal programs and sensors of the OpenSprinkler device, it can remove the complexity of what happens to the watering if openHAB crashes, is rebooted, or drops out of WiFi range in the middle of your watering rules. Otherwise check the permissions on the /etc/init.d/ospi-notifications script as well as the /home/pi/ospi_push_notifications.py script.This binding allows good and flexible control over your OpenSprinkler devices. Lastly, you can check the init.d logįor the notifications script located at /var/log/ospi-notifications. Typically this is at /var/log/messages.ĭepending on where the script failed, this should provide some information. Then, if for some reason things aren't working, you can check your syslog.
Stop running the script by pressing CTRL+C if you receive a notification, and continue to install it as a service so it'll run on reboots.You can run sudo python /home/pi/ospi_push_notifications.py and manually start a station from OpenSprinkler's web page to see if you get a push notification.For the Notification field, I simply chose present in that notification message for the dynamic info to be sent through notification. Complete the action field and create the recipe.ġ.This is where you can use "iOS Notification" or "Android Notification" or "Email" or "SMS". You can tailor it to suite your needs, but for this example:ġ.
Create a new recipe with the following info.I chose my event name to be OpenSprinkler Add the secret key, and your event name to the config.yaml.Create your maker channel and get your secret key.Install the app on your device to receive push notifications.Create a new app called OpenSprinkler (or whatever you'd like it to be called).
The app is basic and is only needed to receive the push notification. Install the Instapush app on your device.Click Basic Info on your newly created app and save the Application ID and the Application Secret.Create a new App on Instapush's website with these settings:.Sensor has been activated and send a notification for that event as well. This is a Python script that will check the OpenSprinkler APIįor running sprinkler zones (or stations).