How do I set up an alert?
In Homeck, choose a device, a reading and a level. HomeKit can't send a message by itself, so the last step happens in the Home app and takes about a minute: open the new automation, tap Convert to Shortcut, add Get Contents of URL and paste the link Homeck copied. Then send a test from Homeck to check it arrives.
In the app: Automations › Alerts › +, then follow the three steps on screen.
Can it warn me before a battery dies?
Yes. Set an alert on a device's battery level, such as below 20%. Many devices also raise their own low-battery warning, but each maker decides when to raise it, and some never do. The line at the top of Home in Homeck also flags a device that reports a low battery.