Algorithm and Block Diagram of an Electronic System for Control of Energy Flows in Residential Premises | IEEE Conference Publication | IEEE Xplore