Smart phone charging using Home Assistant
After finally getting Tasmota flashed onto a smart plug I was able to get started on one of the smart home projects I'd been pondering for a while... a smart phone charger that could stop the phone charging when it reached a certain battery charge level. My motivation was this... I had been the owner of a Google Pixel phone which I purchased in 2017. After 2 years of use I was becoming increasingly disappointed with the battery life of the device, which prompted me to install the AccuBattery app to attempt to quantify how poor the remaining battery capacity was. I was alarmed to find that the battery capacity was less than 50% of the original capacity (and has now dropped to less than 40% at the time of writing) So after I got a new Android phone in around May 2019, I started reading about how I could improve this. The AccuBattery documentation has some very useful articles describing how lithium ion (Li-ion) batteries degrade under different charging...