1. Are you ready for the Galaxy S20? Here is everything we know so far!

Tasker question - Cell Near and battery use

Discussion in 'Android Apps & Games' started by juniperz, Jan 15, 2016.

  1. juniperz

    juniperz Lurker
    Thread Starter

    I am not a Tasker expert but have been using it to switch profiles (ringer / notification volume, Bluetooth Y/N etc) buy using widget buttons for Home / Work / Silent, for many years and many phones.
    Last night I decided to automate it by setting up Tasker Profiles using Cell Near - these then trigger the existing Tasks for Home and Work. It seems to work, but it must be constantly checking for cells within range and keeping the device awake. BetterBatteryStats is showing Deep Sleep 11%, Awake (Screen Off) 66%. It is burning battery at about 6%/hour when it is usually half that.
    I see in Preferences (Tasker) that you can set the scan interval for Bluetooth, Wifi, GPS, but not for Cell Near.

    Any ideas please, before I scrap it and go back to using the widget buttons?
    Thanks

    Galaxy S5 klte - Resurrection Remix 5.6.0-20160107 (Android 6.0.1)
     



    1. Download the Forums for Android™ app!


      Download

       
  2. I do something similar but not with cell location. I have limited exposure to it and seen to recall that it ate the battery.

    When I visit a customer in their office my phone was constantly trying to connect to their Wi-Fi network. When I was in my office/home I was always on my Wi-Fi network.

    I run two profiles and if I am within range of my router Wi-Fi is on in my phone. If I am out of range of my router Wi-Fi is off.

    ... Thom
     
  3. juniperz

    juniperz Lurker
    Thread Starter

    Thanks Thom.
    I have thought about driving it from my customer site Wifi - quiet ring when connected / loud when not, but I have given up using their network for a different reason! On my previous ROM (CM12.1), it would eat battery when on their wifi (and only their wifi). I think it was because it was handing off from WAP to WAP all the time (all with same SSID). Sorry - rambling - I will abandon Cell Near and try using office wifi as the trigger next week.
     
  4. For me I always use Mobile Data while away from the office.

    The profiles, tasks, and scene that I use are below. They include status messages. There was one timing problem that was solved by the wait (recommended from someone else in Android Forums and I still can't determine why it works).

    Obviously you will use SSIDs.

    Profile: tlaOfficeFar
    State: Not Wifi Connected [ SSID:TLANET-2.4GHz/TLANET-5GHz MAC:* IP:* ]
    Enter: tlaOfficeFarEnter
    A1: Wait [ MS:0 Seconds:0 Minutes:1 Hours:0 Days:0 ]
    A2: Variable Split [ Name:%WIFII Splitter: Delete Base:Off ]
    A3: Perform Task [ Name:tlaWiFiOff Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable

    Profile: tlaOfficeNear
    State: Wifi Near [ SSID:TLANET-2.4GHz/TLANET-5GHz MAC:* Capabilities:* Min. Activate Signal Level:4 Channel:0 Toggle Wifi:Off ]
    Enter: tlaOfficeNearEnter
    A1: Wait [ MS:0 Seconds:0 Minutes:1 Hours:0 Days:0 ]
    A2: Perform Task [ Name:tlaWiFiOn Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]

    tlaWiFiOff
    A1: Variable Set [ Name:%work To:WiFi - Off Do Maths:Off Append:On ]
    A2: Variable Set [ Name:%work To:WiFi - Still Off Do Maths:Off Append:Off ] If [ %WIFI ~ off ]
    A3: WiFi [ Set:Off ]
    A4: Perform Task [ Name:tlaExitResult Priority:%priority Parameter 1 (%par1):%work Parameter 2 (%par2): Return Value Variable: Stop:Off ]

    tlaWiFiOn
    A1: Variable Set [ Name:%work To:WiFi - On Do Maths:Off Append:On ]
    A2: Variable Set [ Name:%work To:WiFi - Still On Do Maths:Off Append:Off ] If [ %WIFI ~ on ]
    A3: WiFi [ Set:On ]
    A4: Perform Task [ Name:tlaExitResult Priority:%priority Parameter 1 (%par1):%work Parameter 2 (%par2): Return Value Variable: Stop:Off ]

    Scene: tlaExitResult
    P:1024x192 L:1024x192

    Orientation: Portrait
    Background Colour: #00000000
    Action Bar Style: System
    Title: tlaPopup
    Subtitle:
    Icon: null
    Tab Labels:

    Element: Text1/Text
    Geometry:
    P:0,0 1024x192 L:0,0 1024x192
    Content:
    Text: %par1
    Text Size: 18
    Text Width Scale Percent: 100
    Text Colour: #FFFFFFFF
    Font:
    Position: Centre
    Vertical Fit Mode: Reduce Text Size
    Text Format: Plain Text
    Events:
    Click: 203

    ... Thom
     
  5. juniperz

    juniperz Lurker
    Thread Starter

    Thanks Thom - I clearly have a lot to learn :)
     

Tasker

Tasker Forum

net.dinglisch.android.taskerm

⚙No repetitive tasks for you, let your Android device handle it!⚙
Total Automation, From Settings to SMS. Here are only some
of the things you could do with Tasker. Its real power is the flexibility to combine contexts and tasks however you wish: https://tasker.joaoapps.com/exampleuses.htmlAutomations
Make your phone a true smart
phone! Why remember to change the volume every day when you leave home when your phone can do it for you? Automate stuff based on the app you're in
, the time of day
, your location
, your Wi-Fi network
, Received SMS or Calls
, the currently playing song
and many other (130+) states and events! Check out how easy it is to create an automation: https://www.youtube.com/watch?v=s6EAbLW5WSkActions
350+ actions allow you to truly customize your phone like never before! Send SMS, create notifications, change almost any system setting like Wifi Tether, Dark Mode, Always On Display, change any volume, control Do Not Disturb, open apps, file manipulation, control music playback, get your location... you get the idea. If you can think of it, Tasker can probably do it for you! Note: root is NOT (I repeat NOT) required for majority of the functions.
However, a few of the actions (like the Airplane Mode action and the Mobile Data action on some devices) require root. Regarding those few actions that do require root, this is because of Android security policies that developers cannot work around. ☑ Other Triggers
Manually trigger your actions via launcher shortcuts, quick setting tiles, widgets, long-pressing volume buttons, media buttons (like the ones on your BT headsets or headphones), Bixby button, Navigation Bar, Notificaitons and more! ☑ Join - Remote Tasker
Adding Join (https://play.google.com/store/apps/details?id=com.joaomgcd.join) to the mix will even allow you to trigger tasks from another Android device or PC! ☑ Scenes
Design your own UI and use it to display any info you want or trigger any task! ☑ App Creation
Create your own standalone apps to share or sell with the Tasker App Factory (https://play.google.com/store/apps/details?id=net.dinglisch.android.appfactory)! ☑ Developer Friendly
A lot of 3rd party developers already allow you to perform actions in their apps and listen to their events/states through Tasker! Check out a list of plugins https://tasker.joaoapps.com/pluginlist.html. You can also call most of the Web APIs from Tasker with the powerful HTTP Auth and HTTP Request actions! Check out an example https://youtu.be/yAt2D1XmgUI. ☑ 7 day trial - one time payment to unlock
Get it here: https://tasker.joaoapps.com/download.htmlUseful Links
Starter Guides: https://tasker.joaoapps.com/guides.html Pre-made projects: https://forum.joaoapps.com/index.php?resources/ Official Support Forumhttps://groups.google.com/forum/#!forum/tasker Community full of people willing to help: https://www.reddit.com/r/tasker/ It's not possible to fix problems reported via Play Store Comments so please use the "Report Issue To Developer" option in the app > Menu to do so. Note
: Tasker uses the BIND_DEVICE_ADMIN permission in order to provide the System Lock functionality

READ MORE
February 15, 2020
Last Updated
4.4
Rating
1M+
Installs
Loading...

Share This Page

Loading...