I built something to similar this, using a Raspberry Pi, reverse SSH tunnels, Phillips Hue, Nest, and a range of sensors.
Part of the project was an admin panel, to oversee the status/health of all the systems, as well as a manual control panel. My biggest concern was security. Granted, it was an internal network in my house, but if anyone got access to it, they had camera feeds, and practically full control of my house.
I wonder how someone like Zuck protects this system, given all the nefarious people who I'm sure would love access to it.