Occupancy-driven energy management for smart building automation | Synapse