Home Assistant
Open source home automation that puts local control and privacy first
...It can give you control of all your devices from a single, mobile-friendly interface and will track the state of all these devices so you don’t have to.
Home Assistant is powered by a worldwide community and runs ideally on a Raspberry Pi or a local server. It can be set up to automatically control devices, so whether you want to be alerted when the lights turn on when you’re not at home, or want the lights to automatically dim when you start to watch a movie on Chromecast, Home Assistant can do it for you. See more examples on the official website: https://www.home-assistant.io/