[NEEDS UPDATING] Raspberry Pi Relay Controller (WebIOPi)

Hi @richland007,

You may try this:

Blockquote
I had a problem where all of my sensors and switches were opposite (open vs closed and on vs off). I know very little coding and it took a little trial and error.
On the contact sensor device handler I had to flip the 0 and 1 on lines 83 and 86
On the relay I had to make two changes.
On the device handler I had to flip the 0 and 1 just like the contact sensor on 83 and 86. In the SmartApp I had to flip the 0 and 1 in the array on line 437 and 447

@JohnnyBoyGee made this. tx to him
https://community.smartthings.com/t/raspberry-pi-garage-door-opener-with-current-state/119432

Sorry for the delay but I have a lot to do and take care of my family.