Building system diagnostics through a network of smart local sensors