I have an old, quite banged-up Huawei Y6II. I want to use it as a static device and turn it into a security camera, web server, wifi hotspot, etc. Is it okay to keep it plugged in all the time? Or should I use a DIY solution that controls the charging cable with a relay in a way that the cable is turned on when the battery is low and then turned off when it is full?
To clarify, I am not asking about the DIY solution, I have a plan for that already. My question is, is it worth going into the hassle, or is it just fine to normally keep the phone plugged in 24x7?
Please note, there are frequent power outages here.
And in case this info is useful - the battery of the phone was replaced once and the new battery was purchased from a "don't know how trustworthy" shop, but it works okay, and the price was close to an original replacement.