Tangentially related, I have recently been using my S10+ as a makeshift media server running Jellyfin in Termux. The main problem I had was that it is unsafe to keep a device perpetually charging and my first thought was to create a Routine to turn on the charger when the battery is above a certain threshold and off when it is below. This post gives me an alternative idea to try.