I reviewed your post and I understand that the battery is not getting charged.
Don’t worry, I assure you I will try my best to get this sorted.
What is the product number of your computer?
Meanwhile, I recommend you update the BIOS from the below link and check whether the issue is resolved.
https://support.hp.com/in-en/drivers
Let me know how it goes and you have a great day!
P.S: Welcome to the HP Support Community 😊
If you wish to show appreciation for my efforts, mark my post as Accept as Solution.Your feedback counts!
Cheers!
Stay Home – Stay Safe