,
Thank you for posting on HP Support Forums. It is a great place to find the help you need, from other users, HP experts, and other support personnel. I see from your post that you are having issues related to Battery not working on your HP notebook. Don't worry I'll do my best to help you with this.
Splendid effort and fabulous description of the issue before posting. Kudos to you on that score. You are a valued HP customer and it is paramount to assist you here. I take it as a privilege to share this platform with you.
As you have mentioned in your post that you have already changed the charging port as well as the battery and more over you have updated the Bios and still having the issue with the battery.
This looks like a possible hardware failure with the PC. Before, you come to any conclusion, I would suggest you try these steps here:
HP Notebook PCs - Testing and Calibrating the Battery (Windows 10)
HP Notebook PCs - Using and Testing the AC Power Adapter
Next thing, I would suggest here is to run the test on the battery from F2.(Click on Component test - Scroll down to Power)
Please remember to capture the failure ID for further assistance.
If the issue persists, Check this: I'm sending out a Private message with the information you need to get this sorted,
Please check your Private message icon on the upper right corner of your HP Forums profile
Next, to your profile Name, you should see a little blue envelope, please click on it
Keep me posted,
that said, If the information I've provided was helpful,
give us some reinforcement by clicking the solution and kudos buttons,
that'll help us and others see that we've got the answers!
Good Luck.