A Predictive Model for the Automated Management of Conditioning Systems in Smart Buildings