UniPi binding

I’ve finally picked this up again. I’ve made a binding that can control the unipis relays using pi4j so no need for evok.

I’m running this on raspbian jessie, with openhab 1.8.3 installed though apt. Copy the above file to /usr/share/openhab/addons/, make sure openhab has sufficient permissions to use the i2c bus (add openhab to the i2c group), add the following to your items file:

Switch  Relay1		"Relay 1"	(Relays)        { unipi="relay:1" }
Switch  Relay2	        "Relay 2"	(Relays)        { unipi="relay:2" }
Switch  Relay3		"Relay 3"	(Relays)        { unipi="relay:3" }
Switch  Relay4		"Relay 4"	(Relays)        { unipi="relay:4" }
Switch  Relay5		"Relay 5"	(Relays)        { unipi="relay:5" }
Switch  Relay6		"Relay 6"	(Relays)        { unipi="relay:6" }
Switch  Relay7		"Relay 7"	(Relays)        { unipi="relay:7" }
Switch  Relay8		"Relay 8"	(Relays)        { unipi="relay:8" }