Open source home automation

Home Assistant

Home Assistant is an open-source home automation platform running on Python 3. Track and control all devices at home and automate control. Perfect to run on a Raspberry Pi.

Hass.io turns your Raspberry Pi (or another device) into the ultimate  home automation hub powered by Home Assistant. With Hass.io you can focus on integrating your devices and writing automations.

Also:

Source: opensource.com

openHAB – Introduction

openHAB

openHAB is a software for integrating different home automation systems and technologies into one single solution that allows over-arching automation rules and that offers uniform user interfaces.This means that openHABis designed to be absolutely vendor-neutral as well as hardware/protocol-agnosticcan run on any device that is capable of running a JVM (Linux, Mac, Windows)lets you integrate an abundance of different home automation technologies into onehas a powerful rule engine to fulfill all your automation needscomes with different web-based UIs as well as native UIs for iOS and Androidis fully open sourceis maintained by a passionate and growing communityis easily extensible to integrate with new systems and devicesprovides APIs for being integrated in other systems

Source: openHAB – Introduction