Tracking Battery Levels

How is everyone tracking battery levels? Currently, I open a tab to the and keep the logs open so I can view the levels.

Needs an app with threshold settings and alert function.
Anyone feel like writing one?

I started to write one but if I am not mistaken, the battery attribute is not defined for many devices like locks and presence devices. And the device.battery only shows limited items.