A Small-Scale Prototype for the Optimization of PV Generation and Battery Storage through the Use of a Building Energy Management System | IEEE Conference Publication | IEEE Xplore