The Raspberry Pi is a very capable home automation controller. Its small form factor and fan-less design mean it can go almost anywhere. It is also one of the most popular platforms for home automation tinkerers to get started.
The openHAB team have done a great job in making it easy to get up and running. See the below guide from the openHAB website for full details.
Raspberry Pi (Prepackaged SD Card Image)
If you would prefer to watch a video rather than read a guide, see the below video for a detailed walkthrough.