How do i turn Data On every hour for 5 minutes with Tasker?

Last Updated:

  1. Andima

    Andima Well-Known Member


    I already enable mobile data on every hour for 5 minutes with the Tasker app. I call this profile as "Mobile Data On". Now I want to turn the data connection on ("Mobile Data On" profile) only, if the Data and WiFi connections are off.

    If the data and WiFi connections are already on, then the "Mobile Data On" profile should skip. I try to use Tasker app's variable option for this task, but I can't create a variable correctly. (lack of my knowledge)

    Also I need to disable this mobile data on profile at 23.00 to 4.00AM.

    How do i do it with the tasker?



  2. UncleMike

    UncleMike Well-Known Member

    To restrict when the profile activates, add a time context (I.e. 04:00-23:00). To prevent the profile from activating when you already have a mobile data connection, use a Mobile Network context with all options checked, including Invert.
    Andima likes this.
  3. Andima

    Andima Well-Known Member

    Thanks you friend I added "Mobile Network context state" to my existing "Mobile Data On" profile. Now that profile work only if Data and WiFi connections are not on. (That's what i want). However I have one issue.

    I already have a "Mobile Data Off" profile for disable Data and WiFi connection after the 5 minutes, but now if i already manually enable data and WiFi connections, my second profile (Mobile Data Off) disable them. Are there any way to prevent it? I mean "Mobile Data Off" profile activate if, Data connection enable by the "Mobile Data On" profile? :D
  4. UncleMike

    UncleMike Well-Known Member

    You can do all this with a single profile. I would eliminate the Mobile Data Off profile, and use the following in the Enter Task for Mobile Data On:

    Mobile Data On
    Wait 5 Minutes
    Mobile Data Off

    Make sure that Restore Settings is unchecked in the properties for the Mobile Data On profile. This way, although the profile will immediately exit (because your enter task causes one of the contexts to no longer be satisfied), it won't turn data back off when it exits, and will instead turn it off after 5 minutes.
    Rxpert83 and Andima like this.
  5. Andima

    Andima Well-Known Member

    Friend I have no clear idea how to make,

    Mobile Data On
    Wait 5 Minutes
    Mobile Data Off

    in a one profile. Can you please tell me its steps?

  6. Andima

    Andima Well-Known Member

    OK finally I have done it. Thank you UncleMike. :D


    For others to use, this is the way that i have done it. :D:smokingsomb:

    • Created a new profile and give a name.
    • Then in the first context select "Time". Tick "Repeat" option and type 55 minutes. Also I adjust From and To and save it.
    • Then Task selection tap "New task"
    • Tap "Plus button" to add action.
    • added "Mobile data" and set "ON" (Net>Mobile data).
    • After that tap "Task" and added "wait" option.
    • Then in the Wait action I added 5 minutes.
    • After that again go to "Net>Mobile data" and set it "Off".
    • Than save the profile.

    Also I added these optional contexts. (Disable this task if data already on myself)

    • Tap and hold the "New profile time context".
    • Then next popup menu tap "add".
    • Added "State>Net Mobile network".
    • Tap "2G, 3G,3G-HSPA" (I don't have 4G, so i skip it).
    • Tap "Invert" option and tap save button.
    • Save the profile.
    kewlbuddy and Rxpert83 like this.
  7. chrlswltrs

    chrlswltrs Well-Known Member

    Glad you got the answer you were looking for. Also, I have moved the thread to the Tasker section so that other looking for the same solution might more easily find your thread.
    Andima likes this.
  8. Andima

    Andima Well-Known Member

    Yes me too. :D I didn't think this is an important question, so I'm not mention how do i have make that profile. I just updated the thread an mention how do i have done it step by step (for the noob like me :D ). :D
  9. tatootie67

    tatootie67 Well-Known Member

    I have a similar setup but I added a display on and off profiles so I can restore my data immediately upon screen on. Display off triggers my data on and off profile

Share This Page