[US20] implementation of battery getvalue, library-side