Add YEARS to your device's lifespan, no root access required! This applet is used in conjunction with MacroDroid (or other automation engine) and an IFTTT compatible smart plug, in my case one from Wyze, in order to automatically start charging a device at X, e.g., 25%. It has a sister applet that does the opposite, i.e., stop charging at a set max threshold, e.g., 75%. See the video at the(shortened) url below (you can also see my comment from early December '22)
https://v.gd/IFTTT%Limiter