Engineering Smarter Energy Systems, From Home to Grid