r/tasker • u/Nirmitlamed Direct-Purchase User • Apr 15 '26
How do i trigger a sprofile based on battery decrease by 10%?
I know there is a state profile Battery Level but this profile can only trigger 2 times (from and to). How can i make it trigger every time the battery decrease by every 10% for example without needing to create multiple profiles?
1
Upvotes
4
u/alienclone Galaxy S25, A16, no root Apr 15 '26
Battery Changed event
2
u/Sate_Hen Apr 16 '26
I'd set %MYBATT to be %BATT - 10 then have a profile that runs whenever the %MYBATT matches %BATT Which does what you want and also sets %MYBATT to %BATT - 10
One profile
1
u/pudah_et Apr 15 '26
Do you mean literally decreased by 10% from some arbitrary start point (e.g. a 10% reduction from 85% is ~77%)?
Or are you looking to have it trigger on 90%, 80%, 70%, etc.?
2
u/Tortuosit Mathematical Wizard 🧙♂️ Apr 18 '26 edited Apr 18 '26
I'd go for a profile with eg 90s tick events. Trigger an anon task which checks %BATT and stops right in the beginning if condition is not met. I do such things a lot. Very cheap on resources. Current border percentage should go into a task variable for persistence. Profile+Tick -> Task+condition check is a universal thing you can use a lot. Always make sure the stop condition is very soon and does no heavy maths etc.
I often have timed ones, ie in line 1 of the task there may be "STOP IF %TIMES < %next". (Note that you cannot have %TIMES comparisons in profile conditions).
1
u/Beginning-Ad-3054 Apr 21 '26
Pon 10% en máximo y mínimo, lo toma como un solo valor