Home Energy Storage System Lithium Battery Agent