Automatically Disconnect Charger When Phone Is Fully Charged! - Tasker Tips & Tricks

I use NFC to automatically turn on my wireless charger (through a smart plug), as soon as I place my phone on top of it.
You can see it here: youtube.com/watch?v=UI4oX0kzLzA
Also it will automatically turn off, if the phone is beeing removed or is fully charged. The idea behind it is to conserve the battery of the phone a little bit longer, by not letting it charge the whole night!
Why is it important to stop charging your phone after it hits 100%?
"According to Battery University, leaving your phone plugged in when it's fully charged, like you might overnight, is bad for the battery in the long run. Once your smartphone has reached 100 percent charge, it gets 'trickle charges' to keep it at 100 percent while plugged in. Battery University goes into a bunch of scientific detail explaining why, but it also sums it up nicely: "When fully charged, remove the battery" from its charging device. "This is like relaxing the muscles after strenuous exercise." You too would be pretty miserable if you worked out nonstop for hours and hours. Source: sciencealert.com/how-to-charge-phone-battery-to-last-longer-advice-science
Because "If you leave the smartphone plugged in overnight, it's going to use a bit of energy constantly trickling new juice to the battery every time it falls to 99 percent. That is eating into your phone's lifespan" Source: uk.pcmag.com/features/92897/charging-your-phone-overnight-battery-myths-debunked
"Even though a charger turns off the juice when your phone reaches 100%, the charger will continue to top off the charge during the night, says Bradshaw. Such a “trickle charge” attempts to keep it at 100% to compensate for the small bit of charge that your phone just naturally loses on its own. So your phone is constantly being bounced between a full charge and a bit below a full charge. These trickle charges can lead to higher ambient temperatures for your phone, which can reduce capacity over time." Source: time.com/4949569/mobile-phone-charge-overnight

Can you share the recipe ?

vickzone said:
Can you share the recipe ?
Click to expand...
Click to collapse
I use TP-Link Smartplugs which can be controlled through IFTTT (an app). Tasker sends a webhook to IFTTT when it reaches a certain battery level, and IFTTT sends a signal to the TP-LInk app to turn off the plug.
It is explained nicely in the Macrodroid forum, just adapt it to Tasker. Of course, there is a small learning curve for IFTTT.
https://www.tapatalk.com/groups/mac...top-phone-charger-if-battery-hits--t5569.html
If you don't want to use IFTTT, maybe Tasker's AutoInput plugin can do it - i.e. Tasker launches the smartplug app and AutoInput taps on the shutdown button shown on screen.

I used the Send/Expect Plugin for Tasker, as described here:
https://www.reddit.com/r/tasker/comments/52lvhq/how_to_control_a_tplink_hs100/
You can also take a look here:
https://www.reddit.com/r/tasker/com...amp&utm_medium=&utm_content=comments_view_all

I had the same problem. Technical support helped. Good luck

this method does require root? Thanks!

no, root is not required.

Related

battery lifetime extender tool

