I have a solution to your problem. You need to change a setting in the BIOS. Press F10 while booting, go to configuration and enable "Battery Remaining Time". Then save changes and exit. Now the charge rate sensor and the remaining time will appear in hwinfo
I'm using the HP Envy x360 with a Ryzen 5 4500U.