Here is a very good, and detailed, write-up of a chap who started from scratch with openHAB and documented all the steps and different parts of the system. A very thorough and informative read...
http://jpmens.net/2014/01/14/a-story-of-home-automation/
Definitely worth a look if you have any interest in home automation or openHAB.