Battery wont charge over 4%

Tried charging my battery doorbell and it won’t charge over 4%, as soon as I unplug it. The camera goes offline