Home automation for control of HVAC, lights, building entry, and more