There is a great software framework called Home Assistant (Hass.io) that can turn any embedded device into a full featured home automation hub. It is a free and open source software suite that is fully optimized for embedded devices. The installation is easy and updates are automatic. There are also a ton of different add-ons that can be installed with a single click- Google Assistant, Let’s Encrypt, dynamic DNS via Duck DNS and many more. Hass.io will track the state of all smart devices in your home and will give you the power to control them from a mobile-friendly interface. You can set up advanced rules. Check out the Cookbook here.