Battery Input Manager is a DBus service managing charging input on your phone.

https://gitlab.gnome.org/gnumdk/battery-input-manager

It is able to set a start and end input threshold. It will charge until a max input threshold if an alarm is detected.

GNOME Clocks >= 45 is supported (flatpak or not).

If your phone looks unsupported, please look at https://gitlab.gnome.org/gnumdk/battery-input-manager/-/blob/main/data/devices.json and send me a merge request to add support for it.