That’s a great solution.
I actually moved my setup from bare metal to Proxmox (so I can potentially run other things in the future), so I set up a script that sends the battery info to mqtt. At the moment I’m just using battery level to allow for battery conditioning, but I may add the charging status later if needed.
Using PROXMOX on a laptop with a battery
Ran into a problem with the cron task running too many threads, and I’m not experienced enough with Python to troubleshoot it right now.
I set up a NetData server on the Proxmox box, and pulled the battery sensor into Home Assistant with the integration: Netdata - Home Assistant