News for hackers. Stuff that matters.
Re:How to control your smart home without yelling at a dumb ... by IronHerald on Thursday February 02, 2023 @12:42PM (#34630228)
There's also the possibility of using Advanced Charging Controller - though it requires root. Essentially you can set it up so when the battery reaches eg. 100% it stops charging, and resumes only once it reaches eg. 15%. Surprisingly the Android devices that I have still don't ever stop charging on their own, constantly keeping 100%.

[Advanced Charging Controller (ACC)](https://github.com/VR-25/acc)

[BU-808: How to Prolong Lithium-based Batteries](https://batteryuniversity.com/article/bu-808-how-to-prolong-...)

Re:How to control your smart home without yelling at a dumb ... by dementik on Thursday February 02, 2023 @03:37PM (#34632633)
I do this with my tablet: It is running Fully Kiosk Browser, reporting to Home Assistant. When device reaches 20%, it turns on Oneplug usb relay and turns it off at 80%.
Re:How to control your smart home without yelling at a dumb ... by wkat4242 on Thursday February 02, 2023 @04:38PM (#34633501)
You can do that, but you still have a battery that will eventually become a problem. I prefer my wired devices not having a potential bomb on board :) As I generally use old devices with worn batteries this is likely to become a problem much sooner, and much less of an issue to stick a screwdriver in and start tearing parts out of the device. Of course you're not going to do this to your brand new tablet under warranty.

However, doing that you do have the benefit of having "UPS" protection of course (how much depends on the charge cycle). In my case this isn't really a problem because if my power is down there is not much in my home left to control that still works.