Simulink Study of a Smart Node for Domestic Applications, Equipped with PV Panel, Energy Storage and Home Automation