Tasker w/ AutoWear notify watch battery full on phone - Tasker Tips & Tricks

Hey Tasker geeks. I need some more eyes to work this out. I place my watch on the charger in the morning while I do the three "S" morning routine.
Since I tend to forget to check the watch charge state (and it does not stop charge like most phones), a notification on the phone would get my attention, especially with the LED lighting up.
I'm quite competent with Tasker, still getting my head around AutoWear, though I have a number of functions working like auto theater mode on AW2, etc. I've been trying for a week with no success, and searching the AutoApps forums I found this:
http://forum.joaoapps.com/index.php?threads/howto-notify-my-phone-when-my-wear-battery-is-100.5040/
Profile: Watch Battery (57)
State: AutoWear State [ Configuration:Screen On: false
Plugged In: false
Connected: true
Battery Low: false ]
Time: From 7:00AM every 5m Till 8:00PM
State: AutoWear State [ Configuration:Screen On: false
Plugged In: true
Connected: false
Battery Low: false ]
Enter: Battery Check (53)
A1: AutoWear App [ Configuration:Execute Now: true
Trigger Event: true
Haptic Feedback: true
Name: App
Command: <battery>
Turn Screen On: false Package:com.joaomgcd.autowear Name:AutoWear App Timeout (Seconds):60 ]
A2: If [ %awmessage eq 100 ]
A3: Notify [ Title:Watch Charged Text: Icon:null Number:1 Permanent: Off Priority:3 ]
Click to expand...
Click to collapse
Still having trouble duplication this. I understand the Profile, but not clear if this is a double state setup, and where the Task starts. Can anyone see this clearly, I'm cross-eyed after a week on it. :cyclops:

I found that same post, then this one, so hopefully I can help others after I figured it all out myself. It's actually a triple state profile, and the reason is that in the AutoWear state config, if you check both 'Connected' and 'Plugged In' it will count if Either of those is true, instead of Both like we need, but adding each one separately as a different state to the profile works as it should (so those two plus the time state is 3 total)
The task starts at "Enter:" and has 3 actions as listed (mine has 4 because I included the End If).
For the config, I unchecked Trigger Events on mine, and in Advanced turned off the haptic feedback.
Also, my goal was to alert me close to 80% so I'll unplug it to let the battery last more cycles (my previous watch is worthless now, battery lasts like 4-5 hours) so I set the if to '%awmessage > 78' instead of eq 100. It should alert me every 5 minutes on purpose.

Related

Battery Life Suddenly Dropped

Hey guys,
About a week ago I started rapidly losing battery life.
I've done a bunch of research and installed task killers, OS monitors, Spare Parts, etc. I've uninstalled apps that had wake_lock and done a Reset to Factory Defaults,changed the brightness, as well as performed a recalibration for the battery (one cycle). I also turned the phone to Airplane mode since I moved offices and thought maybe that was a problem.
I am not sure why this is the problem, but I have notices through spare parts that my phone does not go to sleep. The time it gives for Time without Sleeping (under "other Usage->Last Unplugged) is typically about the same time as I have had it off the charger. The phone will not last a full day anymore (Actually I'm lucky if it's still on when I get home from work). The only program that I can think of is the new maps application.
Here are my questions:
1) Is there a good way to find out if there is a specific program that is not allowing sleep (w/o uninstalling everything and adding them back one by one)?
2) How do I fix this problem? Would a hard reset work?
3) Generaloes anyone have any ideas on how to fix this? Why wont my phone go to sleep?
4) Could this have anything to do with the new maps/navigation update that Google sent out OTA last week?
Right now it has not slept for over 5 hours, but I been pressing the power button (not turning it off) when I put it down.
I ca provide a list of programs if that helps, probably some statistics too
Thanks!
In Spare Parts under Battery usage, there is a "Partial wake usage" option. Did you check that to see what is keeping it awake?
Since Last Unplugged:
Android System: 6m 16s (blue bar)
Dialer: 1m 40s (blue bar)
Facebook: 56s
Google: 44s
Media 28s
Google Voice: 20s
Calendar: 20s
Messaging 4s
None of that seems to make sense when you look at:
Other Usage: Time Spent Without Sleeping: 6h 36m 1s..
Maybe I am mis-reading it?
Thanks!