Hi there,
I was wondering if there exists any tool to prolong the liftime of the battery.
In energy settings you can specify that the battery isn't charged when the device connected by USB.
Wouldn't it be good to have a tool running in the background that checks battery status from time to time?
It should turn off charging until the charge level drops below a configurable percentage (e.g. 20%). Then the battery gets recharged again until full.
Should prolong battery lifetime.
Only Question is, when connected to usb and battery charging is turned off, is the device still powered by the USB port or is the battery used.
So, have you heared of such a tool?
Nice love the idea saves havin to leave phone on charge over night screwwing battery hopefully some 1 will know/be smart enugh to creat 1
But actually, Lithium polymer and LiOH batteries in fact do best with more frequent charges. Deep cycling a Lithium battery will kill it far faster then many partial discharge/charge cycles (deep cycle it once too far, and it'll be toast anyway - hence the smart circuitry that shuts it down before it fully discharges). Similarly, not using a Li battery is not great for it either - they do best with regular use. So my practice is to always charge whenever it's convenient, regardless of the battery's charge state, and to leave my Tilt on 24/7. I've found over the years that my various Li batteries (cell phone, laptops, etc) retain greater charge capacity for longer that way, then either not using regularly or not charging them frequently.
And a Li battery has a finite lifespan anyway - just sitting unused at optimal conditions on a shelf, and it will be toast in about 4-7 years (typically) from internal self-oxidation. That's why when buying replacements, you always want factory new, not warehouse stored
I've always been thinking that Li-ion batteries wear with every charge cycle. Yes, deep cycle is deadly to battery life.
With Li-ion I've made a different experience: My laptop at home is usually operated without its battery. It's five years old and the battery is still in good shape / about 66% of its original capacity.
My laptop at work is three years old, battery is always installed, has got its second battery one year ago, because the first one was worn out.
Of course, this is not a sample quantity to be statistically relevant but a single experience.
Anyway, if you use the ernergys panel option not to charge the battery on USB connect and have the device connected to usb, the battery gets discharged if you have the Kaiser turned on, so the idea wouldn't work.
dont torture that battery!
http://forum.xda-developers.com/showthread.php?t=351610&highlight=batt
I've always said this simple statement about LiIon: Charge early and often.
Do you need to plug the phone in every time you get off a call? No. Do you need to worry about it dropping below 80%? No. Just charge as often as is convenient. Sitting at a desk for a hour working on something? Charge. Driving for more than 15m? Charge.
I think if you obsess too much you might wind up with USB connector problems from all the cycles on the connector itself, but intelligent use of the above statement should get you the most out of your battery.
(Figure I'll do a small cross-post here as I replied to the wrong topic a minute ago)
i charge each night
doing so more often would not have too much of an effect if you ask me

Charging NC for longest battery lifetime

( meaning how many months before the battery loses storage capability, as opposed to "battery life" - how many hours until you run out of juice )
There are a lot of battery/charger threads, and some bright person actually looked up the TI charger circuit documentation, but I don't see anyone who has looked up what a li-ion battery needs to have a long lifetime.
So, I found information at:
http://batteryuniversity.com/learn/article/charging_lithium_ion_batteries
Interesting tidbits:
- Charging to 100% means that you can use the device longer the next day, but is not necessarily best for the battery itself. Frequent partial charges are just fine, and are actually better for the battery.
- It seems to be particularly important for Li-ion battery charging to be turned off when you get to 100%. The LED turning green in the NC cable shows that the system is taking care of this (so you can safely charge overnight without damaging the battery).
Connecting the NC to another system that does not stop applying current at 100% charged seems to definitely be a bad idea. So, don't use any system overnight, that the NC does not recognize as "charging".
This indicates that charging from a laptop USB may "work" but may be bad long-term for the battery. Here it depends on whether the TI charging circuit is sophisticated enough to adapt to the non-standard condition. Since the charging indicators do not indicate "charging" then the answer may be "no", and while you are getting the battery charged up, it may not be in the best way. (This seems to be an area for more research about the actual NC charging system.)
- The critical part is to not use a USB cable or other charging system that is not recognized by the NC, when the NC is close to 100% charge, to make sure that it doesn't overcharge the battery. As the article states:
Li-ion cannot absorb overcharge, and when fully charged the charge current must be cut off. A continuous trickle charge would cause plating of metallic lithium, and this could compromise safety. To minimize stress, keep the lithium-ion battery at the 4.20V/cell peak voltage as short a time as possible.
Click to expand...
Click to collapse
- So, in summary, I think that a different brand of charger is okay as long as the NC recognizes it as "charging", and one should avoid charging in situations where you are "fooling" the NC by charging the battery when the NC is not noticing.
I honestly had no clue about this lol, thanks!
This might save a lot of headaches with "bad batteries" in the long run.
Thanks for this! Very interesting.
Well said, ADude. I'm so used to having to go onto forums and set people straight on the "myth's" of battery charging, but you hit it right on. The most important thing to remember is that overcharging drains your battery life (but most modern tech has auto off, in which it goes into a low power mode that allows for a stable current to just keep it around 99%), there is no benefit to letting your nook (or any other device) die completely before charging again, as there is not benefit to charging fully (or not charging fully) in the long run.
Thanks again!
LiIon likes being charged early and often... Don't run it down to 20-30% every time, it'll only shorten the overall battery. If it's down to 40-50% at the end of the night, put it on the charger.
Mine lasts 3 or so days before it gets near 40%.

Task which allows charge until it reaches a given battery percentage?

I would like to use an old Android phone as a testing server. So it has to be connected 24/7 to its wall charger. To not ruin the battery (although I read it will not happen) I was thinking about a task which allows the charge within a given percentage: (40%<X<80%, assuming X is the battery percentage) it has to allow charge only when it reaches 40%, stops at 80% and charges again when it drops down to 40%. Is it even possible? Thank you!
The only way to do this is to set a remote controlled switch for the charger, you can then use Tasker to enable/disable the switch based on the device's power level.
Or get a timer switch. Have it charge for an hour once or twice a day.

Smart Charge feature

Hi there,
to be honest, I have posted that question already in the P30 forum. But as both devices are quite similar and the Pro has a wider reach I decided to repeat it here. I hope you don't mind...
With the new EMUI10.1 also the "Smart Charge" feature arrived. Well, here at my P30 as a switch at least. I am really not sure, if this is working at all. I have it activated since idk 5 weeks or so and am using the original cable and charger. The charging curve, as can be seen in the battery settings, is not displaying any slower or even paused charging speed, the curve goes straight up until 100% ~1h after plugging in. Also there is nothing indicating an activated smart charging right when I plug in the charger.
What is your experience here, can you guys see any difference, have you seen any proof this is working?
Many thanks.
Yes, I've noticed it on both of my Huawei phones. It basically slows down or even stops charging so it doesnt max out, in order to preserve battery life. So you can leave it on the charger forever but it'll never hit 100%. My P30 pro sits on the charger almost daily and sits around 80-90%.
Maybe it has an algorithm that knows when you dont use it and charges to max then? My phone is on a wireless charger about 95% of the time throughout the day and night because it isnt used often. Sometimes it'll popup telling me that its using the smart charge feature and if I want to disable it blah blah.
adamlee2012 said:
I wake up every morning and mines on 100%. Looking at the battery graph it goes straight to 100% doesn't stop at 80 and charge nearer the time I unplug it so not quite sure how they've implemented it. Sony pauses charging til the usual time you unplug. Maybe when it reaches 100 on Huawei it stops charging.
Click to expand...
Click to collapse
That matches my experience. Also the Sony part.
Hi guys, I noticed that even if the smart charge is on and I always charge at 80% max, if I forget to unplug it it goes up to 100%. SO I suppose it is not working... What is your experience about it?
adamlee2012 said:
I think it charges to 100% then stops charging... And keeps it at 100%... I charge my phone every night... I never see it pause charging at 80% looking at the charging graph.
Click to expand...
Click to collapse
Thank you for your feedback! So it is not working as it should. I got it should "understand" your habits and charge it accordingly, never going over 80%.
It's a pity, I found it really useful, but if it works like this it is useless.
beggar23 said:
Hi there,
to be honest, I have posted that question already in the P30 forum. But as both devices are quite similar and the Pro has a wider reach I decided to repeat it here. I hope you don't mind...
With the new EMUI10.1 also the "Smart Charge" feature arrived. Well, here at my P30 as a switch at least. I am really not sure, if this is working at all. I have it activated since idk 5 weeks or so and am using the original cable and charger. The charging curve, as can be seen in the battery settings, is not displaying any slower or even paused charging speed, the curve goes straight up until 100% ~1h after plugging in. Also there is nothing indicating an activated smart charging right when I plug in the charger.
What is your experience here, can you guys see any difference, have you seen any proof this is working?
Many thanks.
Click to expand...
Click to collapse
According to the official, smartphones powered by lithium batteries ages differently, which results vary in terms of charging or simply called slow charging as well as short battery life.
For example, if a user leaves the charging overnight or for a long time. The charger keeps supplying the power to the battery, a state called overcharging. Repeating this process causes battery aging.
But with accurate management, the battery aging can be slow down and extend the battery life.
This is where Smart Charging Mode comes in place and uses the phone’s built-in AI capabilities to learn usage patterns. To slow down the battery to charge 100% when required.
For example, if the smart charging mode is enabled and the battery reaches 80%. The charging automatically slowdowns (charging rate) before it reaches 100%. This whole process prevents the phone to keep charging at 100 percent without harming the batter
P20pro here, same problem. Night or day, it seems to charge at the same rate, not waiting at 80%, no sign of that toggle doing anything.
skodann said:
According to the official, smartphones powered by lithium batteries ages differently, which results vary in terms of charging or simply called slow charging as well as short battery life.
For example, if a user leaves the charging overnight or for a long time. The charger keeps supplying the power to the battery, a state called overcharging. Repeating this process causes battery aging.
But with accurate management, the battery aging can be slow down and extend the battery life.
This is where Smart Charging Mode comes in place and uses the phone’s built-in AI capabilities to learn usage patterns. To slow down the battery to charge 100% when required.
For example, if the smart charging mode is enabled and the battery reaches 80%. The charging automatically slowdowns (charging rate) before it reaches 100%. This whole process prevents the phone to keep charging at 100 percent without harming the batter
Click to expand...
Click to collapse
I still cannot see any slowdown in charging here. How about you?
Sent from my [device_name] using XDA-Developers Legacy app
None... Charges as usual over night. Goes to 100% in about 1 hour and stays there
So basically it charges up to 80% in regular mode, after it starts to charge or very slowly or just before u wake up to 100%.. Yes, is learning at what time usually u touch for the first time the phone..
Or at least, this is what should do
Sent from my VOG-L09 using Tapatalk
duff91 said:
So basically it charges up to 80% in regular mode, after it starts to charge or very slowly or just before u wake up to 100%.. Yes, is learning at what time usually u touch for the first time the phone..
Or at least, this is what should do
Sent from my VOG-L09 using Tapatalk
Click to expand...
Click to collapse
Exactly, "should do". Instead the phone is charging quickly and straight to 100% without any slowdown.
Sent from my [device_name] using XDA-Developers Legacy app

Wireless charging paused when using wireless android auto

Can't figure this out for the life of me. I can wirelessly charge at any time except for if I'm using wireless android auto. Is this a temperature protection thing or is it a bug?
I have a damaged USB port so I'm stuck wireless for now. Samsung S21 Ultra
I think this has nothing to do with AA, but like you already guessed with a temperature problem. My P30 Pro is also getting really hot when wireless charging + AA and after some time I put it myself out of the charging station of my car and let it cool down, but it never stopped by itself till now
I don't know where you live...but with the hot temperatures we have now in Europe I also have the temperature issue.
I could charge my phone for only 2-3 minutes before reaching more than 40°C. At this temperature the charging current goes down and in fact I lose battery level in stead of gaining battery charge.
Therefore I'm trying now the ESR charger with cooling fan. ESR calls the cooling function Cryoboost.
With this charger I can now charge the phone for 10-15 minutes until it reaches 40°C.
Afterwards I have to let the phone cool down for 3-4 minutes and then I can put it back on the charger.
As I said, I'm currently testing the ESR charger.
So far it is a lot better with an active cooling fan, but not a perfect solution.
In the past days I also had some long trips. During 2 hour trips I charged the phone for 10-15 minutes, took it off and let it cool down and then put it back on the charger. With this strategy I gained in total 10% in 2 hours.
A lot better than before, but not perfect...
Long time experience with wireless AA and long trips (Galaxy S20). This is definitely a temp issue; after few hours of traveling wireless charging stops (with phone getting pretty warm) and battery drains. As this only happens after 5-8 hours of driving (depending outside temp? Use of android?) I put a wire to charge phone in the car and when it happens (only on long rides, more than 5-6 hours continue) I put the phone on the wired charger.
Solution with charger with cooling sounds interesting - I have never heard of it. Can You put link and your experience on the thread please? Thanks!
My experience is: it is a lot better than without cooling.
Nevertheless...as long as it is warm outside you have to cool the phone down in front of an AC ventilator of the car for 3 minutes after 15 minutes of charging. This is the case at around 26-28°C or higher or when the car was outside in the sun for long time. After driving around 20-30 minutes with the AC on, the car cools down enough to leave the phone on the charger for long time.
At temperatures of 33°C and more you really have to cool the phone down every 15 minutes during driving.
If the outside temperatures are high, but there is no sun, you can just leave the phone on the charger without worries.
At temperatures below 25°C it is also no problem to leave the phone on the charger.
Moreover I made tasker scripts:
- when the phone is put on the charger, it will tell me that it is charged and the current battery level
- when the charging is stopped, it will tell me that the charging is stopped and the current battery level
- as soon as I reach a battery temperature of 39.6°C, it will tell me that the phone battery is hot
- as soon as the battery temperature drops below 36°C, it will tell me that the battery temperature is normal
Therefore I have to say, yes it is better than without a cooling fan, but the temperature issue still exists. I could raise the outside temperature until when I can charge without worries.
So far I am happy with the solution as it is possible to gain battery level on long drives.
That's a nice solution (with tasker) - but as the battery status/charging also shows up as an icon on AA I just check the icon regularly during drivingn and when it stops charging put the phone on the wired charger. Works well on the long trips.

Categories

Resources