add battery API