AutoBattery keeps your Mac's battery in the range where it lasts by switching your Tapo smart plug off at your limit and back on when you drop below it.
A Mac running macOS 15 or later, a supported TP-Link Tapo smart plug, and both devices on the same network.