A building automation framework prototype