Have you used these tools? Your main option is NUT, and it's not a great product. It crashes, it can't tolerate one of the UPSes being down, etc.
For my homelab, I ended up connecting my UPS via a USB cable to a Synology NAS and adding automation to shut down the rest of the servers to it.