I invite you have a look at the documentation of my home automation project at https://github.com/watzcraft/HauntingHouse. While it is (always) work under construction i hope i collected already enough information (now that the appartments are “in production” for nearly a year) to be of use for the community.
I admit the openHAB part is still subject to be improved (documentationwise, the "real thing is up and running :-))
Sorry for crossposting.