@Micky @vertigo : I recommend sonoff, it is based on ESP8266. You need to tinker it a while, but it is fun. No soldering needed, you just need to buy the cable and the plug. Since you can flash Tasmota and now you can have full http/MQTT control. We can use htttp request to trigger on/off. Or if you buy the POW version, you can use periodic http request to query the power usage. The flow is in my to do list. I can then turn the combination of both to monitor power usage of any electric appliances with my phone. Currently I only use it to track my monthly PC power usage. I have the sonoff basic to control standing fan, which is actually only 1 meter from me (too lazy to reach it

). I just use keyboard shortcut in my PC to turn it on/off when needed.
@vertigo @Wibbly : The main enemy of the battery is heat. From my experience, charging it to full and kept full for long time is not as bad as stated in that website. Maybe because the newer battery tech and charging has all kinds of mechanism to protect the battery. My RN5 whyred usually charged several times a day, from around 50-70% to 100% and sometimes kept in 100% plugged in to PC while scrcpy mirroring. It is 2+ years already, maximum SOT as I tested maybe weeks ago, still can achieve 10+ hours (compared to max 15 hours at the first several months, average 12 hours).
Using quick charger (QC 2.0/3.0) surely will create more heat and mine has charging throttling at around 70% if the phone is above 43 C. I use automagic flow to test this several times in 2018, and still can replicate the result early this year. I planned to post my finding at that time, but already lost the mood to do that, since I already gain the knowledge.
There should be a balance between convinient and maximizing battery life. I typically charge whenever it is convinient, using PC or normal slow charger, doesn't care if the battery is close to full, just left it there fully charged. But when travelling, where quick charging is important, then I prefer to bring my QC charger.