LG G2 clock keeps running behind when turned OFF.

Hello!
just notified, LG G2 clock keeps running behind.
after some watching I found out - this happens when phone is turned OFF.
it is about 15 min behind after 8 hour of night rest.
EDIT:
oops!! not 15 minute but + 1 whole day behind!
So, here are steps to check Clock failure:
1. first you should ensure clock is correct. TURN ON "Automatic date & time" and connect to internet network. also, look in browser for correct time on web-sites like "timeanddate.com".
2. Now UNCHECK "Automatic date & time" and at night, before you go to sleep, turn off phone.
3. at morning, turn phone ON & check TIME AND DATE on your phone.
as it looks, time I see on new boot is time of previous boot.
only actual thing I found is this line in dmesg
<6>[ 5.669406 / 03-22 12:48:23.709] alarm_set_rtc: Failed to set RTC, time will be lost on reboot

''Delay'' function prevents the phone entering in deep sleep

I have two profiles that works only when wifi is not connected.
Profile 1: when I turn off the screen, wait 3 minutes, then disabile mobile data. Then, re-enable mobile data for 1 minutes every 10 minutes (for notifications)
Profile 2: enable mobile data when I turn on the screen
I made these profiles to save battery but now I waste even more battery because I saw through Better Battery Stats that Tasker (in particular the ''delay'' tasks in Profile 1) keeps my device awake, preventing it to going into deep sleep.
Is there any option or any workaround to avoid that the phone stays awake? For example, in Automate the ''delay'' block have the option to check the time only when the device is awoken by other applications. Any similar option in Tasker?
Bcl2 said:
I have two profiles that works only when wifi is not connected.
Profile 1: when I turn off the screen, wait 3 minutes, then disabile mobile data. Then, re-enable mobile data for 1 minutes every 10 minutes (for notifications)
Profile 2: enable mobile data when I turn on the screen
I made these profiles to save battery but now I waste even more battery because I saw through Better Battery Stats that Tasker (in particular the ''delay'' tasks in Profile 1) keeps my device awake, preventing it to going into deep sleep.
Is there any option or any workaround to avoid that the phone stays awake? For example, in Automate the ''delay'' block have the option to check the time only when the device is awoken by other applications. Any similar option in Tasker?
Click to expand...
Click to collapse
Divide your profile 1 to 2 separate profiles. 1. event display off, task:wait/mobile data off and 2. time context fom time/repeat/to time, task: mobile data on + wait time, That 1 minute every ten minutes definitely causes extra battery drain! The final result may be the same as if the mobile data would be all the time on.
taisto said:
Divide your profile 1 to 2 separate profiles. 1. event display off, task:wait/mobile data off and 2. time context fom time/repeat/to time, task: mobile data on + wait time, That 1 minute every ten minutes definitely causes extra battery drain! The final result may be the same as if the mobile data would be all the time on.
Click to expand...
Click to collapse
First, my apologize for using the wrong term, in fact I meant "wait", not "delay" (I don't use tasker in english).
As you suggested now I have 3 profiles:
1- when screen is turned off, wait 3 minutes and turn off data
2-turn on data, wait 1 minute, turn off data, wait 10 minutes, ping (repeat)
3-when screen is on turn on data (the second profile will not run when the screen is on because of some variables that I set up)
I made some tests disabling/enabling profile 1 or 2. I have found that the "wait" functions of the second profile (1 minute and 10 minutes) wake my device only for a few seconds, and this is acceptable. But the "wait" function of the first profile keep awake my device exactly for 3 minutes every time that I turn off the screen. Can't figure out why.

Battery drain help

I previously gave up on Tasker because it was draining my pixel xl's battery. Even with a single simple profile running.
I've since come back for a second try. I've been monitoring the run log and I don't see anything unusual but I'm new to tasker so I could be missing something.
The weirdest part is that my battery stats show tasker as using 0% of the battery (even though I've been using it all day) but when any profile is on its draining about 15% an hour while idle.
My current profile is simply to open blackberry hub when the phone is unlocked (if it's been asleep longer that 2min). The profile works as expected btw.
I'll post the profile details below.
Any help would be greatly appreciated.
Here is the task that is triggered when the event display off occurs.

Question Bixby Routines - Share Ideas?

Just got the S21 Ultra (from note 8). Stumbled upon Bixby Routines. It's great.
Always tried using Tasker but never used it much because it wasn't as easy as using Bixby Routines. Tried using similar apps as well but they never seemed to work well.
So far I've got auto-rotate for when I use video watching apps such as YouTube. Power Saving mode while I'm asleep.
Care to share some ideas?
Love Tasker but now giving a chance for Bixby Routines. So far I have set driving profile to start playing YouTube music, set audio to 100%, turn Dolby on, keep phone unlocked. Then Show AOD when charging, auto rotate on when YouTube is launched. Would like them to go crazy like tasker with some Good lock module but doubt it Had few htlm get task so I might go back to Tasker, but imo it should drain more battery compared to Bixby Routines
When i go to work, since i don't touch my phone that often, it auto changes resolution to fullHD, and turns on AOD + turns off bluetooth.
During the night turns on energy saving and airplane mode
Wireless charging between 10p - 7a will NOT fast charge so the charger fans aren't buzzing on my nightstand next to my head.
I hated everything Bixby but I see that I now have to use routines.
Good topic. How to see more useful usages posted.
I use Routines with my Android Car Stereo to Automatically start the Hotspot when it connects to my Cars bluetooth. It also turns up the volume on the phone and reads aloud text messages.
Definitely looking forward to a couple new ideas myself.
AOD & Sync on when charging, off when not charging (apps like whatsapp and outlook have their own sync which isn't affected by this)
Button on my homepage for 5G/4G
Power saving to turn on at 20% (I only turn this on if I plan to go out for the day)
Is there a way to perform an action on switching out of one app to another e.g. To close the app you switch from e.g. Chrome, so that it doesn't chew up battery in the background? Or when closing an app to put it to deep sleep?
I've set it to disable 120 Hz in apps like YouTube and tiktok and games where I wouldn't notice it anyway.
Also set network mode to 3G and disable data when connected to WiFi.
omnimax said:
I've set it to disable 120 Hz in apps like YouTube and tiktok and games where I wouldn't notice it anyway.
Also set network mode to 3G and disable data when connected to WiFi.
Click to expand...
Click to collapse
So I think the WiFi one is sort of redundant as your mobile data swtiches off if you're on WiFi with WiFi calling.
The YouTube one is actually a great spot - at low brightness the screen stays in high refresh mode, so forcing it to switch to 60 is useful!
I created a button to force to 2G only in areas where reception is poor and i dont require mobile data (2g gives better reception).
But does anyone know where this button can be used other than as a widget on homescreen?
Set location services on when opening google maps
Play playlist from spotify when bluetooth connect to my car
Put on do not disturb when opening camera application
I love bixby routines, the only thing i keep after debloating a Samsung phone
Anandtech has a write-up on the S21U display. It appears it has the same odd behavior of forcing 120hz full time during low ambient lighting, like the Note 20. The screen therefore consumes more power in dark rooms than in a bright setting. I have an (arguably bad) habit of reading my phone in bed before I fall asleep, and before I get up. So I've set a routine to switch in/out of adaptive mode during my normal bed times, so much of my usage in darkness is in 60hz mode to save battery.
Investigating The Galaxy S21 Ultra New OLED Emitter: Huge Efficiency Improvements
www.anandtech.com
dscline said:
Anandtech has a write-up on the S21U display. It appears it has the same odd behavior of forcing 120hz full time during low ambient lighting, like the Note 20. The screen therefore consumes more power in dark rooms than in a bright setting. I have an (arguably bad) habit of reading my phone in bed before I fall asleep, and before I get up. So I've set a routine to switch in/out of adaptive mode during my normal bed times, so much of my usage in darkness is in 60hz mode to save battery.
Investigating The Galaxy S21 Ultra New OLED Emitter: Huge Efficiency Improvements
www.anandtech.com
Click to expand...
Click to collapse
It does this because 60hz changes the tint at low brightness. The oneplus 8pro was bad for this, you could see the display flicker and change tint when the refresh rate changed at low brightness , it was horrible.
Batfink33 said:
It does this because 60hz changes the tint at low brightness. The oneplus 8pro was bad for this, you could see the display flicker and change tint when the refresh rate changed at low brightness , it was horrible.
Click to expand...
Click to collapse
I can't comment from personal experience, but from the Anandtech article:
it’s still not exactly clear at to the technical reason why Samsung is employing this limitation in the first place, as I’m not seeing any difference at all in the screen quality when tricking the phone’s ambient brightness sensor and it switching between VRR/LFD on and off.
Click to expand...
Click to collapse
Regardless, switching to 60hz is a solution if you want to prioritize battery life in those conditions.
dscline said:
I've set a routine to switch in/out of adaptive mode during my normal bed times, so much of my usage in darkness is in 60hz mode to save battery.
Click to expand...
Click to collapse
Hmmm, I set a routine @ 10PM to switch to 60hz mode, that was supposed to end at 7AM with the actions reversed. It didn't switch to 60hz mode @ 10PM, so I manually switched it, and it didn't revert @ 7AM. I'll try two distinct routines.
EDIT: I set up a distinct routine to set to 60hz AFTER the existing "time period" routine, and the existing time period routine took effect properly this time, so the redundant distinct routine wasn't needed. Don't know why it didn't work the first night.
Brightness turned down and Power Saving mode turned on during my sleeping hours.
I always leave my phone unplugged while sleeping (charge fully before sleep).
I guess if I were to charge while sleeping, I'd plug into a smart plug, then have the plug turn off after the charge reached 100.
dscline said:
Hmmm, I set a routine @ 10PM to switch to 60h
EDIT: I set up a distinct routine to set to 60hz AFTER the existing "time period" routine, and the existing time period routine took effect properly this time, so the redundant distinct routine wasn't needed. Don't know why it didn't work the first night.
Click to expand...
Click to collapse
dscline said:
Hmmm, I set a routine @ 10PM to switch to 60hz mode, that was supposed to end at 7AM with the actions reversed. It didn't switch to 60hz mode @ 10PM, so I manually switched it, and it didn't revert @ 7AM. I'll try two distinct routines.
EDIT: I set up a distinct routine to set to 60hz AFTER the existing "time period" routine, and the existing time period routine took effect properly this time, so the redundant distinct routine wasn't needed. Don't know why it didn't work the first night.
Click to expand...
Click to collapse
Yeah, a couple times my YouTube rotate didn't turn on. But on my wife's note 10 plus, so far has been flawless.
Just bumping this up since Routines is very useful. Been using this since my last phone and it made life a bit easier.
My settings are:
1. IF connected to home wifi, THEN keep phone unlocked.
2. IF charging, THEN sync is on.
3. IF connected to car bluetooth, THEN media volume is set to max and play favorite playlist on spotify.
4. IF time period (12AM-6AM), THEN power saving mode on, DND on, bluetooth off, NFC off.
5. IF camera app opened, THEN DND on.
annson08 said:
Just bumping this up since Routines is very useful. Been using this since my last phone and it made life a bit easier.
My settings are:
1. IF connected to home wifi, THEN keep phone unlocked.
2. IF charging, THEN sync is on.
3. IF connected to car bluetooth, THEN media volume is set to max and play favorite playlist on spotify.
4. IF time period (12AM-6AM), THEN power saving mode on, DND on, bluetooth off, NFC off.
5. IF camera app opened, THEN DND on.
Click to expand...
Click to collapse
Oh, gave me a great idea of keeping phone unlocked! thanks. I'll have to set one to keep phone unlocked when hooked up to android auto or the car BT.
I mess with my kids with the Low Battery Announcement (Phone needs charging, Bruh. No Cap). Lol
If it isn't connected to my Home WiFi between the hours of 10PM and 8AM, it alerts me because this typically means that the power has gone out.

Categories

Resources