Embedded control logic in BMS to manage local HVAC zones or equipment sequence