Help with Rain Sensor not working on Opensprinkler Pi (OSPI)

Hello,

I am looking for help getting OSPI to work with openHAB. I am using openHAB 1.8.1 and Opensprinkler Pi hardware running the Interval program (V. 1.8.3). openHAB communicates with OSPI via http.

I am able to control the stations (valves) but the rain sensor remains at “Unknown”. The hardware works, I can see the rain sensor change state when accessing the interval program directly from a web browser. It looks like openHAB never pools the status of the rain sensor.

Any suggestions or tests I could make to pinpoint the problem?

Thanks!


OPENHAB.CFG

################################ OpenSprinkler Binding ################################

The type of OpenSprinkler connection to make (optional, defaults to ‘gpio’).

There are two valid options:

gpio: this mode is only applicable when running openHAB on a Raspberry Pi, which

is connected directly to an OpenSprinkler Pi. In this mode the communication

is directly over the GPIO pins of the Raspberry Pi

http: this mode is applicable to both OpenSprinkler and OpenSprinkler Pi, as long as

they are running the interval program. Realistically though if you have an

OpenSprinkler Pi, it makes more sense to directly connect via gpio mode.

openSprinkler:mode=http

If the http mode is used, you need to specify the url of the internal program,

and the password to access it. By default the password is ‘opendoor’.

openSprinkler:httpUrl=http://192.168.2.144:8080/
openSprinkler:httpPassword=private

The number of stations available. By default this is 8, but for each expansion board

installed this number will can be incremented by 8 (optional, defaults to 8).

#openSprinkler:numberOfStations=8

The number of milliseconds between checks of the Open Sprinkler device

(optional, defaults to 60 seconds).

openSprinkler:refreshInterval=60000


demo.items

Switch Sprinkler_Station_0 “Front Flower Bed” (Sprinklers) { http=">[ON:GET:http://192.168.2.144:8080/sn1=1] >[OFF:GET:http://192.168.2.144:8080/sn1=0]" }
Switch Sprinkler_Station_1 “Front Lawn” (Sprinklers) { http=">[ON:GET:http://192.168.2.144:8080/sn2=1] >[OFF:GET:http://192.168.2.144:8080/sn2=0]" }
Switch Sprinkler_Station_2 “Side Lawn” (Sprinklers) { http=">[ON:GET:http://192.168.2.144:8080/sn3=1] >[OFF:GET:http://192.168.2.144:8080/sn3=0]" }
Switch Sprinkler_Station_3 “Backyard South” (Sprinklers) { http=">[ON:GET:http://192.168.2.144:8080/sn4=1] >[OFF:GET:http://192.168.2.144:8080/sn4=0]" }
Switch Sprinkler_Station_4 “Backyard North” (Sprinklers) { http=">[ON:GET:http://192.168.2.144:8080/sn5=1] >[OFF:GET:http://192.168.2.144:8080/sn5=0]" }
Switch Sprinkler_Station_5 “Garden & Roses” (Sprinklers) { http=">[ON:GET:http://192.168.2.144:8080/sn6=1] >[OFF:GET:http://192.168.2.144:8080/sn6=0]" }
Switch Sprinkler_Station_6 “Patio Boxes” (Sprinklers) { http=">[ON:GET:http://192.168.2.144:8080/sn7=1] >[OFF:GET:http://192.168.2.144:8080/sn7=0]" }
Contact Sprinkler_Rain_Sensor “Rain [MAP(rainsensor.map):%s]” (Sprinklers) { openSprinkler=“rs” }


demo.sitemap

Frame label="Sprinklers" {
	Group item=Sprinklers label="Sprinkler System" icon="sprinkler"
}	

rainsensor.map

CLOSED=Not Detected
OPEN=Detected
-=Unknown