New binding for home made hardware

I also wanted to make a similar setup using openhab running on raspberry pi with xbee to control my home…
Could you help me with getting started with this…